I'm trying to figure out how to apply a fee per product on cart order regardless of the quantity ordered. For example, I want to add a fee only if the quantity of the product is not divisible by the package quantity. Let say the quantity package of product 1 is 6 and the quantity package of product 2 is 10 and handling fee of 25$:
cart 1:
6 x product 1
11 x product 2
----
handling fee 25$
cart 2:
7 x product 1
13 x product 2
-----
handling fee 50$
cart 3:
6 x product 1
20 x product 2
----
no handling fee
please help.
Comments
Comment #1
sunward commentedhow about having 2 listings for each product?
For example, for Product #1, you have one listing for individual units - where you always charge a fee and state so in the description. You then have a second listing for case lots. In this case, 6 of product #1 at 6 times the retail price. In this case, there is never a fee.
Comment #2
dzieyzone commented@sunward - i don't get what you mean.
Comment #3
sunward commenteddzieyzone, you have two choices. One is to wait for either code or a solution to the problem.
Another way is the following:
Say you are selling cleaner. It can be bought as individual units or in cases of 6.
If full cases are bought, there is no handling fee. If any individual units are bought, there is a handling fee of $25.
A work around is to list 2 items for sale.
First item is full cases (6 units) of cleaner. The buyer can purchase as many as they like and no handling fee.
Second item is individual units of cleaner. You set up a fee of $25.00 to add to the cart as a handling fee. In the description, you mention the handling fee and suggest to the buyer (and provide a link) to buy full cases to save the handling fee.
You would do the same for the other product
Comment #4
dzieyzone commentedThank you for the advice but I already created a custom module. :)
Comment #5
zkrebs commenteddzieyzone could you please share that code? I really need the functionality of adding a fee to each item in the cart of a particular attribute, but not the entire cart itself!
Comment #6
mknapp commenteddzieyzone, can you share your custom module or patch? This is an issue that is preventing me properly calculating fees and we'd all very much appreciate the help. If you could post the module or method you used that would be fantastic. Thanks in advance. mk
Comment #7
marcus178 commentedDoes anyone have a solution for this, desperately need a solution
Comment #8
matthandAnybody making progress on this? Thanks.
Comment #9
dzieyzone commentedHi Guys,
Sorry for taking sooooooo long to reply. To those guys asking for the custom module, unfortunately, I no longer have the module that I created on my previous work.