daymobrew
Forum Replies Created
-
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?I found $_POST[‘ship_country’] and then I got the zone:
// Check shipping country for free shipping – 60 for Ireland (zone 1) and 100 for UK/Europe (zone 2).
$country_code=$wpdb->escape($_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”);I tried redeclaring is_shipfree() in my theme’s functions.php but I get the “Cannot redeclare is_shipfree() (previously declared in /wp-content/plugins/eshop/cart-functions.php:447)” error message.
I know that is_shipfree() has a function_exists() check but it must get loaded before my code.
How can I resolve this? Do I have to write a small plugin?
Though I realise that this is a good debugging technique, there are too many active plugins to do this and it would mean too much downtime. It’s a commercial site.
I am going to delve into the code to try to trace why the Events Page is 404.
Upgraded to 5.1.7. No change.
Events Page still 404:
http://www.irishtriathlon.com/index.php/rc-cal/
Search Events box does not appear above the race calendar.> Mind you, I see a wierd address there
Turned out to be a EM settings issue – under Settings/Pages/Permalink Slugs had an unnecessary “index.php/” in each of the 4 fields. Removing them sorted that.The big problem is that the Events Page returns 404, as mentioned in the original post.
http://www.irishtriathlon.com/index.php/rc-cal/Still on 5.1.6.
If I upgrade, will I retain all my entries and other data?
I understand.
So, upgrading to Pro could help me. And would reflect the importance of the plugin for me. And my appreciation of your work.
@marcus: Any update?
As this plugin is a core feature of my site, is it worth me upgrading to the Pro plugin?
@marcus: Have you been able to have a look at the live site?
Perfect, thank you.
Definitely interested. Contact form on http://wp-events-plugin.com used to provide FTP info for live site.
Thank you.
If I installed 5.1.1 (the previously installed version and it worked), will there be any issues?
Is the database schema version the same?The page works correctly when I disable EM and resave permalinks.
For the other issue (I guess you mean “var EM” bit), that is probably unrelated. It is in the ‘head’ area.
The Events page:
http://www.irishtriathlon.com/index.php/rc-cal/http://www.irishtriathlon.com/index.php/rc-test/
changed to
http://www.irishtriathlon.com/index.php/rc-cal/
It still gives a 404 error.If you think it is a WP bug, do you have any suggestions on debugging it? Maybe turning WP_DEBUG on?
Does EM have a hook when a page is set as the Events page?The server is Zeus Web Server on Linux, not IIS.
I would be very very reluctant to change the slug because of SEO.It doesn’t explain why I get 404 for a new Events page.
http://www.irishtriathlon.com/index.php/race-calendar/
As I test I added the search form as a shortcode so that the race calendar had the following content:
[ event_search_form ]
[ events_list ]The form goes to the Events page, which is a 404.
If I have no events page set then the Search form stays on the race calendar page but does not display any results, just the full event list.
I have removed the search form so as not confuse site visitors.