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.
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
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
Offline
Thanks! Where in the cart do I apply this code? I can't find it under Shipping Settings anymore, like CCP5. Thanks.
Offline
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
Offline
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
I've looked everywhere I can think of, but I can't find where/how to apply this code. Any ideas?
Offline
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
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
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
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
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