[ic] profiles.order

Ed LaFrance interchange-users@icdevgroup.org
Sat Jun 29 16:10:02 2002


At 07:44 PM 6/29/2002 +0000, you wrote:

>Hello,
>
>IC 4.8.5, not sure if this is possible, but thought I would like to try.
>
>I have had a couple of orders go through that would be shipping to Hawaii, 
>Alaska, or APO's and somehow the order went through with s&h zero for 
>GNDCOM. The only way I could see this happening is if they enter all 
>customer information and hit place order before doing a recalculate for 
>the entire order.
>
>So, is there a way to test for [shipping] > 0 in the profiles.order?
>
>Thanks,
>Steve

Well, the real problem is that you can't ship UPS Ground to those 
destinations, but since you can have ITL right in the profile, you can do 
something like this:

[if type=explicit compare="[calc][shipping noformat=1] == 0[/calc]"]
         &return 0
[/if]

Haven't tried this, but according to the docs this should bounce the user 
back to the checkout page, albeit without an error message. If you want to 
advise the user on failure, you could try something like this:

[if type=explicit compare="[calc][shipping noformat=1] == 0[/calc]"]
         [value name=mv_shipmode set='']
         mv_shipmode=required Please choose a valid shipping method for 
your destination
[/if]

Then make sure the shipping method selector is setup with the error tag:

[error name=mv_shipmode std_label="Shipping Method" required=1]

Again, untested. it is possible there may be an issue with setting 
[value]'s in a checkout profile, but there is probably a way around it. In 
any case, this should point you in the right direction. Remember that 
something like this will also cause a failure if you start offering free 
shipping, unless you modify it a bit.

- Ed L.


===============================================================
Increase profits from your Interchange store...
http://www.newmediaems.com/cgi-bin/nm/software_fus.html
===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================