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 01-27-2017 13:47:29

Murphys001
Member
Registered: 09-06-2014
Posts: 23

Custom Shipping Script Options during Checkout

Hello,

I'm unable to find an answer in the forum posts to a specific custom shipping script question......

I am using a custom shipping exclusively to calculate a shipping cost for every order.
My current shipping script presents one delivery method (ie road delivery) & price in the delivery information box on the checkout page. Can a second option (eg postage) be presented allowing a customer to select their preferred delivery method

If so, my current shipping script ends….
$custom = array($shipname => $shipcost);
$this->globals('ecom.customship_response',$custom);
?>

How would I amend this?
All items will be shipped from the same location using just one delivery method chosen by the customer.
Ideally it would be great to show both road and postage options, but if a certain criteria was met then to be able to "grey" out one of the options so as to make it non-selectable :-)

Finally, can the weight of an order be shown on the checkout page (presumably in delivery information box) when using a custom shipping script?

Thanks...

Offline

 

#2 01-30-2017 07:01:25

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19836
Website

Re: Custom Shipping Script Options during Checkout

Yes.  You need a second option in your $custom array, that's all.  You could do:

Code:

$custom = array($shipname => $shipcost, $shipname2 => $shipcost2);
$this->globals('ecom.customship_response',$custom);

Nick Hendler

Offline

 

#3 01-30-2017 09:19:43

Murphys001
Member
Registered: 09-06-2014
Posts: 23

Re: Custom Shipping Script Options during Checkout

Thanks...
Did not realise that it was that simply!

Can the weight of an order be shown on the checkout page (presumably in delivery information box) when using a custom shipping script?

Offline

 

#4 01-31-2017 08:38:17

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19836
Website

Re: Custom Shipping Script Options during Checkout

Yes.  Maybe just append it to your shipping methods.  Like:

Code:

$shipname .= ' (Weight: ' . $info['weight'] . ' lbs)';

$custom = array($shipname => $shipcost, $shipname2 => $shipcost2);
$this->globals('ecom.customship_response',$custom);

Nick Hendler

Offline

 

Board footer