Grassmedia
Forum Replies Created
-
I’ve found a workaround. Disable ALL plugins except Site Kit. Connect Analytics then re-activate all plugins. I’ve not had time to troubleshoot further to discover which plugin might be causing the issue.
Forum: Plugins
In reply to: [Sliced Invoices - WordPress Invoice Plugin] PDF Page size?Actually, it’ll be a bundle as my client needs Stripe payments too.
Forum: Plugins
In reply to: [Sliced Invoices - WordPress Invoice Plugin] PDF Page size?Many thanks for the rapid response. Looks like I better hit that “buy” button then 🙂
WordPress 4.1.1, CM Answers Pro (paid) 2.6.1 installed …
I have the same problem (?) but answers are showing and questions are not showing, in fact they are not being rendered at all.
I need the same functionality, basically I need to limit free delivery only to “CT” postcodes.
Forum: Fixing WordPress
In reply to: Intelligent search?Hey! That works!
‘Array
(
[0] => 1234567,canterbury,Friday,PM[1] => ct11aa,Canterbury,Monday,14:00 to 16:00
[2] => ct11ad,Canterbury,Tuesday,14:00 to 16:01
[3] => CT1 1AF,Canterbury,Wednesday,14:00 to 16:02
[4] => ct11aa,ct11aa,ct11aa,ct11aa
)’
You’re a diamond! Thank you so much and, if you do feel like making it into a proper app with database integration etc. you have your first customer!
Forum: Fixing WordPress
In reply to: Intelligent search?That’s done and the array looks to be empty…
‘Array
(
)’Forum: Fixing WordPress
In reply to: Intelligent search?Sorry Andrew, I completely understand.
Logically, I think it must be host related Adam, it works fine for you and not for me – I see you’re even using the same csv as me.
Forum: Fixing WordPress
In reply to: Intelligent search?“My” code is now same as your original, except for an echo or two. I’m wondering if its a hosting thing? I know some hosts have an issue with things like str_getcsv …
If you wouldn’t mind dropping me an email to [moderated] I’ll give you admin access and, if you tell me your ip address, I’ll give you FTP access too. Sorry to be a pain!
Forum: Fixing WordPress
In reply to: Intelligent search?Hi Adam, wow, thank you do much for your efforts. I’d like to say I made it work but so far, I’ve failed 🙁
Using the plugin from Dropbox.
My csv is simplified with no header row and just 4 rows of data (just in case) like so …
1234567,canterbury,Friday,PM
ct11aa,Canterbury,Monday,14:00 to 16:00
ct11ad,Canterbury,Tuesday,14:00 to 16:01
CT1 1AF,Canterbury,Wednesday,14:00 to 16:02And all looks good in the set-up. I added some simple debugging to your code and I can see that on the input side the file name is being picked-up ok and the zip code parsed as expected – reduced to lower case, with spaces stripped.
Where it seems to fail is that it never enters the foreach loop
‘
echo “Lets go in to the foreach loop now…”; //This echoes
foreach ($csv as $csvline) {
echo “in the loop”; //this never does
$line = explode(“,”,$csvline);
$zipcheck = trim(strtolower(str_replace(‘ ‘,”,$line[0]))); …etc.
‘
So it’s never getting to the comparators. I figured then that perhaps the $csv array was empty so tried using $csv = fgetcsv($zipfile) to fill the array but, alas, no go. Sorry, I know just enough PHP to be really, really dangerous!You can view/use my dev site at http://skunkworx.agency/sample-page/
and the csv is at http://skunkworx.agency/wp-content/uploads/2015/01/postcode-test.csvAny help greatly appreciated!
Forum: Fixing WordPress
In reply to: Intelligent search?That’s cool Adam, it’s not screaming urgent.
Forum: Fixing WordPress
In reply to: Intelligent search?Hi Adam,
Brilliant, yes that works exactly as required!
Thank you so much for this.
Forum: Fixing WordPress
In reply to: Intelligent search?Hey Adam, if you could do that, you’d be a hero!
Forum: Fixing WordPress
In reply to: Intelligent search?Oh sorry, I misunderstood, it can be any separator I like. Typically a comma.
Forum: Fixing WordPress
In reply to: Intelligent search?Hi Adam,
The format of the .csv is basically
Postcode District Delivery
CT1 1AA Canterbury Monday morning
CT1 1AD Canterbury Monday morning
CT1 1AF Canterbury Monday morning
CT1 1AG Canterbury Monday morning
CT1 1AH Canterbury Monday morning
CT1 1AJ Canterbury Monday afternoon
CT1 1AL Canterbury Monday afternoon
CT1 1AN Canterbury Monday afternoon
CT1 1AP Canterbury Monday afternoonSo if a user enters a postcode of CT1 1AA (with or without a space) something appears which says “Yes we deliver to your area on a Monday morning between 10.00 and 13.00 kind of thing. Does that make sense?