Jump to content

The reviwes module. where is it grabing the item name from?


ibrahimkoky

Recommended Posts

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();
  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...