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
Developer forum
E-mail notifications
Ecom tags in xslt
Per Ljung
Posted on 19/05/2011 12:04:54
Replies
Søren Kottal-Nielsen
Posted on 19/05/2011 14:07:14
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
I think the one you need is called Ecom.Order.OrderLines.TotalPrice
Nicolai Høeg Pedersen
Posted on 19/05/2011 15:52:02
And take a look at the template tag docs:
http://templates.dynamicweb-cms.com/eCommerce/Dynamicweb-eCommerce-template-tags/Shopping-Cart-V2/Order/Cart/Loops/Orderlines.aspx
http://templates.dynamicweb-cms.com/eCommerce/Dynamicweb-eCommerce-template-tags/Shopping-Cart-V2/Order/Cart/Loops/Orderlines.aspx
Per Ljung
Posted on 24/05/2011 09:07:25
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
Posted on 24/05/2011 09:16:30
It is placed right next to the XSLT template - with the same name, just .xml
Per Ljung
Posted on 24/05/2011 11:39:49
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
Posted on 24/05/2011 13:03:12
What are you missing?
On xslt make sure to use available loops.
See more here: http://www.netsi.dk/wordpress/index.php/2010/05/24/kommentarer-til-dynamicweb-7-1-technical-realease-notes/
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
Posted on 24/05/2011 13:14:51
What are you missing?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?
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/
Best regards,
Per
Nicolai Høeg Pedersen
Posted on 24/05/2011 14:10:48
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.
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