After discount coupon applied – the cashback amt still the same (should reduce)2019-09-25T12:17:58+05:30

Home Forums Core After discount coupon applied – the cashback amt still the same (should reduce)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • amritanshu.connect
    Participant
    Post count: 2

    1. Cashback not on effective cart value

    I have created a DISCOUNT code of 50%
    and Wallet CASHBACK per order is 20%

    When ordering a product of 1000
    Cost after applying discount of 50% – 500
    But CASHBACK given is 20% of 1000 = 200 and not 20% of new effective price 500

    2. When selecting pay by wallet while checkout – again cashback is on total cart value and not effective cart value

    Total Cart value – 1000
    Amount in Wallet = 500
    On applying wallet amount to cart – effective cart value = 500
    Cashback offered = 20% of 1000 – 200 AND NOT 20% of 500 = 100

    amritanshu.connect
    Participant
    Post count: 2

    This is a bug – If I am giving 100% off on discount, still cashback would be credited which should not happen – cashback should be on the effective cart value

    jdizzle
    Participant
    Post count: 12

    yes they should using total instead of subtotal. OR have the option to choose so.

    @subrata

    jdizzle
    Participant
    Post count: 12

    asking this gets added so i don’t need to change the core files.
    it’s in /class-woo-wallet-cashback.php

    in both functions:

    calculate_cashback_form_order
    please change
    $order->get_subtotal(‘edit’)
    to
    $order->get_total(‘edit’)

    calculate_cashback_form_cart
    please change
    wc()->cart->get_subtotal(‘edit’)
    to
    wc()->cart->total

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
WhatsApp