Zen Cart Logo
Forums / Customization from the Admin / selective shipping charge

selective shipping charge

Views: 1,668

Results 1 to 9 of 9
9 Nov 2011, 5:53 PM
#1
zmtak avatar

zmtak

New Zenner

Join Date:
Apr 2011
Location:
Roseburg, OR
Posts:
37
Plugin Contributions:
0

selective shipping charge

using zen cart v1.3.9h.

I am offering free shipping on all my stuff (magazines), but would like to be able to charge shipping on items within a certain category of magazines. Is that possible?

Thanks in advance.

 marty
9 Nov 2011, 6:00 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: selective shipping charge

Did you try setting the weight on all Products to 0 and then in the Products in the Category you want to charge shipping on add weight to the Products? Then set the 0 Weight is Free Shipping in the Shipping/Packaging ... and install the FREE SHIPPING! freeshipper shipping module ...

To see Free Shipping on your Products set all Products to be marked as:

Always Free Shipping: **Yes, Always Free Shipping **

And set the Products in the one Category to be:

Always Free Shipping: No, Normal Shipping Rules

And set the Product Weight to be set to what you are using for your shipping weight if using modules such as USPS and UPS ...

8 Dec 2011, 1:31 AM
#3
craig_hairston avatar

craig_hairston

New Zenner

Join Date:
Aug 2011
Posts:
46
Plugin Contributions:
0

Re: selective shipping charge

My question is similar so I hope it's OK to jump into this thread.

I have a new install V1.3.9h
We offer free shipping on items when the order is greater than $75.00 so we still have to use our weights for small orders. Everything is working fine so far with USPS, UPS, and using free shipping options >$75.00

EXCEPT

We have also indicated that certain (very few) overweight items are exempt from free shipping. Is there a way to force a shipping surcharge in attributes or some other way so when these few heavy items are ordered, that the additional shipping surcharge will applY?

the store is https://www.scplaceonline.com/zen/

Thanks,
Craig

8 Dec 2011, 1:39 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: selective shipping charge

Is there anything to identify these Products other than their products_id ... such as the master_categories_id where the master_categories_id always has this extra charge?

Do you just want to disable the Free Shipping Options freeoptions when these Products are in the Cart?

Or, do you want to disable the Free Shipping Options freeoptions shipping module and disable the USPS and UPS and activate a customized shipping module that only charges the extra charge per Product x quantity x extra charge for these Products?

Or, do you want to disable the Free Shipping Options freeoptions shipping module and add an extra charge to the USPS and UPS shipping charges for these Products for Product x quantity x extra charge ...

8 Dec 2011, 2:45 AM
#5
craig_hairston avatar

craig_hairston

New Zenner

Join Date:
Aug 2011
Posts:
46
Plugin Contributions:
0

Re: selective shipping charge

The products are not in a special category. To be specific, we have a sphere chair for USC Gamecocks and Clemson Tigers. These chairs are big and it will cost about $15-20 dollars each just to ship the chair. The three or four overweight/oversized items are listed in various subcategories, However you have given me an idea if a category based solution exists. I can create a new category - "oversize items" and then cross list them in Home and Garden or Tailgating where they currently exist. For orders over 75, I only want to charge for shipping for the oversized item.

So if they order just a chair at 69.99 shipping will kick in. No problem there. If they order a chair and a cap or whatever, free shiiping kicks in and we spend too much of the net profit covering shipping. If the oversized item is part of any order greater than 75.00 which it will almost always be, other items can still ship free and the fair cost of shipping for the oversized item would be enough to cover the shipping costs for other items.
Therefore the logic I'm looking to implement is if order is greater than 75 and overweight item is included, shipping is "free" + overweight shipping surcharge.

Did I explain it properly? Any creative thoughts would be appreciated.

8 Dec 2011, 3:03 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: selective shipping charge

You could do this by products_id by customizing the code:
/includes/modules/shipping/freeoptions.php

and change the code to add the code in RED:

// final check for display of Free Options
      if ($this->ck_freeoptions_total or $this->ck_freeoptions_weight or $this->ck_freeoptions_items) {
        $this->enabled = true;
      } else {
        $this->enabled = false;
      }

// bof: check for oversized items 12, 17, 18 and charge $15.00 extra per item
      global $cart;
      $chk_oversized = 0;
      $oversized_title = '';
      $chk_oversized += $_SESSION['cart']->in_cart_check('products_id', '12');
      $chk_oversized += $_SESSION['cart']->in_cart_check('products_id', '17');
      $chk_oversized += $_SESSION['cart']->in_cart_check('products_id', '18');
      $extra_shipping = $chk_oversized * 15.00;
      if ($extra_shipping > 0) {
        $oversized_title = '+ overweight shipping surcharge';
      }


      if ($this->enabled) {
        $this->quotes = array('id' => $this->code,
                              'module' => MODULE_SHIPPING_FREEOPTIONS_TEXT_TITLE,
                              'methods' => array(array('id' => $this->code,
                                                       'title' => MODULE_SHIPPING_FREEOPTIONS_TEXT_WAY . $oversized_title,
                                                       'cost'  => MODULE_SHIPPING_FREEOPTIONS_COST + MODULE_SHIPPING_FREEOPTIONS_HANDLING + $extra_shipping)));
// eof: check for oversized items 12, 17, 18 and charge $15.00 extra per item

NOTE: be sure to scroll over on that code to see the changes in the $this->quotes ...

8 Dec 2011, 3:13 AM
#7
craig_hairston avatar

craig_hairston

New Zenner

Join Date:
Aug 2011
Posts:
46
Plugin Contributions:
0

Re: selective shipping charge

:smile:Thanks very much.
As always, I do appreciate the support and creative solutions. Since there are so few items that require this, implementation should be pretty straightforward. I'll give this a try tomorrow morning and I will post my results.

9 Dec 2011, 2:14 AM
#8
craig_hairston avatar

craig_hairston

New Zenner

Join Date:
Aug 2011
Posts:
46
Plugin Contributions:
0

Re: selective shipping charge

Ajeh,

Installed and tested. Works great, just what I needed, and it's easily expandible if we want to add more overweight products.

Consider a donut donation coming in your holiday stocking (via Paypal).

Score another victory for the great band of Zen experts! :clap:

9 Dec 2011, 3:06 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: selective shipping charge

Thanks for the update that this was able to work for you ... and thanks for the donuts, always appreciated! :cool: