Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Calling product_id in PowerReviews scripts


markw10

Recommended Posts

I posted earlier about integrating PowerReviews with CRE Loaded.

 

As part of the PowerReviews integration I need to put the following two scripts in my Product Page. One is for the Review Snippet and the other is for the Review Display.

 

The key is by default both pieces of code as you will see below list PAGE_ID. PowerReviews has told us to replace this by the name that is used on our website. All of our products for PowerReviews are sorted by product id so it seems that I'd use Product ID. I have also tried using products_id. In both cases I put this in quotes such as "products_id" instead of "PAGE_ID" It doesn't seem to call it correctly doing this. Is there some other way I can call the product id in the below scripts?

 

The first below is for the Review Snippet showing reviews:

 

<div class="pr_snippet_product">

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

</div>

 

 

The second below shows Review Display:

 

<div class="pr_review_summary">

<script type="text/javascript">POWERREVIEWS.display.engine(document, { pr_page_id : "PAGE_ID" });</script>

</div>

 

Thank you for your help.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...