"Add to cart" button not render when using RaiseCallbackEvent

Liem Nguyen asked on December 5, 2019 11:54

Hi everybody, when I used RaiseCallbackEvent to load more products in Repeater web part, the "Add to cart" button was not displayed. This is the transformation I use: <%@ Register Src="~/CMSModules/Ecommerce/Controls/ProductOptions/ShoppingCartItemSelector.ascx" TagName="CartItemSelector" TagPrefix="uc1" %> <uc1:CartItemSelector id="addItem" runat="server" SKUID='<%# EvalInteger("SKUID") %>' SKUEnabled='<%# EvalBool("SKUEnabled") %>' AddToCartTooltip="Add to cart" AddToCartLinkText="Add to cart" ShowProductOptions="false" StockVisible="true" />

This is screenshot: https://prnt.sc/q6jnpo

Please help me. Thanks

Recent Answers


David te Kloese answered on December 5, 2019 12:57

Hi,

few questions:

  • How dit you initiate this event; What triggers it? On load, after a user clicks a button, scrolls down?

  • What happens now? Does it render nothing at all? Only render the item but not the button... Or render the button but doesn't work?

0 votesVote for this answer Mark as a Correct answer

Liem Nguyen answered on December 5, 2019 16:08

Hi David,

  1. How dit you initiate this event; What triggers it? On load, after a user clicks a button, scrolls down? => I register an event callback in webpart (RaiseCallbackEvent - ICallbackEventHandler), then outside the front end when the user scrolls down I call this event to load more products.
  2. What happens now? Does it render nothing at all? Only render the item but not the button... Or render the button but doesn't work? => My problem is that everything is rendering normally except the "Add to cart" button.
0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on December 5, 2019 16:24

If you just list the properties that are being parsed to they list correctly?

So <%# EvalInteger("SKUID") %> and <%# EvalBool("SKUEnabled") %>?

Can you try to debug the control 'ShoppingCartItemSelector'?

0 votesVote for this answer Mark as a Correct answer

Liem Nguyen answered on December 6, 2019 01:29

Hi, Thanks for the reply, I will try it

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.