zed28
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Filtering payment gatewaysPlace it in you functions.php.
You need to replace conditions in filter/function with your own.
If you look at my code, you can see that for my purpose I am hidding “cheque” gateway when user choose “international delivery” or “local delivery” shipping, etc.
You need to replace my conditions with your own. Then it will work for you.
Forum: Plugins
In reply to: [WooCommerce] Filtering payment gatewaysHi, Dalibr,
Plugin did not work for me too (I do not know why…).
finally, I figured out this problem using simple filter/function:add_filter( ‘woocommerce_available_payment_gateways’, ‘hide_unrelated_gateways’);
function hide_unrelated_gateways ($available_gateways) {
global $woocommerce;
if( ($woocommerce->session->chosen_shipping_method == ‘international_delivery’) OR ($woocommerce->session->chosen_shipping_method == ‘local_delivery’)) {
unset($available_gateways[‘cheque’] );}
if( ($woocommerce->session->chosen_shipping_method == ‘local_pickup’)) {
unset($available_gateways[‘cod’] );}
return $available_gateways;
}It simply unsets (hides) unwanted gateways. Replace conditions with your own. Hope it helps.
Alex
Forum: Plugins
In reply to: [WooCommerce] Filtering payment gatewaysHi, Chirag Vora,
thank you for you reply, but unfortunatelly I am using version 2.0.20.
Alex
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Checkboxes and URL comma separated valuesMany many many thanks.
Relevanssi is best, you are best!Alex
Forum: Fixing WordPress
In reply to: Help with modifying comment-reply.jsSolved
Forum: Fixing WordPress
In reply to: Help with modifying comment-reply.jsI found out that ‘title_reply_to’ is ignored when “comment-reply.js” is loaded.
I think I need to write some code within “comment-reply.js” to rewrite “#reply-title” with new text, but I do not how.
Forum: Plugins
In reply to: [WP-Slimbox2 Plugin] Change "Image 1 of 7" textUninstall and reinstall of plugin solved problem.
Forum: Fixing WordPress
In reply to: Passing variable between pagesI solved it!
Forum: Fixing WordPress
In reply to: Background image – does not displayOh, my mistake. I did not know that I can not execute php code in page content.
I must create new template file and put code there.Forum: Fixing WordPress
In reply to: Dynamic heading panel with anchorsMany thanks, this is perfect!
Forum: Fixing WordPress
In reply to: Dynamic heading panel with anchorsI have my site on localhost just now.
Floating panel seems to be perfect solution. Can you give me some basic ideas for it, please?
Many thanks from Alex
Forum: Fixing WordPress
In reply to: Dynamic heading panel with anchorsSorry, my fault.
It is not my site, I want to create something like this.Forum: Fixing WordPress
In reply to: Dynamic heading panel with anchorsSomething like this:
Forum: Fixing WordPress
In reply to: Stay on the same static page after comment submitThanks, keesiemeijer, this is exatcly what I was looking for.