Support » Plugin: WC Wallet » Bug in Discount Coupon

  • Resolved elizeustachuka

    (@elizeustachuka)


    To add a coupon discount is displayed on the screen two times the value of the discount coupon.

    However, at the end of the purchase is calculated correctly.

    The error only occurs with the toilet-wallet plugin plug-in enabled.

    In the attached image, value of the make is R$20.00 (Real BRL) coupon

    PrintScreen: https://snag.gy/xIQWSH.jpg

    Thank you!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author hemnathmouli

    (@hemnathmouli)

    Hi Elizeustachuka,

    Firstly, thank you for using the plugin. Sure, I just noticed now. I will have a update in a day or two.

    And can you please add the way to create this bug? ( How / When this bug happens? )

    Thanks again,
    Hemnath

    Hi Hemnathmouli,

    Added the coupon discount, in two ways:

    Print Screen not logged: https://snag.gy/iTZLCf.jpg
    Print Screen logged: https://snag.gy/zft3V7.jpg

    The error occurs when logged in.

    And congratulations, great plugin. Can add support to translate into Portuguese of Brazil, Amendment of the file .pot

    Thanks!

    Plugin Author hemnathmouli

    (@hemnathmouli)

    Elizeustachuka,

    Sure I will add the translator feature, possibly all language. Also is this site online? Can you share the URL with me?

    Thanks,
    Hemnath

    Hemnathmouli,

    Yes, but the store is in test.

    http://www.graficaavig.com.br

    Plugin Author hemnathmouli

    (@hemnathmouli)

    Hi Elizeu ,

    I tried all possible ways to create this buy, but I can’t reproduce this bug. Are you sure that this bug is produced due to WC Wallet? Can I get you WooCommerce system status report?, that might help me. And the translation option is done, I will have a release on that, with some more added feature.

    Thanks,
    Hemnath

    • This reply was modified 3 years, 3 months ago by hemnathmouli.

    Yes, it is related to the portfolio of W, because the error does not occur with the plugin disabled.

    Use the coupon cód.: cartao10

    The error is related to the code:

    function woo_add_cart_fee( $carts ) {

    if ( is_checkout() || is_cart() || defined(‘WOOCOMMERCE_CHECKOUT’) || defined(‘WOOCOMMERCE_CART’) ) {
    if( is_user_logged_in() ){
    $amount = get_user_meta( get_current_user_id(), ‘wc_wallet’, true );
    if(isset($_POST[‘wc_w_field’]) && $_POST[‘wc_w_field’] !== null && $_POST[‘wc_w_field’] != “”){
    $credit = $_POST[‘wc_w_field’];
    $on_hold = get_user_meta( get_current_user_id(), ‘onhold_credits’,true ) != 0 ? get_user_meta( get_current_user_id(), ‘onhold_credits’,true ) : 0;

    $cart_total = $carts->cart_contents_total;
    if( is_wallet_include_tax() ){
    $tax = this_get_tax( $carts );
    $cart_total = $cart_total + array_sum($tax);
    }
    $in_wallet = $amount;

    File: functions.php line: 52

    ** Yes, she is related to the WC Wallet, because the error does not occur with the plugin disabled

    Plugin Author hemnathmouli

    (@hemnathmouli)

    Hey thanks Elizeu 🙂

    It was actually a bug ( you are right ), I fixed it now. The new version will be available in 24 hours for everyone ( I need to update to WordPress ).

    For now, you can try the new version here
    http://woo.pe.hu/shop/ – products
    http://woo.pe.hu/cart/ – cart
    coupon – 20off

    UN: demo
    PW: demo

    Thanks again,
    Hemnath

    Hi hemnathmouli

    It worked.

    Thank You!

    Hi hemnathmouli,

    How do I get the customer credit shopping.

    So he buys credits, and is automatically added to the balance.

    A plugin that has the function.

    Plugin Author hemnathmouli

    (@hemnathmouli)

    Hello Elizeu,

    New version is available now, your bug will be cleared in that. And really it’s a good feature, I will add that in upcoming or next version. I am marking this as Resolved.

    Thanks,
    Hemnath

    Thank You!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Bug in Discount Coupon’ is closed to new replies.