Jump to:

2082 Posts in 1002 Topics by 452 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Help with shopping cart and AllowPurchase

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 802 Views
  • funkncreative
    Avatar
    Community Member
    4 Posts

    Help with shopping cart and AllowPurchase Link to this post

    Could someone please help me with this...

    First off, Im looking for a way to only allow one product at a time in the cart. The best way I can think of is clearing the cart just before adding a product, but I cannot figure out how to do it? I have tried in the 'Items Management' section of ShoppingCart.php, but could'n't get it to work.

    Second, I want to set AllowPurchase on the product that is added to the cart to false, and then back to true if the order is cancelled.

    I have been digging around the files and trying some stuff, but cant manage to get either happening.

    please help

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