Forum Replies Created
- AuthorPosts
-
That did the trick Olly thank you! I did try that too but it didn’t work for me I must have messed some other bit up. What part of the code do I need to alter so that the popup dialog only comes up when I change the status to ‘DELIVERED’?
With the code as it is if I change it to any status it will come up with a blank popup message but if I changed it to delivered it will come up with the ’email sent’ popup which I only want for delivered.
Hi Olly I have managed to get there 99% with the send email on order status update. Editing who from etc and message was easy enough and I have deleted the order info as I didn’t want that in a follow up email.
I am having trouble figuring out how to set it so that it only sends an email when status has been changed to ‘delivered’ rather than just every status update (as in my place we changed to acknowledged that does a print popup then again to delivered when it’s been sent out or ready for collection).
I know I must edit this bit of code but I can’t figure out what exactly it should be could you help me please?
if($postdata[‘vars’][‘type’]==’statusupdate’){// could also add a ” && in_array($postdata[‘vars’][‘type’],array(‘PROCESSED’,’REJECTED’,’REFUNDED’))” to only send when status changed to those
I changed ‘statusupdate’ to ‘DELIVERED’ but it did not work. I changed the text after type from “==’statusupdate’)” to “,array(‘DELIVERED’)” and that did not work either. Obviously i’m doing something very wrong could you advise me where please?
Thank You
Thank you Olly! This will make life a lot easier on Thursdays as the bills were hard to read foe the chefs when we’re busy. I have seen the code snippet for my first request but I can’t get my head around it but I will have a go tomorrow to see if I can customise it to the email I want sent – currently we email each customer 1 by 1 when dispatched which is very time consuming especially on a busy day.
If anyone reading this thread can make these changes please post!
Now working. Seems they did change their Api for the better the popup fills the whole screen it looks better on a mobile.
13 May, 2015 at 9:24 pm in reply to: set pickup time and allow to client select when the will pickup #9890This is already an option – buy the pre-order extension.
Exact same issue as stated on this thread… I cba to take screenshots and show the same thing again lol it’s ok I will just use the old way I suppose it just requires a bit more effort it’s not an important fix you have done so much already fixing other issues!
Hi Olly. I never actually tested whether the new updated worked but I have just tried it with new coupon codes I have set with certain dishes not to be discounted but they are still being discounted…
I can pretty much guarantee this will be due to the spam filters gmail or aol have setup or something to do with the host you’re using.
Olly the new changes seem to have fixed my problems (touch wood). I have been monitoring the console and it did a Bad Request 503 but continued to poll thereafter. I will keep using it obviously with the console open for the next couple of weeks just to confirm properly.
I’m not quite sure what you’re asking… but look at the order history screen that keeps all the orders on record you have your list there just print it.
That’s fine – only time I would get 5 consecutive failed polls is when the server is down I never get 2 together.
Thanks Olly I will test it tonight when I get in. Just to confirm however will it fail on 5 consecutive failed polls or 5 total failed polls? And also what would be the alert a sound alert or just a silent popup as before?
When I got the errors intially when browsing it was when I changed pages quickly (as if I didn’t allow something to fully load) although I don’t get these anymore when browsing my website.
If you could implement this then it would be great as the websites in question would continue to work and orders would continue to poll. I would also be able to sell my websites on because I don’t want to make any websites for anyone else just in case I get this error.
If the error displayed in console and not a popup say in the order history screen – would the order history screen still continue to poll for orders (obviously not the time it made an error but any polls thereafter?)
I don’t blame you AS SUCH it is more just order polling in general I don’t think it can be 100% perfect all the time and if you pay for a mega great big perfect host then it outweighs the benefit of having wppizza and just pay a 3rd party company to make your website. But from my understanding from talking to Ibrar the guy who created my old website the way his software polled for orders (similar to your order history screen) he set a timer of 15 second intervals and if one poll failed – it would just carry on to 30 seconds and if that failed it would carry onto 45 seconds and so on. Once it reached 2 minutes it would make a siren noise (any noise whatever .wav file you set) that would alert us (the takeaway/restaurant/client whoever) that the software is not polling. Therefore you would check the website to make sure it is not down etc or contact the host. Problem is the host is not down that often however it may fail multiple polls daily (my old website used to poll to 30 seconds constantly but rarely more).
But if you can do something similar where it goes to console but continues to poll that would be great although some sort of notification would be nice. I am looking into this further there maybe some order polling software out there (FoodOrderDIYClient).
I had errors both on frontend and backend – I still believe it is host related (server didn’t relay information perfectly) but every time a order poll trips it gives no sound/warning so is troublesome. I can prove I’ve had it on frontend also just like the OP has so was trying to help him nothing for myself. iazomuk I would be interested if you get this error on order history screen also when polling for orders but if you can’t do this then no problem. I am in the process on moving to a good host and if this still occurs I will just have to pay a software developer to create a polling program that ignores non polls. I am wanting to make a few websites for my friends who own takeaways but I can’t when this slight problem remains.
Obviously if the OP gave permission otherwise no.
And what do you mean by mine is a backend issue and his a frontend issue? (By backend do you mean mine was within the wordpress settings screen and his was just on the normal website browsing?)
Is it possible I get a link to the website in question? I know how to induce the errors on my website I want to see if I can do the same on the website created by the OP.
This is the same error I get on my website Olly but I thought we agreed it was maybe the host? However I see someone else getting this error maybe there is a conflict somewhere.
- AuthorPosts