Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Maximum weights and the continue button!


IvIark

Recommended Posts

Posted

Hi

 

I setup a shop for a friend some time ago and he's asked me to make a few changes to allow him to ship internationally. Basically I have setup 3 zones; UK, Europe and the Rest of the World. UK has free shipping and Europe and ROTW are using zone rates so I can set shipping prices as he has specified based on weight.

 

All that works fine except for one niggly problem. When shipping internationally he wants to set a maximum weight and prevent customers proceeding if that weight is exceeded. I have setup the shipping modules correctly and when testing if I pass the maximum rate I get the "The shipping rate cannot be determined at this time" message and zero cost for shipping.

 

I'm happy that the only circumstance that the "The shipping rate cannot be determined at this time" message will be displayed is if the basket is over weight for overseas orders and as I want to stop the customer proceeding to the payment section when that error message is displayed, my question is (as a PHP novice), is there any code I can attach to the continue button that will disable it under that condition?

 

Many thanks for any pointers you can give

Posted

Incidentally, the code I'm looking to edit is from checkout_shipping.php and is:

 

<td class="main" align="right"><?php echo tep_image_submit('button_continue1.gif', IMAGE_BUTTON_CONTINUE); ?></td>

Archived

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

×
×
  • Create New...