Developer forum

Forum » Ecommerce - Standard features » Check cart in Navigation XML

Check cart in Navigation XML

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

How do I check if the cart is empty or not inside a navigation XSLT file? It seems that //GlobalTags/Ecom.Order.IsEmpty produce no results.

Any tips? I am trying to hide a menu item when the cart is empty.

Thanks,

Imar


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Imar

There is no Global tag for order... The tag only exists in the layout template.

But I've just added so you have these 2 from 8.4.1.vnextHotfix

<Global.eCommerce.Cart.CartIsPresent>true</Global.eCommerce.Cart.CartIsPresent>     <Global.eCommerce.Order.OrderLines.TotalProductQuantity>3</Global.eCommerce.Order.OrderLines.TotalProductQuantity>

BR Nicolai

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks, will check it out....

Imar

 

You must be logged in to post in the forum