WPprodigy / woocommerce-product-fees

Add additional fees at checkout based on products that are in the cart.
https://wordpress.org/plugins/woocommerce-product-fees/
Other
26 stars 19 forks source link

Product Fee not adjusting after updating item quantity on cart page #37

Closed bordo78 closed 6 years ago

bordo78 commented 6 years ago

On the WooCommerce cart page, when you update the quantity of an item, the Product Fee does NOT recalculate. For example, I'm selling a $20 ticket with a 10% Product Fee, and the customer adds 2 tickets to their cart. When you initially get to the cart page, it correctly displays a subtotal of $40 and a Product Fee of $4. But when the quantity is increased to 3, the updated cart page shows a correct subtotal of $60, but the Product Fee stays at $4. Conversely, if decreased to 1, the subtotal is adjusted to $20, but the Product Fee again stays a $4.

This is a fatal flaw as it allows the customer to add one ticket, then on the cart page, they can circumvent the Product Fee on additional tickets. Please fix. I'd like to use this plugin, but I cannot recommend it to my clients until this is resolved.

WPprodigy commented 6 years ago

I'm thinking there might be something else involved here, as I can't replicate this.

Could you temporarily disable all plugins except for WooCommerce core and Product Fees, then switch to a default WP theme as well while testing.

bordo78 commented 6 years ago

I've left only WooCommerce core and Product Fees active... image

And I have the "2017" theme active... image

And I have a product fee (i.e., 10% "Extra Fee") set for my widget... image

Onto testing: I added one widget to my cart and viewed my cart. Subtotal is $10, Extra Fee is $1... image image

Now when I update the quantity to 4, subtotal is updated to $40, Extra Fee is STILL $1... image

WPprodigy commented 6 years ago

Need to use the "Multiply Fee by Quantity" setting.

bordo78 commented 6 years ago

That fixed it. I missed that setting in my haste. My apologies, and thank you.

WPprodigy commented 6 years ago

All good :). The wording is a bit confusing when dealing with percentages.