How to display an estimated delivery date

fabmol1
Tourist
17 0 2

Great work here.

 

Is there a way to do this automatically. We integrate with UPS and provide the different services but its pointless showing customers different shipping options and prices when there is no time frame against them? Most orders are international so we cannot do this manually as it would be complicated.

 

Thanks

Fabio

0 Likes
arigato_one
Shopify Partner
3 0 0

you should update the last 2 rows of code with this piece of new code:

 

const options = { weekday: 'long', day: 'numeric', month: 'long' };
 document.getElementById('fromDate').innerHTML = fromDate.toLocaleDateString('fr-FR', options);
 document.getElementById('toDate').innerHTML = toDate.toLocaleDateString('fr-FR', options);

 

 

 

 

0 Likes
arigato_one
Shopify Partner
3 0 0

If you know the delivery time for each country, it's possible to make an array with those countries and specific delivery dates and displayed dynamically based on the user location via geoip.

0 Likes
Mat_Brummitt
Shopify Partner
42 1 13

Adding your own code to your theme is one way to achieve estimated delivery dates on your store, but most stores end up requiring flexibility in the timeframes displayed, on a per-collection or per-product basis.  That's when you'll likely need to use an app, unless you have a large financial/time budget to implement a lot of custom code yourself.

I would like to recommend Order Deadline App.  Order Deadline is the original, most fully-featured and reviewed app on Shopify for this purpose and has so many features you'll find useful, including the ability to log calculated dates, and access this information externally to the app such as in your notification emails.

If you need any assistance setting up, the support team is very responsive to all enquiries.

App Store listing: http://apps.shopify.com/order-deadline

Thanks

Mat

0 Likes

Hello @Candice_Fairand,
 

Well, We really don't know about the CODE scenario but would like to suggest a simple to use and advance featured app - Order Delivery Date Estimation. 

 

The app completely satisfies your required purpose of showing the estimated delivery date on the product and cart page without any need for codes and technical know-how. The app starts functioning as soon as installed and activated. As per the requirements, Admin can customize the text of any information related to estimated order delivery. You should surely check out the app Order Delivery Date Estimation to better understand the features.

Regards'
SetuBridge
Our Custom Shopify Services
Conversion Rate Optimization | Website Speed Optimization | Custom App Development | Custom Theme Development
0 Likes

Hi Fabio,

We have just released a new app ETA, you can set up different ETA for different products/collections/countries. 

But currently, the ETA is not associated with the shipping method yet.

I am not sure if this is technically possible. If you need a delivery message looks like Aliexpress. This is quite a lot of works.

Btw, the ETA message in Aliexpress is also not very accurate. I am not sure if we really need to copy that from Aliexpress.

1.png

0 Likes
Boubasman
New Member
1 0 0

Is it still working? 

I just tried the code below but it seems that the dates are not showing on my page: 

<p>Bestel vandaag, en je ontvangt je bestelling tussen <span id="fromDate"></span> en <span id="toDate"></span>.</p>
{{ '//cdnjs.cloudflare.com/ajax/libs/datejs/1.0/date.min.js' | script_tag }}
<script>
  var fromDate = Date.today().addDays(5);
  if (fromDate.is().saturday() || fromDate.is().sunday()) { 
    fromDate = fromDate.next().monday();
  }
  var toDate = Date.today().addDays(10);
  if (toDate.is().saturday() || toDate.is().sunday()) { 
    toDate = toDate.next().monday(); 
  }
  document.getElementById('fromDate').innerHTML = fromDate.toString('dddd MMMM dS');
  document.getElementById('toDate').innerHTML = toDate.toString('dddd MMMM dS');
</script>

 

Schermafbeelding 2021-01-02 om 13.52.02.png

0 Likes
sandro000
New Member
2 0 1

Hi, how to write the date in Italian? Thank you

0 Likes