• Resolved aliwishstar

    (@aliwishstar)


    hi , thanks for good plugin, i want to customize the method (calculate_cashback_form_cart) in (woo_wallet_cashback) class.
    how can customize this in child theme without editing plugin files?

    i want to change this line form

    $percent_cashback_amount = wc()->cart->get_subtotal(‘edit’) * ( self::$global_cashbak_amount / 100 );

    to

    $percent_cashback_amount = wc()->cart->get_total(‘edit’) * ( self::$global_cashbak_amount / 100 );

    thanks for help

    • This topic was modified 6 years, 1 month ago by aliwishstar.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    @aliwishstar

    Please reach out to us at [email protected] about this issue.

    Thank you.

    I hope you can publish it here, i need it too. Because the plugin have so much issues about taxes in get_subtotal and get_total :/ Maybe its better with this: “$percent_cashback_amount = wc()->cart->get_total(‘edit’) * ( self::$global_cashbak_amount / 100 );” for cashback

    but how i can do it, pls public your method here

    • This reply was modified 6 years, 1 month ago by shibamann.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘customize in child theme (woowallet)’ is closed to new replies.