2088 Posts in 1008 Topics by 455 members
|Go to End|
30 August 2012 at 3:08am
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?
30 August 2012 at 6:25pm Last edited: 30 August 2012 6:27pm
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
4 September 2012 at 8:59pm Last edited: 5 September 2012 7:42pm
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?
5 September 2012 at 7:43pm
I found the solution, I forgot to set the following line code in the _config.php file:
Thanks for the solution, I think it's a good addition to the ss-shop!
5 September 2012 at 10:32pm
Just one more question: Where can I edit the DefaultShippingZone?
$zone = SiteConfig::current_site_config()->DefaultShippingZone();
6 September 2012 at 8:19am Last edited: 6 September 2012 8:21am
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
6 September 2012 at 7:38pm
Thanks, it worked. I thought I had to set it in _config.php, but this is even better!
|Go to Top|