Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with shipping module


terencevs

Recommended Posts

Posted

I have a flat rate of R40.00 (South Africa) for deliveries.

 

But for more heavier items I want to add a charge of R60.00 to that R40.00.

 

I cant find a module that does that...

 

Can anyone please help?

Posted
I have a flat rate of R40.00 (South Africa) for deliveries.

 

But for more heavier items I want to add a charge of R60.00 to that R40.00.

 

I cant find a module that does that...

 

Can anyone please help?

If there is always something like "if weight > 5 then add 60 rand to the default 40 rand" you could

make an easy fix within the flat shipping module.

For the flat.php source file (the weight number is just an example and depends on how you use weights in your shop):

	function quote($method = '') {
  global $order, $shipping_weight;

$total_shipping_cost = MODULE_SHIPPING_FLAT_COST;
if ( $shipping_weight > 40 ) {
   $total_shipping_cost += 60;
}

  $this->quotes = array('id' => $this->code,
						'module' => MODULE_SHIPPING_FLAT_TEXT_TITLE,
						'methods' => array(array('id' => $this->code,
												 'title' => MODULE_SHIPPING_FLAT_TEXT_WAY,
												 'cost' => $total_shipping_cost)));

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...