VM2.9.9e: Instead of showing a single quote in Product name, it is showing ACSII '
One more note on this behaviour, after installing 2.2.9g or 2.2.9.2 it got worse!
My product name is Audi '11. After saving product name it is changed to: Audi A1 '11. (front-end interpreted correctly)
After saving item again it now shows: Audi ' Which makes no sense, of course front end isn't able to show this.
thx
Using J3.3 and VM 3.0.2 problem still partly exist!
In product view every thing is fine, as well as in the admin.
Only the breadcrumb isn't correct, showing ascii code: ' => Audi A1 3d '11- reistassen set
instead of the product_name: Audi A1 3d '11- reistassen set.
Problem still exist in several places.
1. Saving a product with a quote, like Test '12, generates wrong product alias: test-39-12. Where 39 stands for the ascii coding.
2. Second is the breadcrumb is still wrong, showing: test '12
3. This reflects also the meta page title and meta description.
I solved the breadcrumb in with a quick work around: $new_name = html_entity_decode($list[$i]->name);
Changing in my case: ' to an apostrophe (single quote)
I assume this is a bug. Hopefully this can be fixed soon.
Thank you
Quote from: Milbo on January 28, 2015, 12:46:20 PM
Thank you
Do you expect this to be fixed in next release?
you did try?
Yes, running now 3.0.4 and still the same problem: Peugeot 308 '07-'13 3/5d set de sacs de voyage. Which should be: Peugeot 308 '07-'13 3/5d set de sacs de voyage
I just tried that and the only place it shows like your example is in the Joomla generated title tag, <title>Hats : Peugeot 308 &#39;07-&#39;13 3/5d set de sacs de voyage</title>
It is fine everywhere else including the meta description and on the product pages. Is that what you are seeing?
You are almost right, yes it is the title tag: <meta content="Peugeot 308 '07-'13 3/5d travel bag set" name="title">
But some other places as well. External component Xmap, shows it incorrect. And before I used a patch, the breadcrumb was incorrect as well.
Thanks for looking in to it.
html_decode_entities needs to be called with the appropriate flags as well every time the product name is pulled from the database and is going to be displayed. This is not always done.
Thank you
found
Quote
if ($product->customtitle) {
$document->setTitle(strip_tags(html_entity_decode($product->customtitle,ENT_QUOTES)));
} else {
$document->setTitle(strip_tags(html_entity_decode(($category->category_name ? ($category->category_name . ' : ') : '') . $product->product_name,ENT_QUOTES)));
}
Hey Milbo,
Which file should I edit?
cheers Paul
components\com_virtuemart\views\productdetails\view.html.php ~ line 217
Yes this works fine for the title, but I think the problem is already at the core.
The biggest bug still exist, and that is saving a product with a quote, like Peugeot 308 '07-'13 generates wrong product alias: "peugeot-308-39-07-39-13". Where 39 stands for the ascii coding.
And furthermore the product name saves like: Peugeot 308 '07-'13
Strangely enough this is done only for the other installed languages. Default Dutch is fine, but EN/DE/FR is wrong.
Any thoughts?
I am running J3.4 and VM3.0.6 but this bug is still there. Does someone have an idea were to solve this?
Which file is responsible to write the product name into specific language dependent product database table.
vm3.0.6.3?
Hey Milbo,
Just upgraded to j3.4.1 and VirtueMart 3.0.6.4.
Unfortunately it isn't solved yet. I included a screen-shot. You can see the original product name in default Dutch language is: Seat Leon '05-'12 reistassen set
and the German product name is: Seat Leon '05-'09 Reisetaschen Set
There has been one change I noticed, the automatic generated alias created off the product name is fine now and working great!
So Dutch alias is: seat-leon-05-12-reistassen-set
and German generated alias is: seat-leon-09-12-reisetaschen-set