Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Show Table Rate shipping depending on UK County


woll

Recommended Posts

I'm implementing osCommerce for a local business.

 

The company currently makes deliveries to the local area (UK Counties of Durham. Northumberland and Tyne & Wear) by van.

 

I'm trying to set up table rate shipping to be available only to customers with a delivery address in any of the 3 counties mentioned above, but I have no idea how to hack the code to do this!

 

Can anyone help?!

Link to comment
Share on other sites

Right, I've had a little dig around, with limited success....

 

I'd assume I have to get the county (state) from the order..something like..

 

$dest_county = $order->delivery['state']

 

Now.. all I have to do is test wether $dest_country is either 'Durham', 'Northumberland' or 'Tyne & Wear' and if so display shipping costs as defined in the Tabel Rate module.

 

Now where would I put the if/statement?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...