J
J
Jupiter Max2020-02-23 09:47:04
Joomla
Jupiter Max, 2020-02-23 09:47:04

How to put the name of the product in the title?

Hello. Guys, the question is this. The site is joomshopping. I need that when I go to the product card, the title from the product name gets into the title. Now just one heading is formed for each category and product. For example, let's go to skirts - Stylish skirts for women, etc.

I'm not familiar with the bug. Maybe there are some settings in the admin panel?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
max3wq, 2021-05-12
@max3wq

Good afternoon, add rules for rewriting fields to the product template:
public_html/components/com_jshopping/templates/default/product/product_default.php

$document->setTitle($this->product->name.' Тайтл');
$document->setMetaData('keywords', 'Ключи');
$document->setMetaData('description', ' Описание');

If you need to get the Title of the category
$menu_item_title = $menu_params->get('page_title', '');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question