I have customized my own template to match my clients website design. In the process the add to cart function on the category page has stopped functioning. It works fine on the product page but not directly from the category list.
If I switch to the default template all is well. How can I find out what is wrong? Where should I start?
Link to site: http://springfieldfireworks.com/store/novelties
If I switch to the default template all is well. How can I find out what is wrong? Where should I start?
Link to site: http://springfieldfireworks.com/store/novelties
Last edited by nlbailey on Sat Oct 01, 2011 6:49 am, edited 1 time in total.
After digging around I have discovered the script error "ReferenceError: Can't find variable: addToCart". Anyone happen to know what I can do to fix this? As far as I know I haven't messed with any of the controller or model files so no variables should have been accidentally deleted/modified/etc.
Your add to cart button code should look something like...
It depends on which version of opencart you are using.
Code: Select all
<a class="button" href="<?php echo $products[$j]['add']; ?>" title="<?php echo $button_add_to_cart; ?>" ><span><?php echo $button_add_to_cart; ?></span></a>
Custom Website Design from BCO ~ Building Companies Online
If we were of assistance to you, please help my family in return with a small donation.
I presume that you have mended this as it appears to be working fine?
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
Who is online
Users browsing this forum: No registered users and 5 guests