* @sourcecode m/?p21881 * @author Rodolfo Melogli * @testedwith WooCommerce.3.3 add_filter( 99, 3 function subtotal, cart_item. You can place PHP snippets at the bottom of your child theme p file (before "? HOwever, in the product settings it says that I have a flat discount. Please let me know in the comments if everything worked as expected. If you found this article helpful pass it along to other who might find it useful as well! WooCommerce: show slashed original and discounted subtotal @ Cart. Show price after coupon [email protected] WooCommerce Cart page. I have tested this code with Storefront theme, the WooCommerce version listed above and. This is critical and need to be fixed asap, but since I posted about this in the forum, nothing has happened! There are plugin solutions for this of course but I figured I could come up with something to accomplish this without needing to rely on a plugin so I got started. Tri15 tri20 tri10 / If cart subtotal is greater than 599 AND is less than 800 add or remove coupons if (cart_subtotal 599 cart_subtotal 800) if ( tri15 ) ) return; if ( tri10 ) tri20 ) ). Tri10 tri15 tri20 / If cart subtotal is greater 399 AND is less than 600 add or remove coupons if (cart_subtotal 399 cart_subtotal 600 ) if ( tri10 ) ) return; if ( tri15 ) tri20 ) ).
Does this snippet still work? Subtotal WC - cart- subtotal; if (subtotal 2399) (subtotal 3200) eligible (15/100 subtotal else if (subtotal 3200) (subtotal 3500) eligible (18/100 subtotal else if (subtotal 3500) (subtotal 3500) eligible (20/100 subtotal newsubtotal subtotal - eligible; if ( amount coupon- code, ) ) /i need. Bctt tweet"I just found an awesome WordPress solution!". Wc_price( amount else discount_html). Posted on, october 4, 2017 Published: Oct 2017 - Revised: Mar 2018 Blog Category: WooCommerce Tips Blog Tags: Cart Page, Price Blog Comments: 26 Comments, this is a nice follow up from last weeks snippet. Thank you in advance. I'm creating a new discount rule to cart subtotal as below, but then the coupon applied doesn't get applied to the new subtotal. How to set new subtotal in cart and apply coupon to the new subtotal? Having my setting on Flat Discount, which works on my products, except on Variable Products, where it all of a sudden becomes foto xxl gutscheincode Fixed Discount. Tried adding two products of the same kind (not variable and had a flat discount on them, shown in my cart.
WooCommerce: Slashed Cart Subtotal if Coupon @ Cart WooCommerce: Display Cart Item Subtotal With Coupon Discount Php - Set new woocommerce subtotal and apply a coupon to a new