VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: diogoac on April 10, 2012, 05:20:47 AM

Title: how to replace language text with a image? on vm 2.0
Post by: diogoac on April 10, 2012, 05:20:47 AM
I did this very easy on virtuemart 1.x

But if I try the same thing on vm 2.0 doesnt work... how can I do it?

I used to do that way:

COM_VIRTUEMART_PRODUCT_DETAILS="Product Details"

-->COM_VIRTUEMART_PRODUCT_DETAILS="<img alt="Detalhes do Produto" src="images/productdetails.gif" style="width: 170px; height: 41px;" title="Product Details" />"

but wont work.. help please.
Title: Re: how to replace language text with a image? on vm 2.0
Post by: brentonking on April 10, 2012, 07:31:30 AM
Change to:
COM_VIRTUEMART_PRODUCT_DETAILS="<img alt='Detalhes do Produto' src='images/productdetails.gif' style='width: 170px; height: 41px;' title='Product Details' />"

I have replaced  the " inside with '. Once you put a " inside it basically cuts it off there. So what you were actually loading is just: COM_VIRTUEMART_PRODUCT_DETAILS="<img alt=" - hence why no image was showing.

Let me know how you go.
Title: Re: how to replace language text with a image? on vm 2.0
Post by: diogoac on April 10, 2012, 15:22:21 PM
thanks man!!  :)