Jump to:

2084 Posts in 1005 Topics by 453 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » deleting membership part of ecommerce module

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: 1047 Views
  • Nickt
    Avatar
    Community Member
    43 Posts

    deleting membership part of ecommerce module Link to this post

    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.
    please help...
    any suggestions would be much appreciated

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: deleting membership part of ecommerce module Link to this post

    Hi mate,

    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.

    Aaron

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