Jump to content
XaviMolinaC

Missing add to cart button prestashop 1.6.0.9

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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" 

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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">

  • Like 1

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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; }

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 ?????

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 by mickeyboy1 (see edit history)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

back office-->preferences-->products


 


make sure catalog mode = no


  • Like 2

Share this post


Link to post
Share on other sites
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

 

  • Like 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 ...

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

 

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 :)

Share this post


Link to post
Share on other sites

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

 

post-345763-0-46205800-1427982392_thumb.jpg

 

ps: PS ver. 1.6.0.14

Edited by albert-m1 (see edit history)

Share this post


Link to post
Share on other sites

thank you so much !! I have the same product and read everywhere to find the answer. Finally, It is here. Super ! Appreciate !

Share this post


Link to post
Share on other sites

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 ??????????

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

There is a another solution, not elegant but it works.

Just remove the paragraph enclosing the add to cart button.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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 by num47 (see edit history)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 by markoroots (see edit history)

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More