Shopify Header Liquid changing Food Delivery Date

Mali2
Shopify Partner
8 0 1

I get build new Shopify store and today July 28, 2021 it display delivery day: July 16, 2021  / I NEED TO LIST DAY: July 30, 2021

I can't find in my header.liquid : July 16, 2021 only I guess is to make changes here:

ORDERS PLACED NOW WILL BE DELIVERED ON {{ "now" | date: "%s" | plus: 86400 | plus: 86400 | date: "%A %B %d" }}.
</p>
{%endcomment%}

 

Do can I get same help, appreciate

Replies 2 (2)

UmairA
Shopify Partner
1106 101 225

Hi @Mali2,

I don't think you've provided enough information for anyone to be able to help you. Are you using an app for food delivery? What's your store URL?

RiktigRegnskap
Visitor
3 0 0

To update Food  Delivery Date to always display July 30, 2021, regardless of the current date, you need to change the date logic in your header.liquid file. Here’s how you can do it:

  1. Open your Shopify admin.
  2. Go to Online Store > Themes.
  3. Find your current theme and click on Actions > Edit code.
  4. In the left sidebar, find and click on header.liquid.

In your header.liquid file, locate the line where the delivery date is being set and modify it as follows:

 

ORDERS PLACED NOW WILL BE DELIVERED ON July 30, 2021.

 

 

 

So, the updated code will be:

 

 
<p>ORDERS PLACED NOW WILL BE DELIVERED ON July 30, 2021.</p>
{%endcomment%}

 This change hardcodes the delivery date to July 30, 2021. If you need to update the delivery date dynamically in the future, you can change the static date accordingly.