elizeustachuka
Forum Replies Created
-
Forum: Plugins
In reply to: [WC Wallet] Bug in Discount CouponThank You!
Forum: Plugins
In reply to: [WC Wallet] Bug in Discount CouponHi 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.
Forum: Plugins
In reply to: [WC Wallet] Bug in Discount CouponHi hemnathmouli
It worked.
Thank You!
Forum: Plugins
In reply to: [WC Wallet] Bug in Discount Coupon** Yes, she is related to the WC Wallet, because the error does not occur with the plugin disabled
Forum: Plugins
In reply to: [WC Wallet] Bug in Discount CouponYes, 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
Forum: Plugins
In reply to: [WC Wallet] Bug in Discount CouponForum: Plugins
In reply to: [WC Wallet] Bug in Discount CouponHi Hemnathmouli,
Added the coupon discount, in two ways:
Print Screen not logged: https://snag.gy/iTZLCf.jpg
Print Screen logged: https://snag.gy/zft3V7.jpgThe error occurs when logged in.
And congratulations, great plugin. Can add support to translate into Portuguese of Brazil, Amendment of the file .pot
Thanks!
Forum: Themes and Templates
In reply to: [Quality] Page creation date .Hi Akhlesh Nagar.
Thank you for your support! His solution worked!