[prev in list] [next in list] [prev in thread] [next in thread] 

List:       interchange-users
Subject:    Re: [ic] How to stop zero cost shipping
From:       Joshua Lavin <joshua () kingdomdesign ! com>
Date:       2004-08-26 17:55:23
Message-ID: 1A5AB38A-F789-11D8-88F8-000A958D9894 () kingdomdesign ! com
[Download RAW message or body]

On Aug 24, 2004, at 9:21 AM, Stewart Barnett wrote:

> I can not figure out what to put in the checkout_profile that will 
> stop the order if
> shipping is a zero cost. There is not much documentation on just what 
> operations are
> available within a profile, but I know a simple blah=required won't do 
> the job. There is
> an option in the shipping method editor that says "Allow to be zero 
> cost", but it doesn't
> change a thing in the shipping.asc file.
>
> I can't be the only one who suffers this loophole. Any tidbits of 
> wisdom?
>
> Stew

Mike Heins cooked this up for me a while back.

add this to catalog.cfg under COMMON_ORDER_PROFILE variable:

[tmp shipping_amount][shipping noformat=1][/tmp]
[calc]
	if($Scratch->{shipping_amount} > 0) {
	    $CGI->{has_shipping} = 1;
	}
	else {
	    $CGI->{has_shipping} = ''
	}
      return;
[/calc]
has_shipping=mandatory Zero-cost shipping not allowed. Please contact 
us.

--
Josh Lavin
Kingdom Design   http://www.kingdomdesign.com/

_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic