2076 Posts in 857 Topics by 449 members
|Go to End|
14 November 2009 at 8:08pm
I would like to delete the membership part of the ecommerce module - i would like to delete the account login, the password form in the checkout page and anything that refers to the membership part.
any suggestions would be much appreciated
14 November 2009 at 10:20pm
This form is built using Silverstripe's form class. You will find the code in /ecommerce/code/OrderForm.php. You will need to remove the form building code relating to those fields from there.
Then in /ecommerce/code/CheckoutPage.php, function processOrder() does all the processing including logging the user in.
This is going to require a bit of playing around on your part in these two files, as the Orders have a has_one relationship with Members. So you won't be able to just take the fields away and have your checkout work.
You might be better off explaining what exactly you are trying to do (sounds like a membership free checkout). You might find that someone has already done this and will share the code.
|Go to Top|