You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I know this has probably been addressed but I can't seem to find it. I need to set up an option at check out that allows for the user to select free pick up or delivery with a flat $5 fee. Any help is appreciated.
Offline
If those are going to be the only 2 options for shipping, then this snippet of code should work. Just set it up as a custom shipping option.
<?php $info = $this->globals('ecom.customship'); //$variable_name = 'Display name for Shipping Options'; $ship_pickup = 'Delivery'; $ship_deliver = 'Pickup'; $ship_pickup_total = 0; $ship_deliver_total = 5.00; $custom = array($ship_pickup => $ship_pickup_total, $ship_deliver => $ship_deliver_total); $this->globals('ecom.customship_response',$custom); ?>
Offline
I changed the script to for a flat rate shipping
<?php $info = $this->globals('ecom.customship'); //$variable_name = 'Display name for Shipping Options'; //$ship_pickup = 'Delivery'; $ship_deliver = 'Royal Mail Recorded Delivery'; //$ship_pickup_total = 0; $ship_deliver_total = 3.95; $custom = array($ship_deliver => $ship_deliver_total); $this->globals('ecom.customship_response',$custom);
Offline