Hi All,
I’m implementing “Power Reviews” which replaces CS-Cart’s typical Review block.
I’ve implemented just about everything else except actually getting it to work :mrgreen:
Here’s what I would like to do:
Input a smarty variable into JavaScript.
Replace “[COLOR=Red]PRODUCT_CODE[/COLOR]”
```php
```with
```php
{$pr_productcode}
```I have generated "$pr_productcode" from "$product.product_code" (Smarty Variable)
In order to accomplish this I've added this code to index.tpl (/skins//customer/index.tpl)
```php
{assign var=pr_productcode value=$product.product_code}
{php}
// CREATE PRCODE from $PRODUCT CODE
$prcode = $this->get_template_vars('pr_productcode');// GRAB PRODUCT CODE FOR POWERREVIEW
{/php}
```