简体   繁体   中英

Magento - Add additional selectable fee's in shopping cart (not products)

We have a situation where we are looking to allow the user to select specific fee based options they can add to their order, in the shopping cart.

These need to just be additional fee's either percentage based fee's or potentially a fixed rate fee.

We have tried a module that aims to do this, but the functionality is not as well implemented as we had hoped and the code is rather buggy. I feel this may be something that can be done with out the need of a third party module.

The concept could be described as the following:

A user purchases a number of items, they wish to then add priority processing to their order, or priority picking of their products, the main thing is that we may wish to have this based on the total price of the order and based on a percentage if this is possible.

A best case scenario would be to have a piece of code to handle the math and have some arguments to allow the percentages to have switch / case options that way if the the cart total is very low, the percentage would choose a fee based on set criteria and if the cart total is very expensive the same.

We aim to avoid having a static fee as of scenarios where a user picks a small item with a low cost versus a high cost item that requires a great deal more work to process.

Then of course the final potential issue here would be to have this fee added and then labeled in the cart as a line item.

We just rather avoid using simple products to handle this solution.

If any one has any ideas or potential solutions I would greatly appreciate any direction or data you could share.

Thanks in advance!

SFLA99

It may be tough to do this without some custom code, especially in the cart. The number of ways that you can add to an order's cost in the shopping cart is relatively low.

My suggestion -- depending on how you are handling the actual fulfillment -- would be to add a shipping method (or try to repurpose the existing shipping methods) that depends on the cost of the order. The existing methods typically give you tiers to use ( $25-50 == X cost , $51-75 == y cost , etc), but you could add a custom shipping module that operates on straight percentages. Either way, this would add to the cost of the order quickly and cleanly. The complication is obviously that you need to retain the actual cost of shipping, but that depends on your own internal policies.

Hope that helps!

Thanks, Joe

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM