XaviMolinaC Posted September 29, 2014 Share Posted September 29, 2014 Hi, I've problems with the "add to cart" button in my prestashop site. It's missing both in the product list as in the product page. Because the site is new, we don't have too much stock in the products, but to try the functionality I've changed the settings to allow selling them without stock. Currently I've tried a few things: - Set stock for the product that I want to test. - Set the preferences of the product to allow selling without stock - Disable the catalogue mode. - Try the new advanced stock management functionality But I'm still in the same point, I can't see the add to cart buttons for any product. My site is: http://www.espaiartistic.com/prestashop/index.php Thanks! Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 29, 2014 Share Posted September 29, 2014 Hi, I've problems with the "add to cart" button in my prestashop site. It's missing both in the product list as in the product page. Because the site is new, we don't have too much stock in the products, but to try the functionality I've changed the settings to allow selling them without stock. Currently I've tried a few things: - Set stock for the product that I want to test. - Set the preferences of the product to allow selling without stock - Disable the catalogue mode. - Try the new advanced stock management functionality But I'm still in the same point, I can't see the add to cart buttons for any product. My site is: http://www.espaiartistic.com/prestashop/index.php Thanks! Hi! Thanks for the message. Turn off Advance Stock Management if you don't need it. In Preferences>Product>Product Page turn On "Display Add to Cart when a product has attributes" Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 29, 2014 Share Posted September 29, 2014 Try this too, Add stock to all of the combinations to one product and see if the button comes back. So for each combination you have of one product, add stock to it via the Back Office. Save it. Clear cache and cookies and reload from various browsers. Link to comment Share on other sites More sharing options...
XaviMolinaC Posted September 29, 2014 Author Share Posted September 29, 2014 Hi benjamin, Thank you for your prompt reply, I've checked the "Display Add to Cart when a product has attributes" option and it was already on. And for the "adding stock for all combinations to one product" I've tried too, I have one product (that I'm using for testing) with stock for all the combinations, but it has no efect. Do I need stock in some other products or something similar? Thank you Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 29, 2014 Share Posted September 29, 2014 Hi benjamin, Thank you for your prompt reply, I've checked the "Display Add to Cart when a product has attributes" option and it was already on. And for the "adding stock for all combinations to one product" I've tried too, I have one product (that I'm using for testing) with stock for all the combinations, but it has no efect. Do I need stock in some other products or something similar? Thank you I know that you have stock for it. I'm just wondering if you add additional stock to ALL of those combinations in the one product, and then try, does it work? Link to comment Share on other sites More sharing options...
XaviMolinaC Posted September 29, 2014 Author Share Posted September 29, 2014 No, it doesn't. My testing product is this: http://www.espaiartistic.com/prestashop/index.php?id_product=135&controller=product&id_lang=1 It has 5 different combinations and I've added one product to every one (now it has stock = 10) Thanks! Link to comment Share on other sites More sharing options...
mickeyboy1 Posted September 29, 2014 Share Posted September 29, 2014 You have this in themes/yourtheme/product.tpl... <div class="unvisible"> <p id="add_to_cart" class="buttons_bottom_block no-print"> <button type="submit" name="Submit" class="exclusive"> <span>Afegir al carret</span> </button> </p> </div> You need to change <div class="unvisible"> to <div class="visible"> 1 Link to comment Share on other sites More sharing options...
XaviMolinaC Posted September 29, 2014 Author Share Posted September 29, 2014 Hi mickeyboy, I've modified <div class="unvisible"> to <div class="visible"> in product.tpl but still I have nothing, no add to cart buttons. Thank you for your time. Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 29, 2014 Share Posted September 29, 2014 Hi mickeyboy, I've modified <div class="unvisible"> to <div class="visible"> in product.tpl but still I have nothing, no add to cart buttons. Thank you for your time. Clear cache manually Using FTP or your hosting file manager, browse the folder on your server where you have installed Prestashop: \cache\smarty\cache\ You can delete all the files in this folder... Just leave the index.php. Do not delete the index.php. Link to comment Share on other sites More sharing options...
mickeyboy1 Posted September 29, 2014 Share Posted September 29, 2014 Hi mickeyboy, I've modified <div class="unvisible"> to <div class="visible"> in product.tpl but still I have nothing, no add to cart buttons. Thank you for your time. Okay try adding this to themes/yourtheme/css/global.css .visible { display: block; } Link to comment Share on other sites More sharing options...
Nisargshah Posted September 30, 2014 Share Posted September 30, 2014 Hello Presta Team, I have problem with add to cart button its coming in some product and its not coming on random products. Giving some links to show you. Please help me. can not understand problem. try so much solutions given on your forum. http://www.sriramfireworks.com/28-mini-sky-functions (In some product add to cart button is not appearing) http://www.sriramfireworks.com/ (In some product add to cart button is not appearing like featured products) http://www.sriramfireworks.com/41-3-comets (In all product add to cart button is appearing) Link to comment Share on other sites More sharing options...
XaviMolinaC Posted September 30, 2014 Author Share Posted September 30, 2014 Hello guys, After trying what Mickeyboy and benjamin suggested I'm still in the same point, my "add to cart" buttons are missing. Any ideas? Currently I've tried these things: - Set stock for the product that I want to test. - Set the preferences of the product to allow selling without stock - Disable the catalogue mode. - Try the new advanced stock management functionality - Check that "Display Add to Cart when a product has attributes" is enabled. - Add stock for all combinations of one product attributes. - Clear manually the prestashop cache in /cache/smarty/.... - Modify through ftp the theme template (products.tpl and global.css) Thank you Link to comment Share on other sites More sharing options...
mickeyboy1 Posted October 1, 2014 Share Posted October 1, 2014 That's strange as your button element is still styled with display:none but Im not sure where to change it. Hopefully Pascal or Vekia will be able to help you out. Link to comment Share on other sites More sharing options...
XaviMolinaC Posted October 1, 2014 Author Share Posted October 1, 2014 Thank you Mickeyboy for your time. Link to comment Share on other sites More sharing options...
mickeyboy1 Posted October 1, 2014 Share Posted October 1, 2014 (edited) Hope you get it sorted soon Edited October 1, 2014 by mickeyboy1 (see edit history) Link to comment Share on other sites More sharing options...
mickeyboy1 Posted October 2, 2014 Share Posted October 2, 2014 Is your code for <div class= "visible" the same as this: <div class="visible"><p id="add_to_cart" class="buttons_bottom_block no-print"><button type="submit" name="Submit" class="exclusive"><span>Add to cart</span></button></p></div> in product.tpl ????? Link to comment Share on other sites More sharing options...
XaviMolinaC Posted October 2, 2014 Author Share Posted October 2, 2014 Not exactly ... <div{if (!$allow_oosp && $product->quantity <= 0) || !$product->available_for_order || (isset($restricted_country_mode) && $restricted_country_mode) || $PS_CATALOG_MODE} class="visible"{/if}> <p id="add_to_cart" class="buttons_bottom_block no-print"> <button type="submit" name="Submit" class="exclusive"> <span>{if $content_only && (isset($product->customization_required) && $product->customization_required)}{l s='Customize'}{else}{l s='Add to cart'}{/if}</span> </button> </p> </div> Thanks Link to comment Share on other sites More sharing options...
mickeyboy1 Posted October 2, 2014 Share Posted October 2, 2014 (edited) Thats virtually the same as mine and mine works fine. Must be a silly setting somewhere I shall keep trying things for you Have you checked this product against one of your others to check if there are any differences, as the add to cart button works on some other products on your site Edited October 2, 2014 by mickeyboy1 (see edit history) Link to comment Share on other sites More sharing options...
XaviMolinaC Posted October 2, 2014 Author Share Posted October 2, 2014 Thank you very much Link to comment Share on other sites More sharing options...
XaviMolinaC Posted October 3, 2014 Author Share Posted October 3, 2014 Yes, the button doesn't appear in any product. Now, I'm installing a fresh copy of prestashop in a local computer and I'll transfer the database and the images to know whether there are any changes. Link to comment Share on other sites More sharing options...
XaviMolinaC Posted October 8, 2014 Author Share Posted October 8, 2014 Hi guys! I have news... As I said in the last post, I've installed a fresh copy of prestashop in a local machine and with the default data it worked well. I transfered the images and the database of my prestashop site (without touching the core files) and the local prestashop has missed the add to cart buttons as well. For this, in my opinion I think that there's something misconfigured. What do you think? Any ideas? Link to comment Share on other sites More sharing options...
raagau Posted November 30, 2014 Share Posted November 30, 2014 Hi, I have the same issue. After updating all templates, modules, etc. I am missing the cart on top page and add cart button on each product. I am using prestashop 1.5 (last version). I am reading some old posts but not luck so far. I have several method of payemts activated and I also deactivated the stock management from the product. Any help is appreciated. Link to comment Share on other sites More sharing options...
florim Posted December 30, 2014 Share Posted December 30, 2014 back office-->preferences-->products make sure catalog mode = no 2 Link to comment Share on other sites More sharing options...
ablogame Posted January 2, 2015 Share Posted January 2, 2015 florim, You discovery the problem (thank you). If your configuration is set to "Catalog Mode", you don't go sell itens. It is only for presentation. When you turn off this configuration, all shopping cart functions returns. Resuming: back office-->preferences-->products catalog mode = no 1 Link to comment Share on other sites More sharing options...
trevorgilligan Posted January 5, 2015 Share Posted January 5, 2015 hi folks, thanks for all your help and replies to date. if you are busy and cant help it is no problem about my question. im not in catalog mode. my prices are showing. but when i click "best sellers" on home page here: http://vouchoff.com/shop/ , prices do not show. if you could help that would be great, if busy no problem thanks trev Link to comment Share on other sites More sharing options...
dearbeauty10 Posted February 14, 2015 Share Posted February 14, 2015 Hi .. i also have the same issue, i guess it has something to do with screen wide, when i put the screen slimmer, the add to cart button is there ... but when i put wider, the button is gone ... my friend said it has something to do with hidden overflow, i have no idea what that is ... i'm just an administrator ... Link to comment Share on other sites More sharing options...
albert-m1 Posted March 23, 2015 Share Posted March 23, 2015 (edited) hello everyone, I have the same problem , I disappeared on the "add to cart " . all works regularly , if you want to see http://ingrossovenditeonline.com . Can anyone tell me how it is managed add to cart ?sorry for my english ps: PS ver. 1.6.0.14 Edited March 23, 2015 by albert-m1 (see edit history) Link to comment Share on other sites More sharing options...
trevorgilligan Posted March 24, 2015 Share Posted March 24, 2015 no website came up i clicked it. i had to get a developer to look at mine 10 - 20 usd. got it sorted dont know what happened! and dont know how it was fixed but other installations is fine for me, maybe reinstall. trev Link to comment Share on other sites More sharing options...
mickeyboy1 Posted March 24, 2015 Share Posted March 24, 2015 Glad its now sorted for you Shame you didnt find out what the problem was Link to comment Share on other sites More sharing options...
trevorgilligan Posted March 24, 2015 Share Posted March 24, 2015 thanks mickeyboy1 , maybe in the future. sure all these things work out for the best in the end. great to have your support and support of the PS forum. have a nice evening, trev Link to comment Share on other sites More sharing options...
hanyg Posted March 31, 2015 Share Posted March 31, 2015 back office-->preferences-->products make sure catalog mode = no Thank you very much, i spent hours reading through all the forums and looking everywhere for solution but you solved this for me with one line Thanks a lot Link to comment Share on other sites More sharing options...
albert-m1 Posted April 2, 2015 Share Posted April 2, 2015 (edited) hello everyone, I have this problem , I disappeared on the "add to cart " . all process works regularly , look the foto. Can anyone tell me how it is managed add to cart ?sorry for my english ps: PS ver. 1.6.0.14 Edited April 2, 2015 by albert-m1 (see edit history) Link to comment Share on other sites More sharing options...
Kelly Hoang Posted April 12, 2015 Share Posted April 12, 2015 thank you so much !! I have the same product and read everywhere to find the answer. Finally, It is here. Super ! Appreciate ! Link to comment Share on other sites More sharing options...
Zamperini Posted April 28, 2015 Share Posted April 28, 2015 hello everyone, I have the same problem , I disappeared on the "add to cart " . all works regularly , if you want to see http://ingrossovenditeonline.com . Can anyone tell me how it is managed add to cart ? sorry for my english ps: PS ver. 1.6.0.14 I have exactaly the same version i my "ad to cart don´t appeard some one could help pon this ?????????? Link to comment Share on other sites More sharing options...
trevorgilligan Posted May 13, 2015 Share Posted May 13, 2015 a) is it in catalog mode? if not then the issue is either product page add to cart (themes/themename/product.tpl) , products list page add to cart (themes/themename/product_list.tpl) or best sellers or popular or new arrivals (themes/themename/modules/blockbestsellers , newproducts, etc) Link to comment Share on other sites More sharing options...
Rhobur Posted January 20, 2016 Share Posted January 20, 2016 There is a another solution, not elegant but it works. Just remove the paragraph enclosing the add to cart button. Link to comment Share on other sites More sharing options...
jcerdan Posted January 21, 2016 Share Posted January 21, 2016 It may sound strange, but I have met this problem and I have solved it this way, Go to the admin page of the product. go to the "Quantities" tab (my Prestashop is in spanis, I suppose it's "quantities" the text i an english version). There you should have defind manual quantitites as I have read this thread... Even if it's checked, click on: "I want to specify quantities manually" (in spanish: "Quiero especificar cantidades disponibles manualmente.") You'll see some returning messages of the job done. Then check if you can see the button add to cart appear in the public page of the product. best. Link to comment Share on other sites More sharing options...
zenith.collect Posted June 17, 2016 Share Posted June 17, 2016 Hi, I want to show 'Add to Cart' button always (not on mouse over) on home page as well as my product page. Can anybody help? Link to comment Share on other sites More sharing options...
num47 Posted July 10, 2016 Share Posted July 10, 2016 (edited) Hello Everyone, I am having a problem on my site regarding "Add to Cart" Issue. On a product page there is a comment about the product and if i click on the "Read Reviews" then it takes me to the reviews but it makes the "Add to Cart" button disappear and new message appears beside product image that "This combination does not exist for this product. Please select another combination."". Can anyone please give me a solution. If you wish to check about it then please visit to https://rongin.pswebstore.com/home/4-wooden-key-ring-with-your-name-on-it.html Thanks BTW, this appears to me that this happens if the product does not have any attributes. If i add some attribute then it cause no problem. But, if i delete it then it messes things. But this product does not have any attributes to add. How can i fix this problem? Thanks in Advance. Edited July 10, 2016 by num47 (see edit history) Link to comment Share on other sites More sharing options...
StefArts Posted January 11, 2017 Share Posted January 11, 2017 Hello Everyone, I am having a problem on my site regarding "Add to Cart" Issue. On a product page there is a comment about the product and if i click on the "Read Reviews" then it takes me to the reviews but it makes the "Add to Cart" button disappear and new message appears beside product image that "This combination does not exist for this product. Please select another combination."". Can anyone please give me a solution. If you wish to check about it then please visit to https://rongin.pswebstore.com/home/4-wooden-key-ring-with-your-name-on-it.html Thanks BTW, this appears to me that this happens if the product does not have any attributes. If i add some attribute then it cause no problem. But, if i delete it then it messes things. But this product does not have any attributes to add. How can i fix this problem? Thanks in Advance. Hello, Solution of your problem is there: https://github.com/PrestaShop/PrestaShop/pull/5280/files Basically you have to modify: themes/default-bootstrap/js/product.js Find the line: $(window).bind('hashchange', function(){ Change: checkUrl(); findCombination(); To: var is_combination = checkUrl(); if (is_combination) findCombination(); It has worked like a charm for me. Hope it can help. Regards Link to comment Share on other sites More sharing options...
markoroots Posted September 15, 2017 Share Posted September 15, 2017 (edited) Finally after many days of investigation with no luck I have found the problem. Share a like if it help you. This succed only with the products that have the combinations active. If succed for all products you have then is "Catalog Mode" activate. In this case turn it off. If instead it succed only for some product if you see are all products with combinations that you have created. Just set the "Date of availability" of the product and check the right quantity inside each combination created. That's all! Edited September 15, 2017 by markoroots (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts