Subrata Mal
Forum Replies Created
-
Forum: Plugins
In reply to: [Wallet for WooCommerce] WPML mulicurrency not supporting@devworlds We have already added Multicurrency support for WooCommerce Multilingual & Multicurrency with WPML you can check the demo here https://demo.standalonetech.com/my-wallet/
Forum: Plugins
In reply to: [Wallet for WooCommerce] Monthly Auto Payment from Wallet@devworlds Please let us know which subscription plugin you are using?
Forum: Plugins
In reply to: [Wallet for WooCommerce] Tera Wallet Rounding Up Amount To Whole Number@digidoda Please try attached updated code.
add_action( 'wp_loaded', function () { if ( isset( $_GET['wallet-topup'] ) ) { $userId = get_current_user_id(); $cart = array(); foreach ( WC()->cart->get_cart() as $item ) { array_push( $cart, array( 'product' => $item['product_id'], 'quantity' => $item['quantity'], ) ); } update_user_meta( $userId, 'wallet_cart', $cart ); $cartTotal = WC()->cart->get_cart_contents_total(); if ( $cartTotal > woo_wallet()->wallet->get_wallet_balance( $userId, 'edit' ) ) { $quantity = ceil( $cartTotal - woo_wallet()->wallet->get_wallet_balance( $userId, 'edit' ) ); WC()->cart->empty_cart(); $product = get_wallet_rechargeable_product(); WC()->cart->add_to_cart( $product->get_id(), $quantity ); wp_redirect( wc_get_checkout_url() ); exit; } } if ( isset( $_GET['wallet-add-products-to-cart'] ) ) { $userId = get_current_user_id(); $cart = get_user_meta( $userId, 'wallet_cart', true ); foreach ( $cart as $item ) { WC()->cart->add_to_cart( $item['product'], $item['quantity'] ); } wp_redirect( wc_get_checkout_url() ); exit; } } );
Forum: Plugins
In reply to: [Wallet for WooCommerce] Tera Wallet Rounding Up Amount To Whole Number@digidoda Please share the code you are using for redirecting the user to add funds.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Where to find the rechargeable product ID ?@phareweb35 You can get wallet rechargeable product ID by calling our core function
get_wallet_rechargeable_product()->get_id();
Forum: Plugins
In reply to: [Wallet for WooCommerce] Referral url – can it be changed?You have to copy the template file into
woo-wallet
folder.@bi1012037 Use this code to remove zero balance user from admin area.
add_filter( 'woo_wallet_users_list_table_query_args', 'woo_wallet_users_list_table_query_args_callback', 10, 1 ); if ( ! function_exists( 'woo_wallet_users_list_table_query_args_callback' ) ) { function woo_wallet_users_list_table_query_args_callback( $args ) { $args['meta_query'] = array( array( 'key' => '_current_woo_wallet_balance', 'value' => '0', 'compare' => '>', ), ); return $args; } }
@bi1012037 Please use the code.
@oliverstorm For this you have to write cron job which will clear wallet trancastions in every interval.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Referral url – can it be changed?@vr6pete You can override
woo-wallet-referrals.php
template file into active theme folder and change the referral url.@bi1012037 Please use the attached code in theme finctions.php file.
add_filter( 'woo_wallet_transactions_query_args', 'woo_wallet_transactions_query_args_callback', 10, 1 ); if ( ! function_exists( 'woo_wallet_transactions_query_args_callback' ) ) { function woo_wallet_transactions_query_args_callback( $args ) { $args['nocache'] = true; return $args; } }
@namulearning No this is not bug. In this case wallet will appear as a payment method. Please check WooCommerce settings payment tab and make sure wallet payment method is enabled.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Not HPOS compatible@pagecode The problem has been resolved with the update to plugin version v1.5.4.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Database keeps growingYou can delete old transactions using bulk action on TeraWallet page.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Terra-wallet – 404This is WordPress permalink issue.