Encoding virtuemart GK bikeshop

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Sat Mar 02, 2013 12:54 pm
Hi,
I have a problem with bikeshop template. Everything seems great but when I try add some product to the cart, there are some strange characters. I tried change encoding in MySQL using by phpmyadmin and nothing happened. Need use cp1250 charset.
Look at this picture:
http://memekomiks.eu/encoding.png
Can anyone help me?
thanks for answers.
User avatar
Fresh Boarder

GK User
Sat Mar 02, 2013 1:47 pm
Hi, I always thought that the best choice is utf-8 for MySQL, not Windows-1250 ( CP-1250 ) !
User avatar
Platinum Boarder

GK User
Sat Mar 02, 2013 1:59 pm
Thanks for answer, I just using utf8_general_ci encoding ( It was as default, when I installed demo package). Is there some another utf8 for czech characters? thank you
User avatar
Fresh Boarder

GK User
Sat Mar 02, 2013 2:40 pm
Hi, you have encoding problem only in VM component or in all joomla?
User avatar
Platinum Boarder

GK User
Sat Mar 02, 2013 6:47 pm
only when I add some product to the cart. Other pages are ok.
Look at this:
http://memekomiks.eu/encoding.png
User avatar
Fresh Boarder

GK User
Mon Mar 04, 2013 10:15 am
you havent support? Why I paid for this?
User avatar
Fresh Boarder

GK User
Mon Mar 04, 2013 10:43 am
I have in default_addcart.php this:
<input type="hidden" class="pname" value="<?php echo htmlentities($this->product->product_name, ENT_QUOTES, 'utf8') ?>"/>

It should be works, but not...
User avatar
Fresh Boarder

GK User
Mon Mar 04, 2013 10:58 am
Hi, sorry for delay I was searching solution.

I have another questions:
1) You are using Bike Store template, yes ? - for J2.5 ?
2) What version of VM you are using ?

3) Could you rename folder name mod_virtuemart_cart : from here "templates/gk_bikestore/html/ " for a test time,
and clean cache, refresh browser and check again coding.

If won't help rename for a while "templates/gk_bikestore/html/com_virtuemart" - check again.

Thanks.
User avatar
Platinum Boarder

GK User
Mon Mar 04, 2013 11:03 am
okok, and did u find some solution? :)
User avatar
Fresh Boarder

GK User
Mon Mar 04, 2013 11:05 am
Please answer to my questions and try my solution.
User avatar
Platinum Boarder

GK User
Mon Mar 04, 2013 11:15 am
when I renamed com_virtuemart, its working .what to do now?

I am using Joomla 2.5 and VM 2.0.18a (latest version)
User avatar
Fresh Boarder

GK User
Mon Mar 04, 2013 11:26 am
Ok, now it will be easer for me & you.
So after the change of the folder name "mod_virtuemart_cart" was not better, only after you change the name of "com_virtuemart" folder was good, yes.

So give me about 1h I have to search "wrong" file.
User avatar
Platinum Boarder

GK User
Mon Mar 04, 2013 11:46 am
I tried it and there is something wrong in com/virtuemart/productdetails/default.php
User avatar
Fresh Boarder

GK User
Mon Mar 04, 2013 12:48 pm
Hi, you're right this is our error, temporary rename this file: templates\gk_bikestore\html\com_virtuemart\productdetails\default.php - I reported this problem to the web developer. We'll update this file soon.
User avatar
Platinum Boarder

GK User
Mon Mar 04, 2013 12:55 pm
yes, but it looks bad now, need some solution how to fix it :)
User avatar
Fresh Boarder

GK User
Mon Mar 04, 2013 1:03 pm
For now, focus on the rest elements of your e-commerce website ;)
Give as some time, day or two.
User avatar
Platinum Boarder

GK User
Mon Mar 04, 2013 1:16 pm
ok thank you
User avatar
Fresh Boarder

GK User
Wed Mar 06, 2013 10:01 am
hi, how it looks? I really need it.
User avatar
Fresh Boarder

GK User
Fri Mar 08, 2013 12:27 am
We are working ... I will ask programmer tomorrow morning.
User avatar
Platinum Boarder

GK User
Fri Mar 08, 2013 11:21 am
Path : templates\gk_bikestore\html\com_virtuemart\productdetails\default.php (line 284)

change code from:
Code: Select all
<input type="hidden" class="pname" value="<?php echo htmlentities($this->product->product_name) ?>" />


to:

Code: Select all
<input type="hidden" class="pname" value="<?php echo htmlentities($this->product->product_name, ENT_QUOTES, 'utf-8') ?>" />

Now should be okey, I've tested on my own website with polish special chars:
zowik.png


we add this into issue of next update

sorry for delay
User avatar
Platinum Boarder


cron