Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping module table rate


rajoo_sh

Recommended Posts

Posted

Hi,

 

I'm using table rate shipping for my online store,

 

1. first of all I'm not clear with the weight unit osCommerce uses.

 

2. and I want very simple shipping slabs, e.g.:

0-500 gms. - $1

501 - 1 kg - $2

1 - 2 kg - $3

2 - 5 kg - $5

5-10 kg - $10

 

 

3. Also how can I simply stop a checkout if the total weight is more than 10 kgs.

 

 

Please help

 

Thanks and Regards

Posted

I can answer number 2, I think you need the following for the shipping table:

.500:1,.1:2,2:3,5:5,10:10

 

I think I can answer number 3 so I will be back later when I've got more time if no one's answered.

Posted

if ($total_weight > 10) tep_redirect(FILENAME_SHOPPING_CART);

 

put that in checkout_shipping.php underneath the $total_weight line

Posted

Thanks Richard.

Regards.

 

I can answer number 2, I think you need the following for the shipping table:

.500:1,.1:2,2:3,5:5,10:10

 

I think I can answer number 3 so I will be back later when I've got more time if no one's answered.

Posted

Thanks burt.

Regards

 

 

if ($total_weight > 10) tep_redirect(FILENAME_SHOPPING_CART);

 

put that in checkout_shipping.php underneath the $total_weight line

Posted
if ($total_weight > 10) tep_redirect(FILENAME_SHOPPING_CART);

 

put that in checkout_shipping.php underneath the $total_weight line

 

Why not just use the store Shipping/Packaging setting under Configuration to set the maximum package weight you will ship?

Archived

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

×
×
  • Create New...