News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Product Name is showing acii code instead of character

Started by ptrouw, October 22, 2014, 10:05:08 AM

Previous topic - Next topic

ptrouw

VM2.9.9e: Instead of showing a single quote in Product name, it is showing ACSII '

ptrouw

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.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

ptrouw

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.


ptrouw

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.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/


Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

ptrouw

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

jenkinhill

I just tried that and the only place it shows like your example is in the Joomla generated title tag, <title>Hats : Peugeot 308 &amp;#39;07-&amp;#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?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

ptrouw

You are almost right, yes it is the title tag: <meta content="Peugeot 308 &#39;07-&#39;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.

thewitt

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.

Milbo

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)));
         }
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

ptrouw


GJC Web Design

components\com_virtuemart\views\productdetails\view.html.php  ~ line 217
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation