Author D Mangold on 02-16-2001 at 16:31 (EST)
|How can I specify on the order form that a Handling Charge of $5.00 will apply on all orders less than $50.00?
|Messages In This Discussion|
| 1. RE: Handling Charges|
Author Bill Weiner on 02-19-2001 at 06:30 (EST)
|At this time, the handling charge can only be a flat rate or based on the country that the order is being shipped to. So, you may just have to implement your own "custom_handling" subroutine, as per the instructions below:|
STEP 1. Make a backup of your current "ushop.pl" file ... just in case.
STEP 2. Open your "ushop.pl" file with any text editor such as WordPad.
STEP 3. Do a search on "sub custom_handling".
STEP 4. Replace that entire "custom_handling subroutine with code similar to this:
# Reset the return value.
$ret_value = 0.0;
if ($totals_subtotal2 < 50)
$ret_value += 5.00;
STEP 5. Save the file... as TEXT if your editor asks... and try it out.
NOTE that in order to activate this "custom_handling" subroutine, you must set the handling calculation type in the uShop Control Panel to "CUSTOM".
| 2. RE: Handling Charges (uStorekeeper)|
Author Bill Weiner on 02-19-2001 at 06:41 (EST)
|Ooops. I just realized you were referring to uStorekeeper (as opposed to uShop). |
At this time, the handling fee of uStorekeeper can only configured as a flat rate or based on the shipping destination country. Unless you want to manually modify the script, as per the instructions below:
STEP 1: Make a backup of your current "ustorekeeper.pl" file... just in case.
STEP 2: Open your "ustorekeeper.pl" file with any text editor such as WordPad.
STEP 3: Do a search on the following line:
$current_handling = &strip_letters($current_handling);
STEP 4: Immediately after that line, add the following lines:
if ($subtotal3 < 50)
$current_handling = 5;
$current_handling = 0;
STEP 5: Save the file (as TEXT if your editor asks)... and try it out!