Moving logic from Show Product 1.htm to conlib file
Posted: Wed Apr 02, 2008 5:45 pm
I'm using the tabbed description control that Joe invented to display Reviews, Extended Descriptions, and Customers also bought.
I've got the review panel in there OK by
<%@ Register Src="ProductReviewsPanel.ascx" TagName="ProductReviews" TagPrefix="uc" %>
and
<uc:ProductReviews ID="ProductReviews" runat="server" />
I'm just not sure how to take the logic of whether to display the reviews or not from the Show Product 1.htm and use it to display the reviews. That logic is:
#if($store.Settings.ProductReviewEnabled != "None")
#if($store.Settings.ProductReviewEnabled == "Registered")
#if($customer.IsAnonymous == false)
I've got Joe's control in the Show Product 1.htm, as below, but I can't put the review logic around it because it displays other things in the other two tabs.
<tr><td colspan="2">[[Conlib:Custom/ProductDescriptionTabbed]]</td></tr>
thanks
I've got the review panel in there OK by
<%@ Register Src="ProductReviewsPanel.ascx" TagName="ProductReviews" TagPrefix="uc" %>
and
<uc:ProductReviews ID="ProductReviews" runat="server" />
I'm just not sure how to take the logic of whether to display the reviews or not from the Show Product 1.htm and use it to display the reviews. That logic is:
#if($store.Settings.ProductReviewEnabled != "None")
#if($store.Settings.ProductReviewEnabled == "Registered")
#if($customer.IsAnonymous == false)
I've got Joe's control in the Show Product 1.htm, as below, but I can't put the review logic around it because it displays other things in the other two tabs.
<tr><td colspan="2">[[Conlib:Custom/ProductDescriptionTabbed]]</td></tr>
thanks