News:

Support the VirtueMart project and become a member

Main Menu

How to change page titles for product view?

Started by borro, August 21, 2013, 11:31:52 AM

Previous topic - Next topic

borro

Hello, friends

Now titles in store look like "Category_name: Product name"

Where can I change them to make them look like "Buy а category_name: product_name"

In some cases there are exclusions, and I have to edit titles manually (for 4-5 categories).

How can I do all this?
Wish you happiness!

borro

#1
Thanks to Maxim Pishnyak.

You can do it in product card editing. But there is a bug i think.

If there is a " symbol(double quotes) in the page title VM system will leave only the first part of title that stays before the first " mark. Despite this in frontend page title will be shown with all written words and " signs. But it will so be until you don't save product card again. VM 2.0.18a
Wish you happiness!

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Maxim Pishnyak

We don't need " to use for having double quotes in Title nomore:

administrator\components\com_virtuemart\views\product\tmpl\product_edit_description.php
near row 39
<input type="text" class="inputbox" size="70" name="customtitle" value="<?php echo htmlentities($this->product->customtitleENT_QUOTES"UTF-8");?>" />


Contributed by Borro
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Milbo

#4
This a wors case prevention, but.... I got an other idea by it. Atm only added to vm2.1. Please test this:

Go to BE/helpers/vmtable.php around line 803 and line 825,... search for

$langData[$name] = $data->$name;


and replace it by


$langData[$name] = htmlentities($data->$name, ENT_QUOTES, "UTF-8");


The idea is that we store directly all language fields encoded.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/