Support » Plugin: WooCommerce Extended Coupon Features FREE » New computing method

  • I need to use AutoCoupon on my products in a different way :

    A = The main product price
    B = Discounted product price by Woocommerce
    C = Intended percent
    *****************
    D = (A – B) – C%
    *****************

    Example :
    product price = 100$
    discounted product price = 70$
    final price to pay (Auto Coupon) = (100$ – 70$) – 90% = 3$

    how can i do this please ?

    • This topic was modified 2 months, 2 weeks ago by  kimiatasnimco.
    • This topic was modified 2 months, 2 weeks ago by  kimiatasnimco.
    • This topic was modified 2 months, 2 weeks ago by  kimiatasnimco.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Soft79

    (@josk79)

    This is not possible out of the box. Programmatically this can probably be achieved by using the woocommerce_coupon_get_discount_amount-filter.

    thank you for replay ,
    where should I use the filter ? in plugin files like ‘WJECF_Autocoupon.php’ , ‘class-wjecf-controller.php’ …. , or in my woocommerce theme .php’s ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.