Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to specify different shipping methods for different products


Yukon4

Recommended Posts

Does anyone know if it is possible to set it up so that certain products will ONLY ship Ground? In other words, have it so the customer cannot select any other method for that product? Using either UPS or FedEx.

 

Thanks! :rolleyes:

Link to comment
Share on other sites

Just a quick thought, although I haven't tried any of this.

 

Create a Product Attribute for 'ground shipping only' (or something to that effect), and assign it to each product that must be shipped by ground. Declare a global variable (SHIP_GROUND) and set it to FALSE for each session. When an item is added to the cart, if the 'ground shipping only' product attribute is present, set SHIP_GROUND to TRUE, otherwise, leave it as it is (since you wouldn't want to set a previous TRUE value back to FALSE).

 

Then, on your individual shipping modules (USPS, UPS, etc) if SHIP_GROUND is true, then only quote prices for the ground option.

 

You may be able to do something similar only within the shipping modules with a Do While loop over each Product/Attribute in the order. Once a 'ground ship' attribute is found, exit the loop and quote ground only.

 

In theory, should work, but not a php developer, so can't provide a working example.

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...