Shipping timer for shipping

Merchant
Alates Sweden
Liige alates

Hello. We would first like to thank you for a fast and easy platform.
We would like to have some form of delivery timer "order within xxh and your order will be sent today".

tim
Founder
Alates Sweden
Liige alates
tim

Mostly this is shown as a banner on the product page or above the content.
"Order before 12:00 and we will ship your order today."

For that just edit the template view where you want it displayed.

If you want to do this inside the shipping module do something like this:


      if (empty($this->settings['status'])) return;

      ...

      $delivery_date = ....;

      return [
        'title' => $this->name,
        'options' => [
          [
            'id' => 'my_delivery_method',
            'icon' => $this->settings['icon'],
            'name' => 'Delivery Method',
            'description' => str('Delivered to you at %delivery_date', [
              '%delivery_date' => $delivery_date
            ]),
            'cost' => 100,
            'tax_class_id' => 1,
          ],
       ];
    ];

https://wiki.litecart.net/how_to_create_a_shipping_module

This thread has been closed due to long inactivity. Posting to it is not possible.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.