viktorivanov
Forum Replies Created
-
Forum: Plugins
In reply to: [Woocommerce Role Pricing] Regular product price displaying 0$, after updateWe had the same issue with the new 3.1 version, so we rolled back to previous one (2.8).
Glad to help. Just wrap the whole thing around if(!is_admin()) check.
But that way you lose your changes once you update the plugin!
The preferred way is to include in your functions.php theme file the following lines:
if(!is_admin()) { $socialLoginInstance = YITH_WC_Social_Login_Frontend::get_instance(); // get instance of the plugin remove_action('woocommerce_after_template_part', array($socialLoginInstance, 'social_buttons_in_checkout')); // this will remove the social icons from checkout page remove_action('woocommerce_login_form', array($socialLoginInstance, 'social_buttons')); // this will remove the social icons from login form on the profile page of woocommerce remove_action('register_form', array($socialLoginInstance, 'social_buttons')); // this will remove the social icons from register form on the profile page of woocommerce remove_action('login_form', array($socialLoginInstance, 'social_buttons')); // this will remove the social icons from wp-login and wp-register forms of WordPress }
Just leave the remove_action statements that works best for you… In your particular case the second and the third…
That’s it.
- This reply was modified 7 years, 12 months ago by viktorivanov. Reason: Make sure the code is run on front pages only!
Forum: Plugins
In reply to: [YITH WooCommerce Social Login] How to change the social icons ?You should never change files in the plugins directory of WordPress, because you’ll lose the changes once you update the plugin!
Better approach is:
1) Copy this file /wp-content/plugins/yith-woocommerce-social-login/templates/social-icons.php
2) Paste it in /wp-content/themes/!!!YOUR_THEME_NAME_HERE!!!/theme/templates/Then open the newly created file and locate the code around line 21st
'image_url' => YITH_YWSL_ASSETS_URL . '/images/' . $key . '.png',
this YITH_YWSL_ASSETS_URL is a constant that points to the assets directory in the plugin /plugins/yith-woocommerce-social-login/assets
but you can replace it with get_template_directory_uri() and you’ll end up with:
get_template_directory_uri() . '/images/' . $key . '.png'
The final step is to create and upload your images
/wp-content/themes/!!!YOUR_THEME_NAME_HERE!!!/images/facebook.png
/wp-content/themes/!!!YOUR_THEME_NAME_HERE!!!/images/google.png
/wp-content/themes/!!!YOUR_THEME_NAME_HERE!!!/images/twitter.pngThat’s it!
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Change icon in headerYou can hook on the
yith-wcwl-browse-wishlist-label
filter and add your own markup with the icon.Forum: Reviews
In reply to: [WooCommerce ePay.bg] Gateway not activatingIt worked for me. I’ve tried it with WooCommerce v. 2.6.3, 2.6.4 + WordPress v. 4.5.2, 4.5.3 and 4.6 – no problems.
The Borika integration works, too.Forum: Plugins
In reply to: [WC Fields Factory] Support REST APIIt would be great to see such option in the plugin.
For now you can use register_rest_field to manually register your ‘wccaf_xxx’ fields for API usage.