Jump to:

2076 Posts in 857 Topics by 449 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » How to create ordersteps in trunk-r802

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: 734 Views
  • Webdoc
    Avatar
    Community Member
    329 Posts

    How to create ordersteps in trunk-r802 Link to this post

    ecommerce/code/model/Order.php Line 379 gives error:

    370    //NOTE: anything to do with Current Member and Session should be in Shopping Cart!
    371    public function init() {
    372       //to do: check if shop is open....
    373       $this->initModifiers();
    374       if(!$this->StatusID) {
    375          if($newStatus = DataObject::get_one("OrderStep")) {
    376             $this->StatusID = $newStatus->ID;
    377          }
    378          else {
    379             user_error("There are no OrderSteps ... please Run Dev/Build", E_USER_WARNING);
    380          }
    381       }
    382       $this->extend('onInit');
    383       $this->write();
    384       return $this;
    385    }

    also how can i add the order status option under Process tab in shop config.
    it don't let me make any and also the saving on shop config under admin is unpossible

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