Jump to:

2088 Posts in 1008 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Working on e-commerce for SS 2.4

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 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Go to End
Author Topic: 13473 Views
  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    @ mattconfusion
    Not sure but don't you have to $page1->Write(); Maybe WriteToStage does the same thing, I'm not too familiar with it.

  • mattconfusion
    Avatar
    Community Member
    48 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    thanks bambi, it works, but neede also to give the requiredDefaultRecords name to the function.
    Anyway, i wonder if someone has already noticed it, there is some weird behaviour in ProductGroups especially when you are using store "ModelAdmin". You create a product but assigning it to a category it just won't work, or well, that's what happened to me. More, there are 2 Save Buttons in the Store Admin....and the first one just gets stuck when you use it, so it has to be removed.
    I ask you these things because haveing thousand of products in the site tree (I'm performing some tests right now) it's really putting sapphire and silverstripe on the hard side...

  • Webdoc
    Avatar
    Community Member
    332 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    burnbright error
    How can i see in page the cart.

    http://www.elramo.ee/uusweb/tooted/

  • Webdoc
    Avatar
    Community Member
    332 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    Got it working

  • ramshackle
    Avatar
    Community Member
    22 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    Hi Webdoc,

    I have having the same error - the cart is not showing. How did you get it working?

    thanks!

  • wainui
    Avatar
    Community Member
    56 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    Hi,

    has anyone managed to get any shipping working on 2.4?

    I am trying the SimpleShippingModifier::set_default_charge(5); in my _config but fails..
    Cant quite figre out where it is going wrong. Any ideas?

    mike

  • mattconfusion
    Avatar
    Community Member
    48 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    I'm trying to extend in the usual way the StoreAdmin class but cannot see any result. I did

    <?php
    class MyOwnAdmin extends StoreAdmin{

       public static $managed_models = array('MyOwnProduct', 'MyOwnProductGroup');

       public static $collection_controller_class = 'MyOwnAdmin_CollectionController';
       public static $record_controller_class = 'MyOwnAdmin_RecordController';
    }

    class MyOwnAdmin_CollectionController extends StoreAdmin_CollectionController {

    }

    class MyOwnAdmin_RecordController extends StoreAdmin_RecordController {

       public function EditForm() {
          $form = parent::EditForm();
          $form->Actions()->removeByName('Save');
          return $form;
       }
    }

    The Store tab at the top of the page is now duplicated but no other effects

  • mattconfusion
    Avatar
    Community Member
    48 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    dunno if it's my svn working strangely, but found an error with the last branch db_cart when trying to view a product. perhaps i don't have all files up to date?

    Fatal error: Class 'ShoppingCart_Controller' not found

    In fact, changing in the class product every invocation 'ShoppingCart_Controller' with simple 'ShoppingCart' fixed it

    13473 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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.