silenx
Forum Replies Created
-
Ok thank you, i resolved with this:
/** * woocommerce_package_rates is a 2.1+ hook */ add_filter( 'woocommerce_package_rates', 'hide_shipping_when_free_is_available', 10, 2 ); /** * Hide shipping rates when free shipping is available * * @param array $rates Array of rates found for the package * @param array $package The package array/object being shipped * @return array of modified rates */ function hide_shipping_when_free_is_available( $rates, $package ) { // Only modify rates if free_shipping is present if ( isset( $rates['free_shipping'] ) ) { unset( $rates['local_delivery'] ); } return $rates; }I use the code from https://docs.woothemes.com/document/hide-other-shipping-methods-when-free-shipping-is-available/
so i have to paste this snippet?
/** * woocommerce_package_rates is a 2.1+ hook */ add_filter( 'woocommerce_package_rates', 'hide_shipping_when_free_is_available', 10, 2 ); /** * Hide shipping rates when free shipping is available * * @param array $rates Array of rates found for the package * @param array $package The package array/object being shipped * @return array of modified rates */ function hide_shipping_when_free_is_available( $rates, $package ) { // Only modify rates if free_shipping is present if ( isset( $rates['free_shipping'] ) ) { // To unset a single rate/method, do the following. This example unsets flat_rate shipping unset( $rates['local_pickup'] ); } return $rates; }Forum: Plugins
In reply to: [WooCommerce] Hide shipping options code not working after update to 2.3Code is working 100% but hide all option.
It would be nice to have an “”hide all when it’s free, except for local pickup”Forum: Plugins
In reply to: [Facebook] the pluging was just hackedI think a good idea is removing this old and less supported plugin, to avoid to be hacked
Forum: Plugins
In reply to: [Visitor Maps and Who's Online] Deactivate Public Mapoh, seems fixed with an update .. sorry for misunderstood and thank you for your time.
Forum: Plugins
In reply to: [Visitor Maps and Who's Online] Deactivate Public MapHi,
yes i’m waiting , i’m patientForum: Plugins
In reply to: [Custom Login] 'Lost password?' link not showingFYI:
I resolved with wp-optimize plugin ( https://wordpress.org/plugins/wp-optimize/ )
i cleaned transient option and the link “lost password” showed up again.
@james try itForum: Plugins
In reply to: [Custom Login] 'Lost password?' link not showingHello, same issue with me on some site ( not all ): try this demo of mine http://demo4.no-ip.org
Forum: Plugins
In reply to: [Custom Login] No user can login with version 3.0.5 installedI confirm the issue of edwintam.
Do on two test wp installation. No login ( it seem reloading the wp-login.php instead log in )Viktor, i deleted the DB table as you suggest in the tutorial ( i step by step follow your guide ) , but nothing change even in 4.0.16 :-\ … my opinion on this plugin it’s not the better now .. before the 4.0 it was a good plugin …
4.0.16 … same issue … resetting the DB as the viktor tutorial even don’t work
Same here .. htaccess fix not work on 4.0.12 .. 2 site of 2 with the blank page on the custom-login-slug