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.
Nick, I got the upgrade and not sure how configure the "User Defined Calculation" is this the ome I use? How would I program this to achieve he following:
The first 2 items cost @ $4.95 to ship
1 additional item adds $2.00, 2 adds $4.00, 3 adds $6.00
and so on.
EX: 1 = $6.95, 2= $8.95, 3= $10.95 and so on
Also need to be able to offer "Express Mail" (next day)
option: 2 video games @ $15.95 I would like to have the option
for all items, but may not use.
What is the proper expression code to use? Thanks for your prompt attention!
Offline
Also need to be able to offer "Express Mail" (next day)
option: 2 video games @ $15.95 I would like to have the option
for all items, but may not use.
In understand the first part, but am not sure what you mean by what I've quoted above. How would the pricing on that level work?
Offline
Let me see if I can make it clearer!
1) If you buy upto 2 items it cost $4.95 to ship
(The first 2 items cost @ $4.95 to ship)
3 Items will add $2.00 to the $4.95 to equal $6.95
4 Items will add $4.00 to the $4.95 to equal $8.95
5 Items will add $6.00 to the $4.95 to equal $10.95
6 Items will add $8.00 to the $4.95 to equal $12.95
snd so on.....
EX: 1 = $6.95, 2= $8.95, 3= $10.95 and so on
Hope this helps!
Offline
Nick, Re the Video Games we can over-ride custom settings for each product correct? We will manually add these prices. Can you please just help us with the first part that you understand? Evan
Offline
Right. So, for the script you need:
my $ship_meth_name = "Standard Carrier"; my $price_per_item_first = "4.95"; my $price_per_item_next = "2.00"; if ($item_quantity <= "2") { $ship_total = "$price_per_items_first"; } else { $item_quantity_calc = ($item_quantity - 2); $ship_total = ($item_quantity_calc * $price_per_item_next); $ship_total = ($ship_total + $price_per_item_first); } ######## End of if statement. $ship_total = sprintf("%.2f", $ship_total); $ship_display = "$ship_meth_name - $currency_symbol$ship_total"; $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
Offline
Can the above code be also used for CCp5? We need to have this done for CCP5 until we complete the upgrade...
Offline
Nick, I added the custom code above did a SQL Update to make ALL products for Custom Shipping. I did a few test buys and it worked yesterday but now it wont work. Alls I get in the Shipping price "Standard Carrier - $0.00" . There is NO price when its time to check out.. Can you please guide me as to what needs to be done or hwt I could have done wrong? THANKS! Evan
Offline