Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

rayisms

Archived
  • Posts

    2
  • Joined

  • Last visited

Profile Information

rayisms's Achievements

  1. Try This, might work! ;) # ################### Greg Whitehead [email protected] 12-20-2007 ================================================== Modification to the original contribution by the author above. 06.21/2008 Richard C. Rosario [email protected] ============================================= This modification will allow you to set percentages in the Table Rate Shipping method. ie 5.00:3.00,25:10%,500:25999999:3% Note: DO NOT USE "," ON ANY AMOUNT YOU ENTER, OTHER WISE THE PERCENT WILL NOT WORK FOR YOU. The location of the edit is /catalog/includes/modules/shipping/table.php Around Line 64 After $table_cost = split("[:,]" , MODULE_SHIPPING_TABLE_COST); $size = sizeof($table_cost); for ($i=0, $n=$size; $i<$n; $i+=2) { if ($order_total <= $table_cost[$i]) { $shipping = $table_cost[$i+1]; break; } } Place //Percentage Mod if ( strpos($shipping,"%") > 0 && MODULE_SHIPPING_TABLE_MODE == 'price') { $shipping = $order_total * round(($shipping/100),2); } //end Percentage Mod That is it.
×
×
  • Create New...