Hello,
I am developing a Kentico 8.1 in which implementing E-Commerce feature with the reference of Kentico E-Commerce sample site.
I am stuck or facing problem in following implementations:
1) "Shopping cart preview" web part configuration: I have configured Shopping Cart Preview, with setting following properties
Total price title:Edit value:{% GetAmountText(ECommerceContext.CurrentShoppingCart.TotalUnits, "item for ", "items for ") + FormatPrice(ECommerceContext.CurrentShoppingCart.TotalPrice)#%}
Show total price title: checked
As I have configured all the setting as per the Kentico e-commerce sample website, but instead of getting expected result that is "item count items for $item amount (like 2 items for $10.00)", I am getting text "Total Price" in webpart result.
Please help me or guide me which setting is missing or where I am doing wrong?
2) How can I show/hide CartItemSelector control in transformation based on condition if item is available in stock, I explored for any attribute setting to hide or show with using
<%#IfCompare(IsSKUInStock(), true,"none","block")%>, but didn't get any thing, currently used following trick which is not legal.
<div class="cart clearfix" style="display: <%#IfCompare(IsSKUInStock(), true,"none","blocak")%>"> <uc1:CartItemSelector id="addItem" runat="server" SKUID='<%#EvalInteger("SKUID")%>' SKUEnabled='<%#EvalBool("SKUEnabled")%> ' AddToCartTooltip="Add to cart" AddToCartLinkText="Add to cart" />
Please let me know or suggest me trick by which I can achieve the same.
3) How I can get number of available item in stock in transformation via any method ?
I know its vary basic questions, as I am new with Kentico e-commerce implementation, your guidance will be very much helpful for me.
Thanks in advance.
Thanks in Advance.