coryp Posted April 7, 2011 Share Posted April 7, 2011 Hello,This could be a simple fix, but I've spent all day searching for an answer with no luck. For some reason my "add to cart" button does not show for any product. This was a direct Presta 1.4 install on a clean host with PHP 5.2.12.Here is a direct link to a product page in question:http://impressawardscom.ipower.com/presta/en/crystal-awards/10-e.htmlAnd here is a link to a product page from a previous version of Presta (1.37) site I set up (same host) that works:http://energyfa.ipower.com/presta/18-escuro-ii-crystal-star.htmlThe snippet of code that I think may be the culprit is this: <form id="buy_block" class="hidden" action="http://impressawardscom.ipower.com/presta/en/cart" method="post"> Why is this class hidden and how do I change it?Any suggestions would be much obliged,Cory Link to comment Share on other sites More sharing options...
VNguyen Posted April 8, 2011 Share Posted April 8, 2011 Hi,Make sure you do not use Catalog mode (new feature of PS 1.4). To check this option is On or Off, go to Back End => Preferences => Products => Catalog Mode => Select YesHope that it will solve your problem. 1 Link to comment Share on other sites More sharing options...
coryp Posted April 8, 2011 Author Share Posted April 8, 2011 I knew it was something simple. Thank you for your time sir =) Link to comment Share on other sites More sharing options...
VNguyen Posted April 8, 2011 Share Posted April 8, 2011 You are welcome. It's so great to heard that it can help you. Link to comment Share on other sites More sharing options...
paddy mcginty Posted June 4, 2011 Share Posted June 4, 2011 I still have a problem with the button showing on the categories page, unless you over ride the "Default: Allow orders (as set in Preferences)" option for the individual product the Add To Cart button fails to display on the category page, it makes no difference what options you change on the preference page. Link to comment Share on other sites More sharing options...
TheMash Posted June 13, 2011 Share Posted June 13, 2011 I have the same problem here, as reported the user paddy mcginty.May it be a bug?It happened after importing for first time product list with CSV file.When I imported the CSV I ticked the "Delete all products".Now the button is visibile only when a product is set also on "Home" category. Link to comment Share on other sites More sharing options...
paddy mcginty Posted June 14, 2011 Share Posted June 14, 2011 Yes it is indeed a bug, it has been sorted now so download a fresh installation. Link to comment Share on other sites More sharing options...
TheMash Posted June 14, 2011 Share Posted June 14, 2011 Yes it is indeed a bug, it has been sorted now so download a fresh installation. I've the latest version installed, the 1.4.2.5...it happens with this version too. Link to comment Share on other sites More sharing options...
paddy mcginty Posted June 14, 2011 Share Posted June 14, 2011 Two files have to be updated:In template product-list.tpl, the is a bad condition "$product.minimal_quantity == 1" must be "$product.minimal_quantity <= 1". http://scm.prestashop.com/browse/PrestaShop_v.1.4.x/themes/prestashop/product-list.tpl?r=6909http://scm.prestashop.com/viewrep/PrestaShop_v.1.4.x/classes/Product.php?r1=6854&r2=6954 Link to comment Share on other sites More sharing options...
TheMash Posted June 14, 2011 Share Posted June 14, 2011 It works!To fix it:1. Open your theme folder2. Open template file "product-list.tpl"3. Go to row number 474. Search for "$product.minimal_quantity == 1" (without quotes)5. Replace with $product.minimal_quantity <= 1 (without quotes).Maybe you need to fix it also into the Homefeature module template.Thanks for the help ;-) Link to comment Share on other sites More sharing options...
jesushp Posted June 14, 2011 Share Posted June 14, 2011 It works!!!Thanks a lot.Many thanks.Do you know what i must change on featuredproducts.tpl to see the buttons on home page????Thanks. Link to comment Share on other sites More sharing options...
TheMash Posted June 14, 2011 Share Posted June 14, 2011 I fixed it in the same way for the product listing.In modules/homefeature/homefeatured.tpl, row 47:1. Search for “$product.minimal_quantity == 1” (without quotes)2. Replace with "$product.minimal_quantity <= 1" (without quotes).It's the same for the product listing ;-) Link to comment Share on other sites More sharing options...
jesushp Posted June 14, 2011 Share Posted June 14, 2011 It´s OK.Works.I didn´t found but now it´s OK.THANKS. Link to comment Share on other sites More sharing options...
paddy mcginty Posted June 14, 2011 Share Posted June 14, 2011 The Product.php file needs to be changed as well line 73http://scm.prestashop.com/viewrep/PrestaShop_v.1.4.x/classes/Product.php?r1=6854&r2=6954 Link to comment Share on other sites More sharing options...
melriks Posted June 27, 2011 Share Posted June 27, 2011 Make sure you do not use Catalog mode (new feature of PS 1.4). Bless you for this answer. Link to comment Share on other sites More sharing options...
Indivogue Posted August 23, 2011 Share Posted August 23, 2011 I'm still stuck guys, changed product.php, homefeatured.tpl & product-list.tpl to the given values..... still cant view the "add to cart button" in product pages, please help..!! Link to comment Share on other sites More sharing options...
Dinare Posted November 11, 2012 Share Posted November 11, 2012 I'm still stuck guys, changed product.php, homefeatured.tpl & product-list.tpl to the given values..... still cant view the "add to cart button" in product pages, please help..!! Same by me. Any suggestions? Link to comment Share on other sites More sharing options...
mello Posted March 14, 2013 Share Posted March 14, 2013 I have same problem in Prestashop 1.5.2 and 1.5.3.1 On fresh install "add to cart" working, but after some time the button is no longer displayed correctly. This solution doesn't work for me. Link to comment Share on other sites More sharing options...
vekia Posted March 14, 2013 Share Posted March 14, 2013 i think that you should create separate topic because this one is for old prestashop version 1.4.x not for 1.5.x Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now