Shipping timer for shipping

Merchant
Från Sweden
Medlem sedan 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ån Sweden
Medlem sedan maj 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

Den här tråden har stängts på grund av lång inaktivitet. Det går inte att posta inlägg till den.
Denna webbplats använder inga kakor och ingen spårningsteknik från tredje part . Vi tror att vi kan göra det bättre än andra och tänker verkligen på din integritet.