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-2014 17:03:51

Uncletim
Member
From: Boulder, CO
Registered: 08-03-2003
Posts: 375
Website

Custom shipping method is putting the word "FREE" in the line.

The problem with putting the word free in the line is that in the state of California that is illegal.

UPS - Ground shipping - FREE


Is there a way to change it to say included?

I am using the custom method, here it is.

$info = $this->globals('ecom.customship');

$method = 'UPS - Ground shipping';

if ($info['total'] >= '15' && $info['total'] <= '45.00') {

     $custom = array($method => '20.00');

} elseif ($info['total'] > '45.00' && $info['total'] <= '99.99') {

     $custom = array($method => '20.00');

} elseif ($info['total'] > '99.99' && $info['total'] <= '3500') {

     $custom = array($method => '0');

} else {

     $custom = array($method => '0.00');

} // End of if statement.

$delinfo = array('stateprov'     => $info['stateprov'],
                 'country'       => $info['country'],
                 'postalcode'    => $info['postalcode'],
                 'rescom'        => $info['rescom'],
                 'shipstateprov' => $info['shipstateprov'],
                 'shipcountry'   => $info['shipcountry'],
                 'shipzip'       => $info['shipzip'],
                 'shipmethods'   => 'UPSTOOLS',
                 'shiptype'      => 'R');

$result = $this->include_namespace('ecom','shiprealtime',array('delinfo'  => $delinfo, 'packages' => $info['packages']));

foreach ($result as $num => $service) {$custom[$service['name']] = $service['amount'] + $handling;}

$this->globals('ecom.customship_response',$custom);

?>

Can I edit out the string ?

Thanks.

Offline

 

#2 01-28-2014 11:22:01

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

Re: Custom shipping method is putting the word "FREE" in the line.

Damn.  First CA outlaws guns, now free stuff.  Geez.  You can adjust that here:

Store > Component > Settings > Language Strings

Change 'String: FREESHIPPING' to something like 'No Charge'.


Nick Hendler

Offline

 

#3 01-28-2014 15:32:24

Uncletim
Member
From: Boulder, CO
Registered: 08-03-2003
Posts: 375
Website

Re: Custom shipping method is putting the word "FREE" in the line.

Thanks Nick!

That was a big shock to read this. It only applied to wine merchants in California, but to all savvy web masters, here is the article.

http://www.winesandvines.com/template.c … o.email%3E

Happy reading.

Offline

 

#4 01-29-2014 09:49:19

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

Re: Custom shipping method is putting the word "FREE" in the line.

Incredible.


Nick Hendler

Offline

 

Board footer