VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: Funtshirts on June 12, 2016, 15:34:31 PM

Title: Virtuemart Cart show code on frontend
Post by: Funtshirts on June 12, 2016, 15:34:31 PM
Hello All,

Recently i moved to a new host, and because of that i upgraded to PHP7.
But now (at least i think thats the reason) my virtuemart cart shows code on the frontend (added screenshot)

I use the Ajax dropdown cart from CMSmart. I know u should ask them and i did, but the quiker this is fixed the better.

I hope someone can tell me the cause of this and how i can fix it.

My website is www.funtshirts.nl
I use PHP 7.0.7
Joomla 3.5.1
Virtuemart 3.0.16

Title: Re: Virtuemart Cart show code on frontend
Post by: jenkinhill on June 12, 2016, 15:47:27 PM
They are untranslated language strings,  presumably from your commercial module. Either create overrides for the strings or get a update from the CMSmart.
Title: Re: Virtuemart Cart show code on frontend
Post by: Funtshirts on June 12, 2016, 15:58:56 PM
Thank you for your quik response.

I translated the necessary parts (new screenshot added), and this worked before. But suddenly it shows like this..
Title: Re: Virtuemart Cart show code on frontend
Post by: GJC Web Design on June 12, 2016, 23:56:06 PM
why are some surrounded in quotes and others aren't?
Title: Re: Virtuemart Cart show code on frontend
Post by: Studio 42 on June 13, 2016, 01:02:44 AM
Hi,
replace comment
# must be ;
Remove all unneded spaces.
Quote are mandatory for each string after the = sign.

Here a valid sample:
Quote; Note : All ini files need to be saved as UTF-8
; Common boolean values
; Note: YES, NO, TRUE, FALSE are reserved words in INI format.
; Double quotes in the values have to be formatted as "_QQ_".
MY_KEY="My value"
Title: Re: Virtuemart Cart show code on frontend
Post by: jjk on June 13, 2016, 23:06:59 PM
The screenshot looks like it's taken on a  MAC.  Perhaps the language file was saved in a word processor specific format? Make sure it is saved in utf-8 format. Suitable editors for editing language files on MAC might be TextWrangler or Sublime Text.
Title: Re: Virtuemart Cart show code on frontend
Post by: Funtshirts on June 14, 2016, 19:41:13 PM
As simple as it was, GJC Web Design was right.
I swore the quotes were like that since the beginning..guess not and something changed.
If only one qoute is wrong it messes up the whole file.