Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Special "small order fee"

Special "small order fee"

Started by cabinetguy on 6 Jun 2011, 11:55 AM · Views: 1,334

Results 1 to 8 of 8
6 Jun 2011, 11:55 AM
#1
cabinetguy avatar

cabinetguy

Zen Follower

Join Date:
Feb 2008
Location:
Tx gulf coast
Posts:
126
Plugin Contributions:
0

Post #1 by cabinetguy

Is it possible to have a process where a customer may incur a "small order" fee if they buy a product from a certain category?

For example, I sell car parts and tires and if you buy only 1 tire, there is a $5 small order fee, regardless of anything else purchased. So I want a "test" done on the shopping cart products and if the "tire" category contains only 1 piece, then the charge is incurred.

I'm thinking that it would be best to have a virtual product "small order fee" which gets added to the cart as needed. This way I have control over raising or lowering the fee.

Would it be best for future use to have the "small order fee" as an option for all items? This option would be ticked on or off in the product information input process.

Thanks for ideas!

6 Jun 2011, 4:53 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,190
Plugin Contributions:
0

Post #2 by haredo

What shipping method are you using????

If Flat rate try this:
Remember to take good notes you are editing a core .php file and has no override function...

includes/ modules/ shipping/ flat.php

Find this:

// class methods
    function quote($method = '') {
      global $order;

      $this->quotes = array('id' => $this->code,
                            'module' => MODULE_SHIPPING_FLAT_TEXT_TITLE,
                            'methods' => array(array('id' => $this->code,
                                                     'title' => MODULE_SHIPPING_FLAT_TEXT_WAY,
                                                     'cost' => MODULE_SHIPPING_FLAT_COST)));

Change to this:

Notice below is the code: products_id','274')* 6.50;
you will have to change the 274 to match your tire id and 6.50 is price for your special fee..

// class methods
    function quote($method = '') {
      global $order, $cart;
      $chk_how_many_in_cart = $_SESSION['cart']->in_cart_check('products_id','274')* 6.50;

      $this->quotes = array('id' => $this->code,
                            'module' => MODULE_SHIPPING_FLAT_TEXT_TITLE,
                            'methods' => array(array('id' => $this->code,
                                                     'title' => MODULE_SHIPPING_FLAT_TEXT_WAY,
                                                     'cost' => MODULE_SHIPPING_FLAT_COST + $chk_how_many_in_cart)));

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

6 Jun 2011, 6:00 PM
#3
cabinetguy avatar

cabinetguy

Zen Follower

Join Date:
Feb 2008
Location:
Tx gulf coast
Posts:
126
Plugin Contributions:
0

Post #3 by cabinetguy

Good idea, however:

This must work for various shipping methods, fedex, ups and usps.

If I identify each of these special items in the admin setup of the product by ticking "special handling" (or whatever) in the product info, then, when we click on "checkout" then the shopping cart is checked for these items and if any of them qualify for special handling, they are checked to see if the quantity is greater than 1. If the qty is greater than 1, then no handling fee. if qty for those special items equals 1, then we add the Handling fee for that item. This allows for the instance where there may be more than one item in the cart which would incur the additional charge.

Make sense?

Keith

6 Jun 2011, 6:08 PM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,190
Plugin Contributions:
0

Post #4 by haredo

Are you using Table Rate?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

6 Jun 2011, 7:12 PM
#5
cabinetguy avatar

cabinetguy

Zen Follower

Join Date:
Feb 2008
Location:
Tx gulf coast
Posts:
126
Plugin Contributions:
0

Post #5 by cabinetguy

yes, table rate

6 Jun 2011, 7:48 PM
#6
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Post #6 by afo

I'm not seeing where the shipping has anything to do with a "low order fee". I thought there was an add-on that did something along those lines, but I can't find it. :no:

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

6 Jun 2011, 9:35 PM
#7
cabinetguy avatar

cabinetguy

Zen Follower

Join Date:
Feb 2008
Location:
Tx gulf coast
Posts:
126
Plugin Contributions:
0

Post #7 by cabinetguy

If there is an add-on that did this, I would be one happy camper. I am hoping that this is a relatively minor issue....

Keith

7 Jun 2011, 12:11 AM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,769
Plugin Contributions:
56

Post #8 by swguy

Low order fee is built in, it's not an add on. Admin->modules->order total. You're going to have to add some logic of your own, of course.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.