bilal266
Forum Replies Created
-
Hello bro,
@acpaulley I didn’t get the solution yet.
but i think this function could help….
function filter_woocommerce_available_payment_gateways( $available_gateways ) {
global $woocommerce;
$unset = false;
$category_ids = array( 8, 37 );
foreach ( $woocommerce->cart->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[‘cheque’] );
return $available_gateways;
};// add the filter
add_filter( ‘woocommerce_available_payment_gateways’, ‘filter_woocommerce_available_payment_gateways’, 10, 1 );can you be more specific how to use this filter and how to check specific category???
function filter_woocommerce_available_payment_gateways( $available_gateways ) {
// how to check the product specifi category here and remove the pay by wallet on that category???
return $available_gateways;
};// add the filter
add_filter( ‘woocommerce_available_payment_gateways’, ‘filter_woocommerce_available_payment_gateways’, 10, 1 );Forum: Plugins
In reply to: [Wallet for WooCommerce] Refund on category baseHi brother,
Can you tell me how ??
Forum: Plugins
In reply to: [Wallet for WooCommerce] Mini Wallet Shortcode?Hi bro,
Thanks for replying, its working finw now.- This reply was modified 6 years, 7 months ago by bilal266.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Mini Wallet Shortcode?Thanks bro working fine,
But the problem is its not showing icon of the mini wallet.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Woo Wallet ShortcodeI want to show wallet icon on a custom place , is there any shortcode available for this?
Hi bro,
I have emailed you, could you please let me how i can do this?