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 04-23-2004 22:28:02

dride33
Member
Registered: 01-05-2004
Posts: 32

Custom Shipping Amount

I need to set up my cart to add a shipping charge of 15% to the total order, with a minimum of $5.00 on every order.  So essentially, the cart needs to add the larger of $5.00 or 15% of the total order.  I had this set up in CCP5, but when I upgraded to CCP51, I lost it.  Now, I don't see the same link to choose to add the code that I need.  How can get this set up? 

Offline

 

#2 04-24-2004 02:40:24

Brains
Member
Registered: 08-22-2003
Posts: 200

Re: Custom Shipping Amount

my $ship_meth_name = "Standard Carrier";
my $percentage = "15.000";
my $limit = "33.34";
my $flat_fee = "5.00";
my $ship_total = "0.00";
my $ship_display = "";

#########
######### Figure out what the shipping charge will be...
#########

if ($item_subtotal >= "$limit") {

$percentage = ($percentage / 100);

$ship_total = ($item_subtotal * $percentage);

} else {

$ship_total = "$flat_fee";

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

then just inlcude standard print code etc


This should work

BRAINS


International Award Winning Professional Web Design
MySQL Database Design, PHP
UK Hosting on Dedicated Servers
As featured in the Financial Times, ISP World and others.

Offline

 

#3 04-24-2004 07:59:56

dride33
Member
Registered: 01-05-2004
Posts: 32

Re: Custom Shipping Amount

Thanks!  Where in the cart do I apply this code?  I can't find it under Shipping Settings anymore, like CCP5.  Thanks.

Offline

 

#4 04-24-2004 10:38:10

Brains
Member
Registered: 08-22-2003
Posts: 200

Re: Custom Shipping Amount

Main Menu > Shipping Settings > Manage Custom Shipping Methods > % of total item cost

Replace the code with:

my $ship_meth_name = "Standard Carrier";
my $percentage = "15.000";
my $limit = "33.34";
my $flat_fee = "5.00";
my $ship_total = "0.00";
my $ship_display = "";

#########
######### Figure out what the shipping charge will be...
#########

if ($item_subtotal >= "$limit") {
$percentage = ($percentage / 100);
$ship_total = ($item_subtotal * $percentage);

} else {

$ship_total = "$flat_fee";

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

#########
######### Format the $ship_total as a price.
#########

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

#########
######### Create the display based on the price.
#########

if ($ship_total > "0") {

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

} else {

$ship_display = "$ship_meth_name - FREE";

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

#########
######### Return the HTML in the variable
######### $custom_code_result.
#########

$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

Make sure you select this method for your shipping (I presumed this was the method you were using anyway)

BRAINS


International Award Winning Professional Web Design
MySQL Database Design, PHP
UK Hosting on Dedicated Servers
As featured in the Financial Times, ISP World and others.

Offline

 

#5 04-24-2004 12:59:29

dride33
Member
Registered: 01-05-2004
Posts: 32

Re: Custom Shipping Amount

Thanks again.  Maybe I don't have something else set right, because these are the options that I have under Shipping Settings:

Manage Shipping Settings

View Realtime Shipping Status

Manage Realtime Shipping Services

UPS OnLineŽ Tools Connection

USPS WebTools Connection

FedEx DirectConnect Connection

InterShipper Connection

Manage InterShipper Settings

Do I need to declare something else differently so that I get the correct options in this area?

Offline

 

#6 04-26-2004 10:57:12

dride33
Member
Registered: 01-05-2004
Posts: 32

Re: Custom Shipping Amount

I've looked everywhere I can think of, but I can't find where/how to apply this code.  Any ideas?

Offline

 

#7 04-26-2004 11:36:22

Ed_H
Member
From: Smashachusetts
Registered: 09-12-2003
Posts: 397
Website

Re: Custom Shipping Amount

Main Menu > Shipping Settings > Manage Custom Shipping Methods

Then select 'Update" (or create a new method) for the method where the code will be applied.  Paste the code there.

Then in Main Menu > Store Catalog > Manage Products

For each product you will need to select 'Custom Shipping' for 'Deliver Method' and use the appropriate selection in 'Custom - Shipping Script'.

Offline

 

#8 04-26-2004 12:23:28

dride33
Member
Registered: 01-05-2004
Posts: 32

Re: Custom Shipping Amount

I don't have "Manage Custom Shipping Settings" as an option under Shipping Settings.  I only have the options listed in one of my earlier posts.  Do I need to change a setting somewhere else in the cart in order to activate this as an option?

Offline

 

#9 04-26-2004 12:59:08

Ed_H
Member
From: Smashachusetts
Registered: 09-12-2003
Posts: 397
Website

Re: Custom Shipping Amount

Sorry!  Clearly we're looking at two different versions.  I don't have the 'InterShipper' links, which I think were part of an update in 11/2003.  Did you apply that update manually or purchase tiki after that time?

Offline

 

#10 04-26-2004 13:31:33

dride33
Member
Registered: 01-05-2004
Posts: 32

Re: Custom Shipping Amount

I have version 5.1 tiki.  I just recently had v5.1 installed and run, so I would guess it has the latest offerings.  Previously, I had v5.0, and I did have the Manage Custom Shipping Settings option.  In fact, I had this custom method set up, so I wonder why it didn't carry over when the new version was run (which I paid for)??

Offline

 

#11 04-29-2004 15:15:34

dride33
Member
Registered: 01-05-2004
Posts: 32

Re: Custom Shipping Amount

Nick, can you help with this?  I'm not sure where to go from here and I have a live shopping cart that is not figuring the shipping the way that it was before the upgrade.  Please advise.

Offline

 

#12 05-03-2004 10:04:15

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

Re: Custom Shipping Amount

Login as a 'webmaster' level user and that should display the custom shipping script option there.


Nick Hendler

Offline

 

Board footer