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 05-20-2005 11:18:37

chrisrolling
Member
Registered: 06-11-2004
Posts: 39

User Defined Calculations?

Hello,

We currently are in search of some way to have our overseas shipping configured. We only need one calculation (for any non-U.S. orders the shipping is multiplied x3.) Is there a way to configure/wire this into Click Cart???

Thanks in advance,

Chris Rolling

Offline

 

#2 05-21-2005 09:56:08

superhero2000
Member
From: Harrisburg, PA
Registered: 03-26-2003
Posts: 1025
Website

Re: User Defined Calculations?

I would recommend that you use the Custom Shipping Script > User Defined Calculations and modify that for your needs.


Vinh
VQC Designs, LLC


Offline

 

#3 06-16-2005 10:26:14

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

Re: User Defined Calculations?

This can be done using Us/Non-US logic in a custom shipping script.  Here's an example:

Code:


my $ship_meth_name = "Standard Carrier";
my $ship_total = "10.00";
my $ship_display = "$ship_meth_name - $currency_symbol$ship_total";

if ($fd_trackitem_shipcountry ne "$name_us") {

$ship_meth_name = "Standard Carrier";
$ship_total = "30.00";
$ship_display = "$ship_meth_name - $currency_symbol$ship_total";

} ######### End of if statement.

$custom_code_result = "";

$custom_code_result .= <<ENDOFTEXT;

<INPUT TYPE="RADIO" NAME="shipinfo-$shipid" VALUE="$ship_meth_name:$ship_total" CHECKED> <FONT FACE="$html_base_font_face" SIZE="$html_base_font_size" COLOR="$html_base_font_color"> $ship_display<BR></FONT>

ENDOFTEXT



Nick Hendler

Offline

 

Board footer