MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

RE: [mv] $0.00 Shipping Charges Problem



Hi Cameron,

It's been my experience that customers will *always* choose the ship method 
that happens to report $0.00. ;-)

In your case, you probably want "eq '$0.00'" (untested) instead of "=$0.00" 
or something in Perl based upon the following snippet from my shipping 
selection SELECT (which removes shipping methods which return $0.00):

<SELECT MV=loop
	MV.SEARCH="fi=country.asc/se=[default country 
US]/sf=selector/rf=shipmodes"
	MV.OPTION="mv_shipmode"
	onChange="this.form.submit()"
	NAME="mv_shipmode">
[perl interpolate=1]
 $sub = substr '[shipping [loop-code]]',1;
 return '<OPTION VALUE="[loop-code]"> [shipping-desc [loop-code]] [shipping 
[loop-code]]' if $sub != '0.00';
[/perl]
</SELECT>

Or, you might want to force the customer to enter a valid zip code (if 
country eq 'US') and do a look up for the city & state for them. (This also 
eliminates typos by the customer. The US Postal Service will gladly send 
you a CD-ROM full of mostly useless stuff, which includes the very useful 
zip-to-city/state reference file.)

Cheers,
Tim

-----Original Message-----
From:	Cameron B. Prince [SMTP:princecb@inetexpertsinc.com]
Sent:	October 09, 1999 8:53 PM
To:	Minivend-users@minivend.com
Cc:	sledge@inetexpertsinc.com
Subject:	[mv] $0.00 Shipping Charges Problem

******    message to minivend-users from "Cameron B. Prince" 
<princecb@inetexpertsinc.com>     ******

Hello everyone,

I have gotten a few orders with $0.00 shipping charges due to customers
incorrectly entering their zip code. I am trying to use this code to
eliminate the problem:

[if value shipping=$0.00]
[then]

ERROR - SHIPPING CALCULATION PROBLEM

Please go back and check your state and postal code and resubmit your order

[/then]
[else]

Normal final checkout page with "Submit Order" button

[/else]
[/if]


For some reason, this code isn't working. The normal checkout page is shown
no matter if the shipping is $0.00 or not. Could someone please tell me if 
I
am using the proper syntax for the tags? Could this also be caused by the
inability to calculate shipping? I am getting an error in error.log, but
regardless of that, the value is still $0.00. I can't understand why the
string is not being matched so the error would be shown to the customer
instead of the normal page.

Thanks for any help you can provide,

Cameron B. Prince

Internet Experts Inc.
Phone:	(256) 227-1238
FAX:	(256) 227-1438


-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to 
Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: