Jump to content

Carrier delay text in E-mail


coMegaWebMaster

Recommended Posts

Hi,

Am trying to add in PrestaShop v1.6.1.17 the:

'{delivery_time}' => $carrier->delay,

To the order_conf email template, as that there is also the {carrier} and would be nice if the  delay information is also there.
But the result is that am just seeing {delivery_time} in the email, I changed the /classes/order/OrderHistory.php

        if (isset($result['template']) && Validate::isEmail($result['email'])) {
            ShopUrl::cacheMainDomainForShop($order->id_shop);

            $carrier = new Carrier($order->id_carrier, $order->id_lang);
            $topic = $result['osname'];
            $data = array(
                '{lastname}' => $result['lastname'],
                '{firstname}' => $result['firstname'],
                '{delivery_time}' => $carrier->delay,
                '{id_order}' => (int)$this->id_order,
                '{order_name}' => $order->getUniqReference()
            );

I try to ask this in:
https://www.prestashop.com/forums/topic/629488-carrier-delay-text-in-e-mail-tpl-please/
But had no reply, hope that someone here can help :) 


With kind regards,
Alexander.

Link to comment
Share on other sites

  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...