Hello,
Thank you in advance for taking the time to read. Hopefully we can get this working
I read many posts and topics and got the basic understanding of altering files.
By law it is necessary to state the estimated delivery time on the order.
Now I have 3 places where this need to be stated. When a first is fixed i think the other 2 will have the same approach.
- I want the estimated delivery date placed in de order/payment summary/overview at the end just before paying
- I want the estimated delivery date placed after the costumer has placed the order in the overview
- I want the estimated delivery date placed in the order_conf.html and .txt email to the costumer
I read this (old) topic but its from an older prestashop version, and I cant get it to work. It looks like the files are altered due to newer prestashop versions. Probably I need another rule or file. Just for clarification: I added '{delivery_time}' => $carrier->delay[intval($order->id_lang)], at line 632 of PaymentModule.php:
This is what I allready did:
I altered the order_conf.html and .txt files to add the {delivery_time} and classes/PaymentModule.php but my email places just {delivery_time} and not the needed info.
When an item is in stock my delivery would be next day, when its not in stock it has another value/delivery time. When multiple items are bought the longest value should be placed in {delivery_time}.
1) here is an order overview. I need the estimated delivery date in the yellow marked value. I think i need to adapt the cart-summary.tpl file (or similar) in themes/(MYTHEME)/templates/checkout/_partials.
2) After proceeding and placing the order i like the same value placed in this yellow area: I already have here a date - but this date is wrong or at least looks static. The item is in back order and would take longer to deliver. My guess is if i got issue 1 right then issue 2 isn’t much far off.
3) After altering the order_conf.html and .txt files i got the right place, but after ordering it isn’t getting filled.
I am on Prestashop 1.7.7.7 with an external theme.
Kind regards!