Using Cost-based shipping in Cartweaver
Cartweaver uses a base rate for shipping or a weight-based shipping or both, but no cost-based shipping without modifications. Here is a simple way to do cost-based shipping in Cartweaver:
- We'll assume that you want "cost-based" instead of "weight-based" shipping, so change all references from "weight" to "cost"
- In every product sku, make the weight field = the price field. This can be done across the board simply with a query:
UPDATE tbl_skus SET SKU_Weight = SKU_Price - Set weight ranges in the Cartweaver admin as cost ranges. In other words, instead of 0-10 pounds, the figures represent 0-10 Dollars/Pounds/whatever.
That is all. No changes need to be made to code, but you may desire to have the SKU_Weight automatically take the SKU_Price value. A simple change to the admin/CWProductAction.php file will take care of that at or around line 147:
from this:
$_POST["SKU_Weight"] = isset($_POST["SKU_Weight"]) ? $_POST["SKU_Weight"] : "0";
to this:
$_POST["SKU_Weight"] = isset($_POST["SKU_Price"]) ? $_POST["SKU_Price"] : "0";