Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Add to shopping cart link doesn't work View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
Gitesh - 6/28/2011 10:41:54 PM
   
Add to shopping cart link doesn't work
Hi guys,

I have added a products page with the below transformation and found that the add to cart link doesn't work:



<%@ Register Src="~/CMSModules/Ecommerce/Controls/ProductOptions/ShoppingCartItemSelector.ascx" TagName="CartItemSelector" TagPrefix="uc1" %>
<div class="ProductDetail">
<div class="ProductData">
<table>
<tr>
<td class="ProductImage">
<%# EcommerceFunctions.GetProductImage(Eval("SKUImagePath"), 200, Eval("SKUName"))%>
</td>
<td class="ProductSummary">
<h1><%# ResHelper.LocalizeString(Convert.ToString(Eval("SKUName"))) %></h1>
<div class="ProductShortDescription"><%# Eval("ProductShortDescription") %></div>
<%# Eval("ProductDescription") %>
</td>
</tr>
</table>
</div>
<div class="ProductFooter">
<table width="100%">
<tr>
<td align="left">
our price: <span class="ProductPrice"><%# EcommerceFunctions.GetFormatedPrice(Eval("SKUPrice"), Eval("SKUDepartmentID")) %></span>
</td>
<td>
<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" />
</td>
<td>
<%# EcommerceFunctions.GetAddToWishListLink(Eval("NodeSKUID")) %>
</td>
</tr>
</table>
</div>
</div>




Link to my products page:
http://www.newtonseed.co.nz/Products/Lawn-Seed/Premium-Lawn-Seed/Made-for-
Shade-Premium.aspx

What am I doing wrong?

Thanks
Gitesh Shah

User avatar
Certified Developer v7
Certified  Developer v7
Gitesh - 6/28/2011 10:51:19 PM
   
RE:Add to shopping cart link doesn't work
Also, check this URL , same transformation but the link for add to cart is crashing:
http://www.newtonseed.co.nz/Products/Lawn-Seed/Premium-Lawn-Seed/test.aspx

Thanks
Gitesh Shah

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/30/2011 5:25:15 AM
   
RE:Add to shopping cart link doesn't work
Hi,

What are your other e-commerce settings? Like the shopping cart page URL?
I used your code for the transformation for my product datalist and and it is working just fine. I am redirected to the shopping cart and the product is correctly added.

Have you compared your settings with the sample settings e.g. in the E-commerce sample site?

Best regards,
Juraj Ondrus

User avatar
Certified Developer v7
Certified  Developer v7
Gitesh - 6/30/2011 6:54:53 PM
   
RE:Add to shopping cart link doesn't work
Hi juraj,

Yes, I have compared the setting with the default ecommerce site, but still no luck.
I am surely missing something.

Ecommerce Settings:
On the Configuration>Checout process: I have used the "Generate Default process"

Shopping cart page URL is set to :
http://www.newtonseed.co.nz/SpecialPages/ShoppingCart.aspx

I will also send you the login details to the backend, incase if you need to see more settings.

Thanks
Gitesh Shah


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/1/2011 1:30:37 AM
   
RE:Add to shopping cart link doesn't work
Hi,

I am sorry for the confusion but, where did you set the shopping cart page URL?
I am checmking your settinings in Site Manager -> Settings -> <your site in the drop down> -> E-commerce section and there is nothing set for the shopping cart page URL. As soon as I have set it up, it is working correctly.

I left the setting as it is right now, so you can try it and see how it works.

Best regards,
Juraj Ondrus

User avatar
Certified Developer v7
Certified  Developer v7
Gitesh - 7/3/2011 11:56:29 PM
   
RE:Add to shopping cart link doesn't work
Thanks Juraj,

That works.

Thanks for finding the issue.

Cheers
Gitesh Shah