How to show Expected arrival date in Transfers to product page?

Highlighted
Shopify Partner
4 0 0

Hi everybody,

Does it anyway to show Expected arrival date in Transfers to product page? 

Best Regards,

0 Likes
Highlighted
New Member
1 0 1

I agree, it would be really helpful to display pending transfers on the product page, so when looking at a product you could see what is on order. 

Is there any way to do this? 

 

Regards, Ron
1 Like
Highlighted
Excursionist
47 3 3

Would be awsome.

0 Likes
Highlighted
Shopify Partner
385 0 57

Hello,

This is possible to do, this is just a simple way to show the selected variant incoming products:

{% if product.selected_variant.incoming %}
  There is incoming products
{% endif %}

To show the date just add the following:

{% if product.selected_variant.incoming %}
  {{ product.selected_variant.next_incoming_date | date: "%a, %b %d, %y"}}
{% endif %}

See for date formatting: http://ruby-doc.org/core-2.4.0/Time.html#method-i-strftime

You will need to add some javascrip to make it select the date of the variant selected, but this all depends on your themes.

Kasimir

"Good design is good business"
1 Like
Highlighted
Tourist
3 0 0

Is there anyway to also show the incoming_quantity with incoming_date?

0 Likes
Highlighted
New Member
3 0 0

This worked and put the info in, however, when you go into the page, it doesn't show until you "Refresh" the page.

Please assist!

Thanks,

Chris

0 Likes
Highlighted
New Member
1 0 0

Hey, can you share where you inserted that code? I tried under different sections, the code was saved but is not showing on the store...

0 Likes