Developer forum

Forum » Swift » Stock status order confirmation email

Stock status order confirmation email

Caro De Weze
Reply

Hi,

I want to add the stock status to the order confirmation email that is set up with Swift in the visual builder:
Unfortunately, when I look at the template tags, this is not possible: https://doc.dynamicweb.com/template-tags/ecommerce/shopping-cart/email. Can I do this in another way?

Kind regards,
Caro De Weze

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

The stock status is product dependent - and hence on an orderline.

The orderlines of the email is rendered by the paragraph called "Orderlines" which have the context order renderer module attached to it.

The information rendered is rendered by the template /Files/Templates/Designs/Swift/eCom/Order/EmailOrderlines.cshtml

You have to edit that template - find the OrderLines loop, and locate the right stock information and render it where appropiate.

@foreach (LoopItem orderline in GetLoop("OrderLines"))

 

You must be logged in to post in the forum