Support » Plugin: TeraWallet - For WooCommerce » topup error – on the cart page

  • Resolved esales2000

    (@esales2000)


    Hello,

    when user try to topup his wallet, he is getting error :

    This product could not be purchased.
    Unable to pay now, shopping cart is empty.
    Your shopping cart is currently empty.

    Any idea how to solve it ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • I`m using FLATSOME theme .

    its look like its not working with the FLATSOME theme ( when i change to the default theme its working )
    any idea why?

    Plugin Author Subrata Mal

    (@subratamal)

    @esales2000 We have checked it with FLATSOME theme and it’s working perfectly for us.

    interesting, because as soon as i change to WordPress default theme .. its working very well.
    but when i turn back to FLATSOME.. the plugin not working ( with Topup )

    Plugin Author Subrata Mal

    (@subratamal)

    Could you please reach FLATSOME support team regarding this and let us know?

    i found the reason, its because im using child theme …

    the problem i found is because of a snipped im using for product without a qty .
    i`m using a snipped to hide the BUY NOW button .. when no qty

    // hide buy now botton qty 0
    function wpa_109409_is_purchasable( $purchasable, $product ){
    if( $product->get_price() == 0 )
    $purchasable = false;
    return $purchasable;
    }
    add_filter( ‘woocommerce_is_purchasable’, ‘wpa_109409_is_purchasable’, 10, 2 );
    // change link in login
    function the_url( $url ) {
    return get_bloginfo( ‘url’ );
    }

    add_filter( ‘login_headerurl’, ‘the_url’ );

    is there any other solution that i can use ?

    Plugin Author Subrata Mal

    (@subratamal)

    Use below code instead to hide buy now button.

    // hide buy now botton qty 0
    function wpa_109409_is_purchasable($purchasable, $product) {
        if ($product->get_price() == 0 && $product->get_id() != get_wallet_rechargeable_product()->get_id()){
            $purchasable = false;
        }
        return $purchasable;
    }
    
    add_filter('woocommerce_is_purchasable', 'wpa_109409_is_purchasable', 10, 2);
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.