New Zenner
- Join Date:
- Jun 2012
- Posts:
- 92
- Plugin Contributions:
- 0
Help! Add to Cart button doesn't Add to Cart
Please help, My add to cart button doesn't add the products to the cart!!
http://wwrepair.com/parts
Views: 1,249
New Zenner
Please help, My add to cart button doesn't add the products to the cart!!
http://wwrepair.com/parts
Totally Zenned
Looking at you page source, I think your problem starts here:
<div id="currency_header"> ```html <!-- Currencies --> <form name="currencies" action="http://www.wwrepair.com/parts/index.php?main_page=index" method="get">
<!-- Currency: <select name="currency" class="header1_sel" onchange="this.form.submit();">
<option value="USD" selected="selected">US Dollar</option>
</select>
<input type="hidden" name="main_page" value="product_info" /><input type="hidden" name="cPath" value="151_192" /><input type="hidden" name="products_id" value="5167" /> </form>
<!-- End Currencies -->
</div>
You have commented out the CLOSING FORM tag, but not the opening one.
Later, you get the shopping cart <form>, but it is in conflict with the already-open currencies form.
New Zenner
OMG!! I love you!! That fixed it. Wow, that was scary..thank you so much!!
Totally Zenned
If there is a switch in the admin panel to show/hide elements, then that is what should be used in preference to hard-coding such behaviour.
Only hard-code a functional element if there is no other way to obtain/remove the desired behaviour.
New Zenner
schoolboy:
If there is a switch in the admin panel to show/hide elements, then that is what should be used in preference to hard-coding such behaviour.
Only hard-code a functional element if there is no other way to obtain/remove the desired behaviour.
I am not aware of anyway to remove the currency header in admin. If there is, please tell me and I will change the code back to the way it was. I also prefer not to change the code unless I have to, you are absolutely correct.
Totally Zenned
WWRepair:
I am not aware of anyway to remove the currency header in admin. If there is, please tell me and I will change the code back to the way it was. I also prefer not to change the code unless I have to, you are absolutely correct.
For your template, there may not be a switch in admin... All I am saying is that when there IS a switch, it's better to use it.
I make a lot of changes to the code and also make mistakes, so what I do is this:
Tell staff why this post should be reviewed.