Shipping timer for shipping

Merchant
Từ Sweden
Thành viên kể từ thg 1 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
Từ Sweden
Thành viên kể từ thg 5 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

Chủ đề này đã bị đóng do không hoạt động trong thời gian dài. Không thể đăng bài vào chủ đề này.
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.