Shipping timer for shipping

Merchant
Tól től Sweden
Tagság jan. 2022 óta

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ól től Sweden
Tagság máj. 2013 óta
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

Ezt a témát a hosszú inaktivitás miatt bezártuk. A hozzászólás nem lehetséges.
Ez a weboldal nem használ cookie-kat és nem használ harmadik féltől származó nyomkövetési technológiát. Úgy gondoljuk, hogy jobban tudjuk csinálni, mint mások, és tényleg gondolunk az Ön magánéletére.