Previous Topic

Next Topic

Book Contents

Shipping Charges Based on Value or Volume

By default, SalesCart provides you with the ability to create fixed shipping lookup tables based on the total weight of all of the products. This provides you with virtually limitless capability to configure shipping costs, because you can provide as many choices and as many ranges as you want. To configure shipping, refer to the shipping section in this manual. Weight-based shipping is very accurate and most shipping charges are based on the weight of the product.

However, in some cases, you may wish to configure shipping based on the total value or price of the items ordered as opposed to the weight. One reason may be difficulty in determining the weights of all your products. In these cases, you would continue to setup the fixed shipping lookup tables, but substitute price ranges (or volume) for the weight ranges. In addition, you will need to modify the shopping chart to pass for comparison the total weight (or the total volume).

Change the value that SalesCart uses to compare against the fixed shipping lookup tables as follows:

  1. Open you website design tool.
  2. Locate and double-click on the file shipping1.php in the sc-bin folder.
  3. Select the html tab or code-view tab to make your changes. Locate the 9th line from the top:
  4. <meta HTTP-EQUIV="Refresh" CONTENT="0; URL=shipping2.php?country=<% echo $shipcountry; %>&amp;subweight=<% echo $subweight; %>">

  5. This line tells SalesCart what to run next, and passes two values that will be used to look up shipping charges. Highlight the text
  6. echo $subweight;

  7. Change it to echo $subtotal; if you wish to use total price or value, or echo $subvolume; if you wish to use total volume. You may change this line back at a later time if you wish to change back to total weight. When done the file should look like this:
  8. <meta HTTP-EQUIV="Refresh" CONTENT="0; URL=shipping2.php?country=<% echo $shipcountry; %>&amp;subweight=<% echo $subtotal; %>">

    OR

    <meta HTTP-EQUIV="Refresh" CONTENT="0; URL=shipping2.php?country=<% echo $shipcountry; %>&amp;subweight=<% echo $subvolume; %>">

See Also

Modifying the CheckOut System

Customer Receipts via E-Mail

Remove the Merchant Email Component

Remove Shipping Options

Remove the Payment Requirement

Removing Credit Card number Validation

Postponing Customer Checkout

Validating fields on Checkout Pages

Re-running the SalesCart Web Wizard