daymobrew
Forum Replies Created
-
That filter does not exist in the latest release version (2.3) but is forthcoming.
Forum: Plugins
In reply to: [WP Updates Notifier] disable notification for core updates@monojp – You could disable core updates by using the line that @oavs lists.
If you want to hack the plugin code you can change:
$core_updated = self::core_update_check($message); // check the WP core for updates
to
$core_updated = false
and it will not check for core updates.I know that hacking the code is a bad idea, but if the notification email is really annoying, it will work until the maintainer updates the plugin.
Maybe the maintainer could check for core updates based on whether WP_AUTO_UPDATE_CORE is defined.
D’oh, that’s an infinitely better idea. Thanks.
I can probably manage to create a github account and add an issue, but a pull request would be beyond me as I have never used git (I use subversion locally).
Forum: Plugins
In reply to: [Pinterest RSS Widget] Cannot updateUpdate works fine for me too. Thanks.
Forum: Plugins
In reply to: [Pinterest RSS Widget] Cannot updateI downloaded the zip file and found the same issue as Karen – file header says 2.01.
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?Oops, what I have a let myself in for 🙂
@workingonclouds: Yes, use the contact page mentioned above.
In the form describe what you are trying to do.Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?@angelp357: Contact me via http://www.damiencarbery.com/contact/
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?I used the updated is_shipfree() in eshop/cart-functions.php and put the other code, free_shipping_checks, in functions.php.
@workingonclouds: I can help you (and your client) if you want. For free.
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?A “site plugin” is not a plugin is unlikely to be useful to others as it would generally contain snippets of code for use on a specific site.
Putting my free shipping code into a plugin would definitely not be useful to others as the values are specific to my client’s site.
Just put it in your theme’s functions.php. That is an appropriate location.
Sorry for the confusion. I should not have mentioned “site plugin”
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?elfin’s update to is_shipfree() goes into eshop/cart-functions.php.
I put my code in the theme’s functions.php (though I should move it to a site plugin).
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?Perfect, thanks.
Here is my working code:// Check shipping country for free shipping - 60 for Ireland (zone 1) and 100 for UK/Europe (zone 2). add_filter('eshop_is_shipfree', free_shipping_checks, 10, 2); function free_shipping_checks($shipfree,$total) { global $wpdb; $country_code=$_POST['ship_country']; $country_table=$wpdb->prefix.'eshop_countries'; $ship_zone = $wpdb->get_var("SELECT zone FROM $country_table WHERE code='$country_code' limit 1"); // Ireland is zone 1. if (($ship_zone == 1) && ($total >= 60)) { return true; } // UK/Europe is zone 2. if (($ship_zone == 2) && ($total >= 100)) { return true; } return $shipfree; }Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?Thanks.
I think that I will modify my copy per my pastebin.com idea so that am not blocking my client.Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?I don’t have a preference.
My first thought was a filter where the function’s return value is modified.
http://pastebin.com/P95V3sRh
The only variable I could think of passing was $total. Adding more will only lead to others requesting additional parameters.An action would be pretty much the same.
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?I put the new is_shipfree() function in wp-content/plugins/aaa-eshop-shipfree/aaa-eshop-shipfree.php (to help it be activated earlier than eshop).
Unfortunately when I active the plugin WordPress says that is_shipfree() has already been declared. I could deactivate eshop then activate my plugin and then eshop but I am reluctant to do this.
When I put the file in wp-content/mu-plugins/aaa-eshop-shipfree.php but it didn’t appear to get executed.