Jump to content
Sign in to follow this  
dlambert

Shipping Surcharge for Certain Items

Recommended Posts

Our store currently uses a flat rate shipping charge of $5 for each order. For most items, this is sufficient, since most are shipped via U.S. Postal Service. However, some of the larger products have to be shipped UPS and therefore cost more. I have searched for a shipping module that will allow me to add a surcharge to specific items (e.g., add $2 to the flat rate of $5 if someone orders a music stand, for a total of $7 shipping); however I have not found a module that does this. Is there one?

- Denis

Share this post


Link to post
Share on other sites

Denis,

 

 

This contribution will allow you to add additional shipping and handling charges. It is configurable within the product description.

 

http://addons.oscommerce.com/info/1333

 

 

Chris


:|: Was this post helpful ? Click the LIKE THIS button :|:

 

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

Share this post


Link to post
Share on other sites

Thanks for the quick response, Chris. Would this module require me to enter an amount for every product in the store, or does it assume that an empty field is equal to no extra charge? There are only about 30 products (out of over 800) that need additional charges, and I'd rather not have to go into the other 770 products one by one to enter "0" in that field.

Share this post


Link to post
Share on other sites

Good question... The base cost of shipping via UPS to most residential customers in this area is $10, so an extra $5 should cover it. However, it's possible that a customer might be 2 or 3 different "surcharge items", or even just multiple quantities of a single such item, and I wouldn't want them to be overcharged for shipping as a result. So I guess what I'm looking for is something that would scan to see if any "surcharge items" were in the cart, and if so, apply a single $5 (or whatever amount my boss chooses) shipping fee in addition to the $5 flat rate charge.

Share this post


Link to post
Share on other sites

Proof of concept code;

 

$products_surcharge = array(20, 21, 22, 23); // any of these ID's in the cart, add the surcharge
     $products = $cart->get_products();
     for ($i=0, $n=sizeof($products); $i<$n; $i++) {
       if (in_array($products[$i]['id'], $products_surcharge)) {
         $cost += 5; // amount to be added
         break;
       }
     }

 

burt, How would one do this with the FedEx Direct module that I inquired about here.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×