Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping Surcharge for Certain Items


dlambert

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

Link to comment
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.

Link to comment
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.

Link to comment
Share on other sites

  • 2 months later...

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.

Link to comment
Share on other sites

  • 4 weeks later...

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