Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Minimum Shipping Issues


racespec

Recommended Posts

Hey Guys

 

I've successfully redone the TNT Road Expresss Module and will be submitting it as a contribution shortly.

I am currently working on the TNT Overnight First Class Module, but am having issues with weights etc

 

This is what i have come up with so far

 

if ($shipping_weight < '3') {

 

$this->quotes = array('id' => $this->code,

'module' => MODULE_SHIPPING_TNTZIPZONESEXPRESS_TEXT_TITLE,

'methods' => array(array('id' => $this_code,

'title' => MODULE_SHIPPING_TNTZIPZONESEXPRESS_TEXT_DESCRIPTION,

 

'cost' => (($mincharge * MODULE_SHIPPING_TNTZIPZONESEXPRESS_FUEL)+ MODULE_SHIPPING_TNTZIPZONESEXPRESS_HANDLING))));

}

 

if ($shipping_weight > '3') {

 

$this->quotes = array('id' => $this->code,

'module' => MODULE_SHIPPING_TNTZIPZONESEXPRESS_TEXT_TITLE,

'methods' => array(array('id' => $this_code,

'title' => MODULE_SHIPPING_TNTZIPZONESEXPRESS_TEXT_DESCRIPTION,

 

'cost' => (($ccharge * MODULE_SHIPPING_TNTZIPZONESEXPRESS_FUEL)+ MODULE_SHIPPING_TNTZIPZONESEXPRESS_HANDLING))));

}

 

else {

 

$this->quotes = array('id' => $this->code,

'module' => MODULE_SHIPPING_TNTZIPZONESEXPRESS_TEXT_TITLE,

'methods' => array(array('id' => $this_code,

'title' => MODULE_SHIPPING_TNTZIPZONESEXPRESS_TEXT_DESCRIPTION,

 

'cost' => ((($cost * ($shipping_weight - 5) + $ccharge)* MODULE_SHIPPING_TNTZIPZONESEXPRESS_FUEL)+ MODULE_SHIPPING_TNTZIPZONESEXPRESS_HANDLING))));

 

I'm not 100% sure whether 2 if statements are allowed, as i dont know much about programming, so I am assuming 1 is taking over from the other.

 

Any help or recommendations????

 

Thanks

 

Tarek

RACESPEC SALES TEAM

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...