Jump to content
coryp

[SOLVED] "Add to cart" button not showing with Presta 1.4

Recommended Posts

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

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

The 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

Share this post


Link to post
Share on other sites

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 Yes

Hope that it will solve your problem.

  • Like 1

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


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

Share this post


Link to post
Share on other sites

It works!

To fix it:
1. Open your theme folder
2. Open template file "product-list.tpl"
3. Go to row number 47
4. 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 ;-)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Make sure you do not use Catalog mode (new feature of PS 1.4).


Bless you for this answer.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

i think that you should create separate topic because this one is for old prestashop version 1.4.x not for 1.5.x

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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