Shipping timer for shipping

Merchant
Frá Sweden
Meðlimur síðan jan. 2022

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
Frá Sweden
Meðlimur síðan maí 2013
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

Þessum þræði hefur verið lokað vegna langrar óvirkni. Get ekki sent inn á það.
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.