Jump to:

2088 Posts in 1008 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Pickup at store payment option

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: 733 Views
  • quanto
    Avatar
    Community Member
    81 Posts

    Pickup at store payment option Link to this post

    Hi

    I'm building a SS shop (from ss-shop.org). It's already online, but i'm stuck with the payment options.

    I'm trying to get a option "Pick up at store" next to Chequepayment and PaypalPayment. When clicked this option, the shipping costs should be free (0.00). Is there any way to fix this? Or is there any other solution to set the delivery method?

  • Jedateach
    Avatar
    Forum Moderator
    227 Posts

    Re: Pickup at store payment option Link to this post

    Hi Quanto,

    To me it doesn't sound right to provide a payment option for pick-up shipping. This should instead be the role of a shipping modifier.

    You may be interested in this shipping system I've just written for the shop module: https://github.com/burnbright/silverstripe-shop-zonedshipping

    You can specify pick-up shipping by creating a "pick-up shipping" zone, which doesn't charge anything. I've only tested with latest code however (develop branch). I'm planning some improvements to it also.

    You can see this in action at this new t-shirt printers website

    regards,
    jeremy

  • quanto
    Avatar
    Community Member
    81 Posts

    Re: Pickup at store payment option Link to this post

    Ok thanks Jeremy,

    I installed your shipping method. It shows the different shipping methods in the checkout page, but when I select the 'send to shipping address' option, it doesn't calculate the weight, and remains at € 0.00.

    Do you have any clue?

    Rienco

  • quanto
    Avatar
    Community Member
    81 Posts

    Re: Pickup at store payment option Link to this post

    I found the solution, I forgot to set the following line code in the _config.php file:

    Order::set_modifiers(array("ZoneWeightShippingModifier"));

    Thanks for the solution, I think it's a good addition to the ss-shop!

  • quanto
    Avatar
    Community Member
    81 Posts

    Re: Pickup at store payment option Link to this post

    Just one more question: Where can I edit the DefaultShippingZone?

    $zone = SiteConfig::current_site_config()->DefaultShippingZone();

  • Jedateach
    Avatar
    Forum Moderator
    227 Posts

    Re: Pickup at store payment option Link to this post

    Hi Quanto,

    You can configure the default option in your site config section. (root tree item in Pages section).
    If it isn't showing up, then you might need newer shop code, or just add it in yourself. See WeightShippingConfig.php

    Jeremy

  • quanto
    Avatar
    Community Member
    81 Posts

    Re: Pickup at store payment option Link to this post

    Thanks, it worked. I thought I had to set it in _config.php, but this is even better!

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