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 12-21-2005 14:35:56

juiceland
Member
From: Liverpool
Registered: 11-17-2005
Posts: 14

Adding Shipping Options

Hi all

Ive tried searching everywhere for this so would be grateful if someone could either point me to the relevant post or help me out with this one. Firstly, i have no knowledge of programming but I have been able to utilise the information in these forums to successfully make changes to our site, so thanks for the help.

We currently have 7 shipping options inc UK, Europe Zones 1-5 and Rest of World but the modification we require only relates to UK option ONLY.

UK option includes United Kingdom Main Land, Highlands & Islands Scotland, Isles Of Scilly, Isle of Man, Channel Islands, Northern Ireland. All these locations get Standard Free Delivery.

We want to be able to add the following options to United Kingdom Main Land ONLY;

Delivery before 12 Noon - £8.00
Saturday Delivery before 12 Noon - £15.00

Note: These options are NOT to be available to Highlands & Islands Scotland, Isles Of Scilly, Isle of Man, Channel Islands, Northern Ireland or any of the other zones.

Our current code is below.

Any help at all is greatly appreciated.

Kind Regards & Happy Christmas

John Jackson



#########
######### Custom scripts may apply to a whole
######### order if all of the items ordered
######### use the same shipping method (Custom)
######### and the same script selection.  Scripts
######### are built to handle a group of like
######### items.
#########
######### A listing of available variables:
#########
######### $item_quantity      Total quantity of items
######### $item_subtotal      Subtotal for all items
######### $item_total_weight  Total weight of all items
#########
######### Directly below, enter in the name for this
######### method to be displayed to the user.
#########

$custom_code_result = "";


my $ship_meth_name = "UK Delivery";
my $ship_meth_name1 = "Europe Delivery - Zone 1";
my $ship_meth_name2 = "Europe Delivery - Zone 2";
my $ship_meth_name3 = "Europe Delivery - Zone 3";
my $ship_meth_name4 = "Europe Delivery - Zone 4";
my $ship_meth_name5 = "Europe Delivery - Zone 5";
my $ship_meth_name6 = "Rest of World - Zone 6";
my $ship_total = "0.00";
my $ship_display = "";
my $ship_total1 = "8.00";
my $ship_display1 = "";
my $ship_total2 = "10.00";
my $ship_display2 = "";
my $ship_total3 = "11.00";
my $ship_display3 = "";
my $ship_total4 = "14.00";
my $ship_display4 = "";
my $ship_total5 = "24.00";
my $ship_display5 = "";
my $ship_total6 = "100.00";
my $ship_display6 = "";


if (($fd_trackitem_shipcountry eq "United Kingdom Main Land")||($fd_trackitem_shipcountry eq "Highlands & Islands Scotland") ||($fd_trackitem_shipcountry eq "Isles Of Scilly")||($fd_trackitem_shipcountry eq "Isle of Man")||($fd_trackitem_shipcountry eq "Channel Islands")||($fd_trackitem_shipcountry eq "Northern Ireland")){
### UK shipping

$ship_display = "$ship_meth_name - $currency_symbol$ship_total";

$ship_total = sprintf("%.2f", $ship_total);

$custom_code_result .= <<ENDOFTEXT;

<CENTER>

<TABLE WIDTH="100\%" >

<TR BGCOLOR="$html_pri_tablerow_color">

<TD VALIGN="TOP">

<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

</FONT></TD>
</TR>


</TABLE>

</CENTER>

<BR>

ENDOFTEXT

} elsif (($fd_trackitem_shipcountry eq "Ireland")
||($fd_trackitem_shipcountry eq "Belgium")
||($fd_trackitem_shipcountry eq "France")
||($fd_trackitem_shipcountry eq "Germany") ||($fd_trackitem_shipcountry eq "Luxembourg") ||($fd_trackitem_shipcountry eq "Netherlands")){
### European Zone 1 charge £8.00.

$ship_display1 = "$ship_meth_name1 - $currency_symbol$ship_total1";

$ship_total1 = sprintf("%.2f", $ship_total1);


$custom_code_result .= <<ENDOFTEXT;

<CENTER>

<TABLE WIDTH="100\%" CELLPADDING="10" CELLSPACING="3">

<TR BGCOLOR="$html_pri_tablerow_color">

<TD VALIGN="TOP">

<INPUT TYPE="RADIO" NAME="shipinfo-$shipid" VALUE="$ship_meth_name1\:$ship_total1" CHECKED> <FONT FACE="$html_base_font_face" SIZE="$html_base_font_size" COLOR="$html_base_font_color">

$ship_display1

</FONT></TD>

</TR>

</TABLE>

</CENTER>

<BR>

ENDOFTEXT

} elsif (($fd_trackitem_shipcountry eq "Austria")
||($fd_trackitem_shipcountry eq "Denmark")
||($fd_trackitem_shipcountry eq "Switzerland")){
### European Zone 2 charge £10.00.

$ship_display2 = "$ship_meth_name2 - $currency_symbol$ship_total2";

$ship_total2 = sprintf("%.2f", $ship_total2);


$custom_code_result .= <<ENDOFTEXT;

<CENTER>

<TABLE WIDTH="100\%" CELLPADDING="10" CELLSPACING="3">

<TR BGCOLOR="$html_pri_tablerow_color">

<TD VALIGN="TOP">

<INPUT TYPE="RADIO" NAME="shipinfo-$shipid" VALUE="$ship_meth_name2\:$ship_total2" CHECKED> <FONT FACE="$html_base_font_face" SIZE="$html_base_font_size" COLOR="$html_base_font_color">

$ship_display2

</FONT></TD>

</TR>

</TABLE>

</CENTER>

<BR>

ENDOFTEXT

} elsif (($fd_trackitem_shipcountry eq "Italy")
||($fd_trackitem_shipcountry eq "Czech Republic")
||($fd_trackitem_shipcountry eq "Slovakia")
||($fd_trackitem_shipcountry eq "Spain")){
### European Zone 3 charge £11.00.

$ship_display3 = "$ship_meth_name3 - $currency_symbol$ship_total3";

$ship_total3 = sprintf("%.2f", $ship_total3);


$custom_code_result .= <<ENDOFTEXT;

<CENTER>

<TABLE WIDTH="100\%" CELLPADDING="10" CELLSPACING="3">

<TR BGCOLOR="$html_pri_tablerow_color">

<TD VALIGN="TOP">

<INPUT TYPE="RADIO" NAME="shipinfo-$shipid" VALUE="$ship_meth_name3\:$ship_total3" CHECKED> <FONT FACE="$html_base_font_face" SIZE="$html_base_font_size" COLOR="$html_base_font_color">

$ship_display3

</FONT></TD>

</TR>

</TABLE>

</CENTER>

<BR>

ENDOFTEXT

} elsif (($fd_trackitem_shipcountry eq "Estonia")
||($fd_trackitem_shipcountry eq "Finland")
||($fd_trackitem_shipcountry eq "Hungary")
||($fd_trackitem_shipcountry eq "Norway") ||($fd_trackitem_shipcountry eq "Poland")
||($fd_trackitem_shipcountry eq "Portugal")
||($fd_trackitem_shipcountry eq "Slovenia")
||($fd_trackitem_shipcountry eq "Sweden")){
### European Zone 4 charge £14.00.

$ship_display4 = "$ship_meth_name4 - $currency_symbol$ship_total4";

$ship_total4 = sprintf("%.2f", $ship_total4);


$custom_code_result .= <<ENDOFTEXT;

<CENTER>

<TABLE WIDTH="100\%" CELLPADDING="10" CELLSPACING="3">

<TR BGCOLOR="$html_pri_tablerow_color">

<TD VALIGN="TOP">

<INPUT TYPE="RADIO" NAME="shipinfo-$shipid" VALUE="$ship_meth_name4\:$ship_total4" CHECKED> <FONT FACE="$html_base_font_face" SIZE="$html_base_font_size" COLOR="$html_base_font_color">

$ship_display4

</FONT></TD>

</TR>

</TABLE>

</CENTER>

<BR>

ENDOFTEXT

} elsif (($fd_trackitem_shipcountry eq "Bulgaria")
||($fd_trackitem_shipcountry eq "Latvia")
||($fd_trackitem_shipcountry eq "Lithuani")
||($fd_trackitem_shipcountry eq "Tunisia")
||($fd_trackitem_shipcountry eq "Turkey")){
### European Zone 5 charge £24.00.

$ship_display5 = "$ship_meth_name5 - $currency_symbol$ship_total5";

$ship_total5 = sprintf("%.2f", $ship_total5);


$custom_code_result .= <<ENDOFTEXT;

<CENTER>

<TABLE WIDTH="100\%" CELLPADDING="10" CELLSPACING="3">

<TR BGCOLOR="$html_pri_tablerow_color">

<TD VALIGN="TOP">

<INPUT TYPE="RADIO" NAME="shipinfo-$shipid" VALUE="$ship_meth_name5\:$ship_total5" CHECKED> <FONT FACE="$html_base_font_face" SIZE="$html_base_font_size" COLOR="$html_base_font_color">

$ship_display5

</FONT></TD>

</TR>

</TABLE>

</CENTER>

<BR>

ENDOFTEXT

} else {
### Rest of the world £100.0


$ship_display6 = "$ship_meth_name6 - $currency_symbol$ship_total6";

$ship_total6 = sprintf("%.2f", $ship_total6);


$custom_code_result .= <<ENDOFTEXT;

<CENTER>

<TABLE WIDTH="100\%" CELLPADDING="10" CELLSPACING="3">

<TR BGCOLOR="$html_pri_tablerow_color">

<TD VALIGN="TOP">

<INPUT TYPE="RADIO" NAME="shipinfo-$shipid" VALUE="$ship_meth_name6\:$ship_total6" CHECKED> <FONT FACE="$html_base_font_face" SIZE="$html_base_font_size" COLOR="$html_base_font_color">

$ship_display6

</FONT></TD>

</TR>

</TABLE>

</CENTER>

<BR>

ENDOFTEXT

}


  - Professional Juicers, Blenders, Sprouters, Dehydrators, Water Coolers wheatgrass and other health related products available to buy online.

Offline

 

Board footer