1998 Posts in 530 Topics by 433 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 785 Views |
-
Removing Products once "purchased"

17 December 2009 at 10:35am
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 -
Re: Removing Products once "purchased"

17 December 2009 at 10:37am
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.
-
Re: Removing Products once "purchased"

29 December 2009 at 2:59am
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
| 785 Views | ||
|
Page:
1
|
Go to Top |

