Jump to:

2076 Posts in 857 Topics by 449 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Removing Products once "purchased"

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: 868 Views
  • sca123
    Avatar
    Community Member
    61 Posts

    Removing Products once "purchased" Link to this post

    Hi
    I am using the silverstripe ecommerce module as a basis for an orphan sponsorship site, so that each orphan is a "product". This means that once a orphan is sponsored that it needs to be removed from the site.

    Is there anyway to set "Allow product to be purchased" to '0' on successful payment??

    Any help on this would be appreciated as its for a good cause.

    Thanks
    Samuel

  • sca123
    Avatar
    Community Member
    61 Posts

    Re: Removing Products once "purchased" Link to this post

    In addition, I have just checked and have realised that I need to unpublish the "product" rather than update the "can be purchased" box as this leaves the item on the list and just removes the "buy now" image.

  • sca123
    Avatar
    Community Member
    61 Posts

    Re: Removing Products once "purchased" Link to this post

    I've just changed my code so that the "product cannot be purchased" will remove the product from the list.

    So all I need to do now is update this field on successful purchase (I think at the same time as the products are being added to the orderAttributes table??)

    Any help would be appreciated

    Thanks

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