Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Missing ”Add to shopping cart” View modes: 
User avatar
Member
Member
carljohan_larsson-hotmail - 1/13/2011 3:31:21 AM
   
Missing ”Add to shopping cart”
When i view my products in a grid, the “square” contains a “add to shopping cart” button. But when I look at the product (just one product) the button is missing. How can I get it back?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 1/13/2011 7:05:57 AM
   
RE:Missing ”Add to shopping cart”
Hi,

If I understand you correctly, you use Grid webpart to view your products. In the table displaying your products is a column used as a link that will redirect the user to a detail page of the selected product?

In this case you could add following code into Selected item transformation property of your grid webpart:


<uc1:CartItemSelector id="cartItemSelector" runat="server" SKUID='<%# ValidationHelper.GetInteger(Eval("SKUID"), 0) %>
' SKUEnabled='
<%# ValidationHelper.GetBoolean(Eval("SKUEnabled"), false) %> ' AddToCartImageButton="addtocart.gif" AddToCartLinkText="Add to shopping cart" />


Could you please provide more details about your issue in case the above transformation code will not help you?

Best regards,
Ivana Tomanickova