[ic] SpecialSub shipping_callout question
DB
db at m-and-d.com
Tue Feb 5 22:35:39 UTC 2019
I'm trying to add a fixed amount to the shipping calculated at checkout
if the shipping address is to certain states. Is there a way to access
the value of the 'state' in the SpecialSub code such as this example:
Sub custom_shipping <<EOS
sub {
my ($final, $mode, $opt, $o) = @_;
$final *= .90 if $Scratch->{dealer} and $mode =~ /UPS/i;
return $final;
}
EOS
SpecialSub shipping_callout custom_shipping
Thanks!
DB
More information about the interchange-users
mailing list