Solved

Add customers chosen delivery date to Summary and Order emails

Whiteflame
Shopify Partner
3 0 1

Hello. I've used this guide to add a delivery date selection to our checkout

https://help.shopify.com/en/manual/online-store/themes/themes-by-shopify/vintage-themes/customizing-...

 

Is there a way to show the chosen date in the checkout summary and also include the date in order emails and on the order item within the shipyfy order list?

 

Thank you

Accepted Solution (1)

webwondersco
Shopify Partner
1098 164 162

This is an accepted solution.

@Whiteflame For the same will work. the code is given on above link will show the selected date in checkout as well as in email.

 

The below code will do that:

name="attributes[date]" value="{{ cart.attributes.date }}"
Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram

View solution in original post

Replies 5 (5)

webwondersco
Shopify Partner
1098 164 162

This is an accepted solution.

@Whiteflame For the same will work. the code is given on above link will show the selected date in checkout as well as in email.

 

The below code will do that:

name="attributes[date]" value="{{ cart.attributes.date }}"
Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram
Whiteflame
Shopify Partner
3 0 1

Thank you for the quick reply, I can see how to add into oreder emails and have added the following which I believe is correct

{% if cart.attributes.date %}
        <table class="container">
          <tr>
            <td>
              <h3>Requested delivery date</h3>
            </td>
          </tr>
        </table>
        <table class="container">
          <tr>
            <td>
              
            <table class="row">
              <tr>
               
                <td class="customer-info__item">
                  {{ cart.attributes.date }}
                </td>
              </tr>
            </table>
          </tr>
        </table>
{% endif %}

 

However I can't see how to add the field into the order review on the checkout process, if it's even possible?

webwondersco
Shopify Partner
1098 164 162

It's a cart attribute so it'll be visible on the checkout page automatically. 

 

If this will not work then you can use the line item properties for the product. This will used in product page to add any additional data for the products. And selected data will also visible in cart and checkout page.

Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram
Whiteflame
Shopify Partner
3 0 1

OK Thank you for the infor.. is it possible to use the code like the below?

name="attributes[Delivery date]" value="{{ cart.attributes.date }}"

 

 

 

Thank you again

webwondersco
Shopify Partner
1098 164 162

@Whiteflame 

 

Yes you can, but use it with input form element so you get the data in email as well as in checkout 

Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram