Jump to content

[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

Link to comment
Share on other sites

  • 1 month later...

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

  • 2 weeks later...

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

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

Link to comment
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 ;-)

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 1 year later...
  • 4 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...