开发者

Magento quantity field doesn't work

i simply can't find a solution to my problem! The quantity field worked as it should. After a few months of programming on the whole shop, i wanted to test the quantity field and recognized that it doesn't function.

I only can add one product to the cart alth开发者_StackOverflowough i typed “3” in the quantity field.

I didn’t change anything in product/view.phtml and addtocart.phtml. Don't know where i have to search for this error. Maybe someone can give me a tip...

greets max


The quantity field is used in the various product type prepareForCart functions. Did you override any of your product classes?


solved

In my case, the button add to cart had not the original

onclick="productAddToCartForm.submit(this)"

With this method is not only the product submitted, the quantity is beeing submitted, too. In my on click was

onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"

This sent the data via GET and did it always without the quantity. Personaly I do not know, what, why or when the change occured to the view.phtml.

Hope this helps :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜