Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > shopping cart - I don't know what I 'm doing View modes: 
User avatar
Member
Member
kentico-xiasma - 4/7/2009 3:30:58 PM
   
shopping cart - I don't know what I 'm doing
hello all.
I'm trying out the free edition on my dev server and struggling to get the shopping cart to work properly. I started a new project - default "corporate site" template and on that, the products page always comes up with no products (even following the links to the cell phones, pdas or laptops). I haven't *done* anything to this new site so unless it's something I've screwed up earlier on the site manager, I can't see why it's not working.

I've also tried with a new site from the e-commerce template (deselecting most products and all forums so I fit in the "free" requirements) and that's great until I try to add one of the two products I imported to the cart:

The page can not be displayed due to license limitations

Requested action was canceled due to nonfulfillment of some license limit. Please check event log to get more details.

It's frustrating me emensely that I've got 95% of my website prototyped in a near production state in just two (long) days and that this is such a tricky stumbling block. Can someone at least please point me towards documentation to lead me in the right direction?

User avatar
Member
Member
kentico-xiasma - 4/7/2009 4:23:25 PM
   
RE:shopping cart - I don't know what I 'm doing
Should I be using a CMSDataList or a ProductDataList? I can see my products if I use a CMSDataList (but the add to cart buttons don't work, even though they appear) but I don't seem to get any data back for the Productdatalist - does this mean my products are incorrectly defined?

User avatar
Member
Member
kentico-xiasma - 4/9/2009 8:53:23 AM
   
RE:shopping cart - I don't know what I 'm doing
thanks Juraj for your help - if I may I'd like to share your helpful response in case anyone else makes the same mistakes I did:

quote:
The problem is that you have assigned some product options to the product but they are not displayed. In this case the system won't allow to add the product.

One option is not to use the product options and second option is to allow the product options - e.g. in the list of products or in the product detail, so the customer can choose. Please open the datalist configuration and click to edit the transformation, find this code:

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

and change the false value to true. This will probably mess your design in the list of propducts, but you will see how it works. So it will be better not to display the link to shopping cart in the list, but the customer will need to click on the product - the details are available and here can be the link to shopping cart.