VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Dylorek on July 04, 2013, 01:48:06 AM

Title: shopping cart
Post by: Dylorek on July 04, 2013, 01:48:06 AM
Hi, I would like to insert a small icon next to "Your Shopping Cart is empty". Anyone  know how do this?
Title: Re: shopping cart
Post by: jenkinhill on July 04, 2013, 11:25:15 AM
Simple way to do that is to code the image link into a text string to use as a language override for "Your Shopping Cart is empty".

http://forum.virtuemart.net/index.php?topic=113895.0
Title: Re: shopping cart
Post by: Dylorek on July 04, 2013, 12:03:17 PM
So I can here change a tekst and also add a image?
Title: Re: shopping cart
Post by: jenkinhill on July 04, 2013, 12:32:06 PM
Yes just simple code. But the normal (default)  language string for COM_VIRTUEMART_EMPTY_CART  is just "Cart empty" so maybe you already have a language override in place or are using a commercial theme.
Title: Re: shopping cart
Post by: Dylorek on July 04, 2013, 12:39:35 PM
I have already override: COM_VIRTUEMART_EMPTY_CART="Twój koszyk jest pusty" but I don't know what code I should add. Sorry for asking a lot of question but I'm from Poland and I don't understand everything.
Title: Re: shopping cart
Post by: Maxim Pishnyak on July 04, 2013, 18:51:55 PM
Twój koszyk jest pusty<br /><img src="xxxxxxxxxxxxxxxxxxx">
or
<img src="xxxxxxxxxxxxxxxxxxx"><br />Twój koszyk jest pusty
where xxxxxxxxxxxxx is the source to your small icon

img, br and other (div, p, center) are commands from HTML and CSS language
it's time for you to study web developing online books a bit
Title: Re: shopping cart
Post by: jenkinhill on July 04, 2013, 23:49:20 PM
HTML and other web languages are easier for me than Polish............