sunnyb0y Posted July 30, 2013 Share Posted July 30, 2013 Hello, I am building a PrestaShop (1.5.4) site for a region specific fruit and veg delivery business. Purchases will be limited by postcode (using the Localisation module), with different postcodes having different delivery days (eg postcode 1 deliver day is Tuesday, postcode 2 delivery day is Thursday etc). In PrestaShop, how do we include the relevant delivery day in communication to customers re orders (on screen, in emails etc)? Is there a delivery day variable that can be used automatically in order-related communication relative to the customer's postcode (eg Thanks for your order. Your produce will be delivered on {delivery-day}...)? Any ideas? Thanks in advance. Link to comment Share on other sites More sharing options...
sunnyb0y Posted July 31, 2013 Author Share Posted July 31, 2013 my French is terrible (read non existant), is there a way to translate that? Link to comment Share on other sites More sharing options...
sunnyb0y Posted August 6, 2013 Author Share Posted August 6, 2013 just bumping. Anyone? Link to comment Share on other sites More sharing options...
Enrique Gómez Posted August 16, 2013 Share Posted August 16, 2013 n PrestaShop, how do we include the relevant delivery day in communication to customers re orders (on screen, in emails etc)? The comunication regarding an order is made in the orders -> new message section. If you check Display to customer? it will send a mail besides the standard communication in the client area This is of course doing it manually.. 1 Link to comment Share on other sites More sharing options...
Enrique Gómez Posted August 16, 2013 Share Posted August 16, 2013 (edited) So the solution to your problem will be in the mail template that is sent to the client when the order is sent, include the day of delivery. This day of delivery depends of the zip code in the Client info so you may hardcode it in classes/PaymentModule.php: For example $day_of_delivery. Then in mails/en/order_conf.html (and order.txt) you can use the new variable as you want in the layout: Edited August 16, 2013 by Enrique Gómez (see edit history) 1 Link to comment Share on other sites More sharing options...
Enrique Gómez Posted August 16, 2013 Share Posted August 16, 2013 The logic could be some hardcoded ifs like: 1 Link to comment Share on other sites More sharing options...
sunnyb0y Posted September 25, 2013 Author Share Posted September 25, 2013 "Enrique Gómez" came up with a great solution to this. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now