sikhalsa
Forum Replies Created
-
I need your help with something else now, I want to change payment gateway description when your plugin is enabled. For instance, if the plugin is not available description should be: “Pay with bank transfer.” and if the plugin is enabled then description should be: “Pay with the bank transfer, Please note that 2% + $0.40 will be charged per transaction.”
I hope you understand what I am looking for.
Hi Karolina
Thanks for your help the link you shared last time helped me a lot and I came up with the code below that is working like charm. I would love to get the licensed plugin from you.
Paste this code in your functions.php file and you good to go.
function my_pay4pay_handle_tag( $do_apply , $current_payment_gateway ) {
// set our flag to be false until we find a product in that tag
$tag_check = false;// check each cart item for our tag
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {// I have razer tag in product replace it with your tag.
$product = $cart_item[‘data’];
if ( has_term( ‘razer’, ‘product_tag’, $product->id ) ) {
$cat_check = true;
// break because we only need one “true” to matter here
break;
}
}// if a product in the cart is in our tag, enable the plugin
if ( $cat_check ) {
return $do_apply;
}else {
return false;
}
}
add_filter( “woocommerce_pay4pay_apply”, “my_pay4pay_handle_tag” , 10 , 4 );I don’t mind paying for pro version if price is reasonable
Forum: Plugins
In reply to: [Pay for Payment for WooCommerce] Plugin not working with WpTouch pro pluginhow to debug?
Forum: Plugins
In reply to: [Pay for Payment for WooCommerce] Plugin not working with WpTouch pro pluginYes I wrote to both authors wptouch are trying from 30 days but no result pay for PayPal author didn’t reply from so long I wrote here and on github also but so far no reply.
Forum: Plugins
In reply to: [User Admin Simplifier] Cannot Insert Media with User Admin Simplifierhey brother adam can you make your plugin in that way where i have to choose the admin-role(author,admin etc) instead of choosing the user name from drop-down
did not work for me brother.
Forum: Plugins
In reply to: [Featured Video Plus] Overlay Play Button Over Featured Imagehey brother please update soon
Forum: Themes and Templates
In reply to: [Hueman] Show images & videos on home pageHello experts i am new to wordpress i liked the theme made by Alexander Agnarson.. i have read all the discussion but still have a problem. please let me know what i have to edit in “/inc/featured.php” and content-featured.php
hope for reply soon