VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: lipes on April 07, 2012, 16:23:31 PM

Title: Strange Problem in Cart layout - Impossible to change in CSS or tmpl
Post by: lipes on April 07, 2012, 16:23:31 PM
Hi. In the cart we got this (without 0 products):
<div class="total_products">Cart empty</div>

If we add 1 product to the Cart we got this:
<div class="total_products">1 product</div>

So.. If we want to to Something like this: Cart empty
Next We get this too: 1 product and are different things!

Its very bad...
So the Solution is to EDIT the ENGLISH Language and add CSS Style on that "Cart empty" place words ...
but the Main problem is whenever we got one New update .. that hack goes away and we lose that work!

Any better sugestion to solve this, please?!
Title: Re: Strange Problem in Cart layout - Impossible to change in CSS or tmpl
Post by: jenkinhill on April 07, 2012, 16:32:44 PM
Use language override. http://forum.virtuemart.net/index.php?topic=92944.0
Title: Re: Strange Problem in Cart layout - Impossible to change in CSS or tmpl
Post by: lipes on April 07, 2012, 16:46:51 PM
doesnt work :(

this is what i want to add a style:
COM_VIRTUEMART_EMPTY_CART=" <div class="tcv">Cart empty</div>"
in en-GB.com_virtuemart.ini

I've go to override language folder put the en-GB.com_virtuemart.ini  or en-GB.override.ini .. and dont work...

I created too a folder in override called en-GB with the file.. but doesnt work too!

:'(
Title: Re: Strange Problem in Cart layout - Impossible to change in CSS or tmpl
Post by: lmn40227 on April 09, 2012, 16:46:11 PM
maybe this is the unique thing that i cant change the CSS with doing that in the language file
Title: Re: Strange Problem in Cart layout - Impossible to change in CSS or tmpl
Post by: lipes on April 13, 2012, 15:05:35 PM
i was stupid.. sorry.. because i was in administrator language directory xD

and ... the explanation of BanquetTables.pro could be more usefull like:

1st: Copy the line of text you want to change.
2nd: Paste the line(s) that you want in one NEW en-GB.override.ini file (or in your language override)
3rd: Put that file ( en-GB.override.ini ) in YOUR SITE FOLDER \language\overrides

you'll be happy now :P