Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi,

 

I am currently making a website for a client, and the website runs OScommerce. The products are separated by category.

 

We would like to offer free shipping for orders over $125, but we don't want any products for a certain category (ie 'paintballs') to count towards that $125. This is because vendors don't tend to offer free shipping on that catagory.

 

Is there any easy way to do this?

 

Thanks,

~Ilya

Posted

you will have to change either the shipping module itself or the ot_shipping.php. You have to correlate the products in the order to the category they belong to and adjust the shipping amount accordingly. Your $order global has all the product identifiers so you need to include another sql query with the products to categories table. Then you count the total of the products that are retrieved from the 2nd sql pass.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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