Developer forum

Forum » Templates » Global basket - productname blank

Global basket - productname blank

Filip Lundby
Reply
 Hi, I'm trying to add the basket to master.html. Quantity gets outputted, but ProductName doesn't.

        <!--@If Not Defined(Ecom:Order.IsEmpty)-->
        <!--@LoopStart(OrderLines)-->

            <!--@Ecom:Order:OrderLine.Quantity-->
            <!--@Ecom:Order:OrderLine.ProductName-->
            
        <!--@LoopEnd(OrderLines)-->
        <!--@EndIf(Ecom:Order.IsEmpty)-->



Replies

 
Merethe Nielsen
Reply

Hi

What version do you use?

I have tried both Ecom:Order:OrderLine.ProductName  and Ecom:Order:OrderLine.ProductName.Short and they are both rendered on the page (my OrderLines loop is inserted in my design page template). I have tried both 7.2 and 8.1.

Kind regards,
Merethe

 
Filip Lundby
Reply
 Hi Merethe. Thanks for reply. I found the error. It's was actually the basket not working at all.

In the product template I forgot to add the action-attribute on the form. This solved my problem:
<form name="<!--@Ecom:Product.ID-->" id="<!--@Ecom:Product.ID-->" method="get" action="Default.aspx?ID=<!--@Ecom:Product:Page.ID-->">

 

You must be logged in to post in the forum