Jump to:

1735 Posts in 449 Topics by 392 members

E-Commerce Module

SilverStripe Forums » E-Commerce Module » Issue with Product Variation Quantities

Discuss the E-Commerce Module.

Moderators: martimiz, Nicolaas, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba

Page: 1
Go to End
Author Topic: 725 Views
  • pjonathan
    Avatar
    Community Member
    9 Posts

    Issue with Product Variation Quantities Link to this post

    Hi all, I've implemented the e-commerce module, and am using product variations exclusively. Adding to cart works, but the +/- quantity functions are not working. The issue is: the ID in the add/remove link is the ID of the product, not the variation. I get the following error message as a result:

    Fatal error: Call to a member function getQuantity() on a non-object in...

    How would I go about pointing to the variation id, and not the product id?

    Thanks in advance!

  • kb
    Avatar
    Community Member
    4 Posts

    Re: Issue with Product Variation Quantities Link to this post

    Have a look at http://silverstripe.org/e-commerce-module-forum/show/266407, seems like he had the same problem and solved it (code included).

    725 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.