LemonStand Forum: PowerReviews and Product Page AJAX Refresh - LemonStand Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

PowerReviews and Product Page AJAX Refresh How do I reinitialize PowerReviews?

#1 User is offline   pmeissner 

  • LemonEvangelist
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 132
  • Joined: 11-January 10
  • LocationElverson, PA

Posted 14 April 2012 - 02:47 AM

We would like to add PowerReviews to my product pages. The code that give to integrate the review is…

<script type="text/javascript">var pr_style_sheet="http://cdn.powerreviews.com/aux/14159/303754/css/express.css";</script>
<script type="text/javascript" src="http://cdn.powerreviews.com/repos/14159/pr/pwr/engine/js/full.js"></script>

<div class="pr_snippet_product">
   <script type="text/javascript">POWERREVIEWS.display.snippet(document, { pr_page_id : "1" });</script>
</div>


The POWERREVIEWS.display.snippet shows the star ratings and a link to leave a review.

This works fine until I select a grouped product. I tried to initialize the PowerReview again with…

onAfterUpdate: function(){ POWERREVIEWS.display.snippet(document, { pr_page_id : "1" }); }

but this writes to the "document" and you can see the attached result. Is there anyway to initialize PowerReviews correctly? Is how they implement it incompatible with LS?

Attached File(s)


0

#2 User is offline   robertbanh 

  • LemonFan
  • PipPipPipPipPip
  • Group: Members
  • Posts: 61
  • Joined: 13-July 11

Posted 16 April 2012 - 04:14 PM

I would first put the power review snippet in the partial, b/c the grouped products get reloaded with a new pr_page_id.
0

Share this topic:


Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users