Developer forum

Forum » Templates » Ecom tags in xslt

Ecom tags in xslt

Per Ljung
Reply
Hi!

The template tag  Ecom.Order.OrderLines.Total.Price works fine in html, but not in xslt. What is the xpath string for ecom template tags in xslt?

Best regards,
P

Replies

 
Søren Kottal-Nielsen
Reply
 Remember you can add "?savetemplatexml=true" to get the complet XML output saved to the server. That way you will be able to find all the necessary "tags".

I think the one you need is called Ecom.Order.OrderLines.TotalPrice
 
Nicolai Høeg Pedersen
 
Per Ljung
Reply
Remember you can add "?savetemplatexml=true" to get the complet XML output saved to the server. That way you will be able to find all the necessary "tags".

I think the one you need is called Ecom.Order.OrderLines.TotalPrice

Hi!

Where is the output xml located? Which directory is it written to?

Best regards,
Per
 
Nicolai Høeg Pedersen
Reply
It is placed right next to the XSLT template - with the same name, just .xml
 
Per Ljung
Reply


Hi!

I've added the Shoppingcart module to the paragraph, but the ecom template tags ain't part of the xml output when I use ?savetemplatexml=true.


It works when I'm using the html template, but not the xslt template.

What can be wrong?

Best regards,
Per

 
Nicolai Høeg Pedersen
Reply
What are you missing?

On xslt make sure to use available loops.
<xsl:variable name="availableloops" select="'Groups,Products'" />

See more here: http://www.netsi.dk/wordpress/index.php/2010/05/24/kommentarer-til-dynamicweb-7-1-technical-realease-notes/
 
Per Ljung
Reply
What are you missing?

On xslt make sure to use available loops.
1
<xsl:variable name="availableloops" select="'Groups,Products'" />

See more here: http://www.netsi.dk/wordpress/index.php/2010/05/24/kommentarer-til-dynamicweb-7-1-technical-realease-notes/
But I'm not going to use loops, I just want to display the total price of the shopping cart, 1 value. Do I really need to use loops for that?

Best regards,
Per
 
Nicolai Høeg Pedersen
Reply
No - you do not need loops for that.

Do not know what you are doing wrong. I'll have someone from the service desk contact you.

 

You must be logged in to post in the forum