ibrahimkoky Posted October 18, 2016 Share Posted October 18, 2016 Hello the free review module that come with the installation is displaying wrong names for products when leaving a review. How can I fix this? Thank you Link to comment Share on other sites More sharing options...
rocky Posted October 19, 2016 Share Posted October 19, 2016 In the default PrestaShop v1.6.1.7 theme, they are using the exact same variable, so it makes no sense that they have different values on your website, unless it's a bug in your theme. I'm looking at line 123 (in PrestaShop v1.6.1.7) of themes/default-bootstrap/modules/productcomments/productcomments.tpl: <strong>{$product->name}</strong> And line 158 (in PrestaShop v1.6.1.7) of themes/default-bootstrap/product.tpl: <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> Both are using {$product->name}. Looking at line 830 of modules/productcomments/productcomments.php, it's getting the $product from the ProductController, so they should be the same: $product = $this->context->controller->getProduct(); 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now