Jump to:

2084 Posts in 1005 Topics by 453 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » How to add shipping cost in eccomerce

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

    How to add shipping cost in eccomerce Link to this post

    wanna add fixed shipping cost to ecommerce module how is it possible.

    also some client tell taht if they buy one product the other comes with it in order where can be the error??

    THanks

  • novaweb
    Avatar
    Community Member
    115 Posts

    Re: How to add shipping cost in eccomerce Link to this post

    Hey Dude,

    Put this in your mysite/_config.php file.

    SimpleShippingCalculator::set_charges(6);

  • Simmo
    Avatar
    Community Member
    12 Posts

    Re: How to add shipping cost in eccomerce Link to this post

    I have just been trying to figure this in 0.6 beta, and I used the following to get it working...

    Order::set_modifiers(array(
    'SimpleShippingModifier'
    ));

    SimpleShippingModifier::set_default_charge(6);

  • lanks
    Avatar
    Community Member
    61 Posts

    Re: How to add shipping cost in eccomerce Link to this post

    Thanks for this Simmo, have been trying to get this to work for aages.

  • ninjastu
    Avatar
    Community Member
    5 Posts

    Re: How to add shipping cost in eccomerce Link to this post

    Is there any way of adding shipping for multiple items for example if there are two items in the cart adjust shipping to £10 and if there are 6 items + change shipping to £8?

    Stuart

  • lanks
    Avatar
    Community Member
    61 Posts

    Re: How to add shipping cost in eccomerce Link to this post

    Off the top of my head I'd say the best way would be to look in to the shippingmodifier code and then create your own shippingmodifier with these features. I don't think it would be too hard to do.

  • ninjastu
    Avatar
    Community Member
    5 Posts

    Re: How to add shipping cost in eccomerce Link to this post

    Thanks, I'm sure it is pretty simple but I am in no way a programer, can any body help with the code or point me in the direction of how to create my own modifier code?

    Stuart

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