Kryptronic Software Support Forum

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.

#1 08-05-2011 09:33:12

donkster
Member
Registered: 11-09-2010
Posts: 76

Setting Up a Delivery Fee

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

 

#2 08-12-2011 14:43:47

JDLS88
Member
From: Maryland, USA
Registered: 07-06-2011
Posts: 102
Website

Re: Setting Up a Delivery Fee

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.

Code:

<?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);

?>

Jeremy D.

Offline

 

#3 05-07-2012 05:43:57

markp17
Member
Registered: 01-29-2012
Posts: 169
Website

Re: Setting Up a Delivery Fee

I changed the script to for a flat rate shipping

Code:

<?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

 

Board footer