Hello Everyone,
I am having an issue making my fat free cart pop up box work properly. I have used the code generator to make the proper code for my items, but if i try to seperate it out of the table it is formatted into, the pop up function ceases to work and it pulls up another tab instead. I DO have the proper javascript code at the bottom of my page to make it work because the item that isn't reformmated works properly, and it looks like this currently:
<script language="javascript" type="text/javascript"><!--
function EJEJC_lc(th) { return false; }
// -->
// -->
// -->
// -->
// -->
// -->
// -->
// -->
// --></script>
<script type="text/javascript" src="https://www.e-junkie.com/ecom/box.js"></script>
I don't know why the server adds all these // --> but it has happened to other scripts too....but thats not the point.
So here is the block of code containing two items. The first item has been reformatted to fit the way I want it to in the page, and the second item has been cut and pasted from the code generator. Once again the first one opens in a new tab but the second one opens in a pop up box, and they do not remember items from the tab to the pop up.
<tr>
<td class="menujustifyright" height="21"> </td>
<td align="left" height="21"> </td>
<td class="justifytop" height="21"><form target="ej_ejc" action="https://www.e-junkie.com/ecom/fgb.php?c=cart&cl=1&ejc=2" method="post"> <!-- google merchant id (remove if not using Google Checkout) --> <input name="merchantid" type="hidden" /> <!-- paypal email(remove if not using PayPal) --> <input name="business" value="sales@microroaster.com" type="hidden" /> <!-- site url --> <input name="site_url" value="http://www.microroaster.com/traditionals" type="hidden" /> <!-- contact email (where we can notify of the updates) --> <input name="contactemail" type="hidden" /> <!-- you thank you page --> <input name="return_url" value="http://www.microroaster.com" type="hidden" /> <!-- any custom info you want to pass --> <input name="custom" type="hidden" /> <!-- currency (USD for Google Checkout USA, GBP for Google Checkout UK. For PayPal: any currency that PayPal supports --> <input name="currencycode" value="USD" type="hidden" /> <!-- shipping cost --> <input name="shipping" value="5.00" type="hidden" /> <!-- shipping cost of each additional unit --> <input name="shipping2" type="hidden" /> <!--handling cost --> <input name="handling" type="hidden" /> <!-- tax (flat amount, NOT percentage)--> <input name="tax" value="0" type="hidden" /> <!-- item name --> <input name="item_name" value="Brazil Alta Mogiana" type="hidden" /> <!-- item number (should be different for each product)--> <input name="item_number" value="1" type="hidden" /> <!-- item price --> <input name="amount" value="7.10" type="hidden" /> <!-- initial quantity --> <input name="quantity" value="1" type="hidden" /> <!-- item options (can be removed if not required) --></td>
</tr>
<tr>
<td class="menujustifyright" width="48" height="27">Style:</td>
<td width="146"><input name="on0" value="Grind Size" type="hidden" /> <select name="os0" style="width:97%"> <option value="French Press">French Press</option> <option value="Auto Drip"> Auto Drip</option> <option value="Fine"> Fine</option> <option value="Espresso"> Espresso</option> </select></td>
<td align="center"><input src="https://www.e-junkie.com/ej/ejadd_to_cart.gif" onclick="javascript:return EJEJC_frm(this.parentNode);" type="image" border="0" /></form></td>
</tr>
<tr>
<td colspan="4" class="bordertop" height="10">Brazil Bob-O-Link</td>
</tr>
<tr>
<td rowspan="3" width="273"><img src="Images/bob_o_link_final.gif" alt="Brazil Alta Mogiana" class="fltrt" width="250" border="1" height="188" /></td>
<td colspan="3" class="justifytopdirecttrade" height="81"><span class="organictag">Sustainability Award Winner</span><br /> In keeping with Brazilian tradition, this coffee is a sweet with a medium body, floral tones and good balance. Enjoy sipping this easy going coffee!<br /> <span class="organictag">$7.10</span><img src="Images/sustainabilityaward_sml.gif" alt="Sustainability Award" width="60" align="top" height="73" /></td>
</tr>
<tr>
<td class="menujustifyright" height="21"> </td>
<td align="left" height="21"> </td>
<td class="justifytop" height="21"><form target="ej_ejc" action="https://www.e-junkie.com/ecom/fgb.php?c=cart&cl=1&ejc=2" method="post">
<div style="background:#eeeeee">Grind Size
<input name="on0" value="Grind Size" type="hidden" /> <select name="os0" style="width:97%"> <option value="French Press">French Press</option> <option value="Auto Drip"> Auto Drip</option> <option value="Fine"> Fine</option> <option value="Espresso"> Espresso</option> </select></div>
<!-- google merchant id (remove if not using Google Checkout) --> <input name="merchant_id" type="hidden" /> <!-- paypal email(remove if not using PayPal) --> <input name="business" value="sales@microroaster.com" type="hidden" /> <!-- site url --> <input name="site_url" value="http://www.microroaster.com/traditionals" type="hidden" /> <!-- contact email (where we can notify of the updates) --> <input name="contactemail" type="hidden" /> <!-- you thank you page --> <input name="return_url" value="http://www.microroaster.com" type="hidden" /> <!-- any custom info you want to pass --> <input name="custom" type="hidden" /> <!-- currency (USD for Google Checkout USA, GBP for Google Checkout UK. For PayPal: any currency that PayPal supports --> <input name="currencycode" value="USD" type="hidden" /> <!-- shipping cost --> <input name="shipping" value="5.00" type="hidden" /> <!-- shipping cost of each additional unit --> <input name="shipping2" type="hidden" /> <!--handling cost --> <input name="handling" type="hidden" /> <!-- tax (flat amount, NOT percentage)--> <input name="tax" value="0" type="hidden" /> <!-- item name --> <input name="item_name" value="Brazil Bob-O-Link" type="hidden" /> <!-- item number (should be different for each product)--> <input name="item_number" value="2" type="hidden" /> <!-- item price --> <input name="amount" value="7.10" type="hidden" /> <!-- initial quantity --> <input name="quantity" value="1" type="hidden" /> <!-- item options (can be removed if not required) --> <input src="https://www.e-junkie.com/ej/ejadd_to_cart.gif" onclick="javascript:return EJEJC_frm(this.parentNode);" type="image" border="0" /> </form></td>
</tr>
I'm just an amateur so please forgive the coding if it isn't as neat as it could be. Lastly I have the way I would truly like for it to look which looks like this:
<form target="ej_ejc" action="https://www.e-junkie.com/ecom/fgb.php?c=cart&cl=1&ejc=2" method="post">
<input type="hidden" name="on0" value="Grind Size"/>
<td width="146"><select name="os0" id="brazilaltamogianastyle">
<option selected="selected" value="">Choose Style...</option>
<option value="Whole Bean">Whole Bean</option>
<option value="French Press Grind">French Press Grind</option>
<option value="Auto Drip Grind">Auto Drip Grind</option>
<option value="Fine Grind">Fine Grind</option>
<option value="Espresso Grind">Espresso Grind</option>
<option value="Green Bean">Green Bean</option>
</select></td>
<!-- google merchant id (remove if not using Google Checkout) -->
<input type="hidden" name="merchant_id" value=""/>
<!-- paypal email(remove if not using PayPal) -->
<input type="hidden" name="business" value="sales@microroaster.com"/>
<!-- site url -->
<input type="hidden" name="site_url" value="http://www.microroaster.com/traditionalsfinal.html"/>
<!-- contact email (where we can notify of the updates) -->
<input type="hidden" name="contact_email" value=""/>
<!-- you thank you page -->
<input type="hidden" name="return_url" value="http://www.microroaster.com"/>
<!-- any custom info you want to pass -->
<input type="hidden" name="custom" value=""/>
<!-- currency (USD for Google Checkout USA, GBP for Google Checkout UK. For PayPal: any currency that PayPal supports -->
<input type="hidden" name="currency_code" value="USD"/>
<!-- shipping cost -->
<input type="hidden" name="shipping" value="5.00"/>
<!-- shipping cost of each additional unit -->
<input type="hidden" name="shipping2" value=""/>
<!--handling cost -->
<input type="hidden" name="handling" value=""/>
<!-- tax (flat amount, NOT percentage)-->
<input type="hidden" name="tax" value="0"/>
<!-- item name -->
<input type="hidden" name="item_name" value="Brazil Alta Mogiana"/>
<!-- item number (should be different for each product)-->
<input type="hidden" name="item_number" value="1"/>
<!-- item price -->
<input type="hidden" name="amount" value="7.10"/>
<!-- initial quantity -->
<input type="hidden" name="quantity" value="1"/>
<td align="center"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('brazilaltamogiana','','Images/add_to_cart_rollover.jpg',1)"><input type="image" src="Images/add_to_cart_rgb.jpg" alt="Add to Cart" width="100" height="25" border="0" id="brazilaltamogiana" onClick="javascript:return EJEJC_frm(this.parentNode);"/></a></td></form>
,but this way just opens up the pop up box and never stops loading. If I take away the script at the bottom of the page, it does work just in a different tab, and not the pop up box like I want.
If you made it this far let me say thank you so much for your time, and any help is greatly appreciated.