Commerce stock module prevents add to cart on product page

paradoxx's picture
paradoxx
Sat, 08/01/2015 - 17:48
#1
Commerce stock module prevents add to cart on product page

After installing and enabling the commerce stock module, it seems impossible to add a product to the cart from the product detail page as shown below :

Image title

This is for both products in stock as out of stock.

Also the add to cart button is not shown with the 'out of stock' replacement label this module provides.
The wishlist is showing it correctly though :

Image title

Also in the product grid displays the add to cart widgets are disabled correctly

Image title

Is theme customization around this specific add to cart widget responsible for this malfunctioning ?

phuonght's picture
phuonght
Sun, 08/02/2015 - 22:56

Hi,

Could you send us you site url, admin and FTP accounts (forum link as well) via email: [email protected]?

We would like to have a check.

cindy's picture
cindy
Mon, 08/03/2015 - 04:21

Hi,

We still have your account (just check the mail again:)

We install module commerce stock into our demo. After enable this module, the button ADD TO CART  still works fine
Please check your code again

paradoxx's picture
paradoxx
Mon, 08/03/2015 - 07:38

Hi, i've checked my settings and apparently the Ajax add to cart module is conflicting with the add to cart on product page. I couldn't see any error messages in in my JS console so it must be something else preventing me to Ajaxify add to cart.

It does seem to work okay though on other product grid and list pages..

Thanks for your reply and demo check !

paradoxx's picture
paradoxx
Sat, 08/08/2015 - 14:55

Hi, just for your information :

I have been able to re-establish the add to cart ajax function on the product detail page, simply by make these changes to the form commerce-cart-add-to-cart-form.tpl.php

and adding some custom css to style the button :

As such both commerce stock as ajax add to cart are fully functional now on all theme pages.

ChrisG's picture
ChrisG
Sun, 02/11/2018 - 07:21

Hi there after adding commerce stock module in my installation I am having the exact same issue. Could you please provide a solution for this problem in general?

Thank you very much

cindy's picture
cindy
Mon, 02/12/2018 - 02:42

Hi,

We try with our demo, enable module commerce stock and still add to cart normally. Did you make any configuration? 

ChrisG's picture
ChrisG
Mon, 02/12/2018 - 02:49

I updated core, enabled stock commerce created some more fields in products and imported 2500 products.

ChrisG's picture
ChrisG
Mon, 02/12/2018 - 07:52

I made a frsh install on a subdomain. I installed the stock commerce module, I enabled it for products and it stopped working. Add to cart doesn't stop working if you just enable the stock management from the module catalog. Add to cart stops working if you enable the stock management in the store configuration for the product.

khoa's picture
khoa
Mon, 02/12/2018 - 20:55

Hi,

Please give me your website account and tell me what you did with Commerce Stock module.

Thanks!

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.