Add Reviews to Buy Product Dialog with NVelocity

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
jcw2m
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 27
Joined: Fri Sep 07, 2012 9:51 am

Add Reviews to Buy Product Dialog with NVelocity

Post by jcw2m » Fri Sep 14, 2012 8:39 am

I've tried a few different approaches without any success. Due to structure/layout requirements, I need to add reviews to the BuyProductDialog,ascx file. Adding the reference itself is fine. The challenge is how to do this while still using the #if statements normally found in the Show Product 1.htm file. Does anyone have any ideas for how I can still use conditional statements when referencing the reviews conlib as a user control? Thanks!!

From Show Product 1.htm:
#if($store.Settings.ProductReviewEnabled != "None")
#if($store.Settings.ProductReviewEnabled == "Registered")
#if($customer.IsAnonymous == false)
[[ConLib:ProductRatingImage]] <a href="#reviews">reviews</a>
#end
#end
#if($store.Settings.ProductReviewEnabled == "Anonymous")
#if($customer.IsAnonymous == true)
[[ConLib:ProductRatingImage]] <a href="#reviews">reviews</a>
#end
#end
#if($store.Settings.ProductReviewEnabled == "All")
[[ConLib:ProductRatingImage]] <a href="#reviews">reviews</a>
#end
#end

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Add Reviews to Buy Product Dialog with NVelocity

Post by jmestep » Mon Sep 17, 2012 6:50 am

I just did that on a site for a similar layout by putting the conditional code in the ProductRatingImage ConLib in the code behind. I actually had to move the ProductRatingImage into the ProductPrice Conlib because of the layout.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply