roberto22
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Product sellerHi,
Yes, using >WooCommerce>Orders>Add Order
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Product sellerHi,
For now I am adding orders manually and have 3 shop managers.
Is possible to export which shop managers is creating the orders?
Thanks!
Forum: Plugins
In reply to: [Wallet for WooCommerce] Total cashback earned@ramyasam no! They said it is a paid job which I wanted to do but they never answered me back.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Disable partial payment for one product category@jinsley8 Hi man, sorry to bother you again.
I tried your code but it doesnt work for me. Is it working for you?
`function disable_partial_payment_for_category() {
// Set $cat_in_cart to false
$cat_in_cart = false;// Loop through all products in the Cart
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {// If Cart has category “change-category-name”, set $cat_in_cart to true
if ( has_term( ‘tarjetas-de-regalo’, ‘product_cat’, $cart_item[‘product_id’] ) ) {
$cat_in_cart = true;
break;
}
}// set to true if “change-category-name” is in the Cart
if ( $cat_in_cart ) {
return true;
}
}
add_filter( ‘woocommerce_available_payment_gateways’, ‘disable_partial_payment_for_category’ );Forum: Plugins
In reply to: [Wallet for WooCommerce] Referral And Wallet block@roghithsam hi man! Did the snippet work??
Forum: Plugins
In reply to: [Wallet for WooCommerce] Disable partial payment for one product category@jinsley8 thanks, I’m gonna try the code!
I was trying to use this snippet but didn’t work.
add_filter( 'woocommerce_available_payment_gateways', 'bbloomer_unset_gateway_by_category' ); function bbloomer_unset_gateway_by_category( $available_gateways ) { if ( is_admin() ) return $available_gateways; if ( ! is_checkout() ) return $available_gateways; $unset = false; $category_ids = array( 8, 37 ); foreach ( WC()->cart->get_cart_contents() as $key => $values ) { $terms = get_the_terms( $values['product_id'], 'product_cat' ); foreach ( $terms as $term ) { if ( in_array( $term->term_id, $category_ids ) ) { $unset = true; break; } } } if ( $unset == true ) unset( $available_gateways['wallet'] ); return $available_gateways; } They also gave me another snippet but still didn’t work. You can check here is you want: https://www.ads-software.com/support/topic/remove-pay-with-wallet-for-a-specific-category/
In case you make work, please let me know. Thanks!
Forum: Plugins
In reply to: [Wallet for WooCommerce] Disable partial payment for one product category@jinsley8 hi, did you achieve this?
Forum: Plugins
In reply to: [Wallet for WooCommerce] Remove pay with wallet for a specific categoryHi,
Any update on this? Thanks!
Forum: Plugins
In reply to: [Wallet for WooCommerce] Remove pay with wallet for a specific categoryForum: Plugins
In reply to: [Wallet for WooCommerce] Remove pay with wallet for a specific categoryHi,
I added the snippet but i get a fatal error https://prnt.sc/12uj4g9
Forum: Plugins
In reply to: [Code Snippets] CRITICAL syntax error, unexpectedHi,
Any help? do you need a screen shot of all the code?
Forum: Plugins
In reply to: [Wallet for WooCommerce] Remove pay with wallet for a specific categoryI also tried using your snippet to remove bank transfer method but it doesnt work.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Remove pay with wallet for a specific categoryHi,
I tried the code but i can still pay with wallet https://prnt.sc/12uhnaw
This is the category ID need to remove the wallet from https://prnt.sc/12uhota
This is the code https://prnt.sc/12uhpwi
Forum: Plugins
In reply to: [Wallet for WooCommerce] Remove pay with wallet for a specific categoryHi,
Yes, I am using the id “wallet” But it is not working.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Remove pay with wallet for a specific categoryadd_filter( ‘woocommerce_available_payment_gateways’, ‘bbloomer_unset_gateway_by_category’ );
function bbloomer_unset_gateway_by_category( $available_gateways ) {
if ( is_admin() ) return $available_gateways;
if ( ! is_checkout() ) return $available_gateways;
$unset = false;
$category_ids = array( 8, 37 );
foreach ( WC()->cart->get_cart_contents() as $key => $values ) {
$terms = get_the_terms( $values[‘product_id’], ‘product_cat’ );
foreach ( $terms as $term ) {
if ( in_array( $term->term_id, $category_ids ) ) {
$unset = true;
break;
}
}
}
if ( $unset == true ) unset( $available_gateways[‘wallet’] );
return $available_gateways;
}