VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: laurabenn on November 25, 2013, 16:52:30 PM

Title: Change "recommend a friend" icon to wording in Virtuemart
Post by: laurabenn on November 25, 2013, 16:52:30 PM
Hi there

Can anyone advise on changing the envelope icon for the "recommend a friend" link into wording on the product details page so it looks like "ask the seller a question" link?

Any help much appreciated

Thanks
Laura
Title: Re: Change "recommend a friend" icon to wording in Virtuemart
Post by: GJC Web Design on November 25, 2013, 18:29:10 PM
echo '<a href="'.$MailLink.'" rel="nofollow"  class="ask-a-question" >Email a friend</a>';

[attachment cleanup by admin]
Title: Re: Change "recommend a friend" icon to wording in Virtuemart
Post by: jenkinhill on November 25, 2013, 18:41:15 PM
And edit productdetails/tmpl/default.php to remove the icon display - use the edited file as an override. Code block begins
// PDF - Print - Email Icon
Title: Re: Change "recommend a friend" icon to wording in Virtuemart
Post by: laurabenn on November 26, 2013, 12:07:55 PM
Many thanks for that swift response. The conversion from icon to text worked a treat but now the link shows the Ask A Question pop up instead of the "Recommend A Friend"
What is this fix for this?

Thanks in advance
Laura
Title: Re: Change "recommend a friend" icon to wording in Virtuemart
Post by: GJC Web Design on November 26, 2013, 12:38:07 PM
opps  - wrong class

echo '<a href="'.$MailLink.'" rel="nofollow"  class="recommened-to-friend" >Email a friend</a>';

as written with wrong spelling...

but you then need to add this class to your css and style to get a button like ask
Title: Re: Change "recommend a friend" icon to wording in Virtuemart
Post by: laurabenn on November 27, 2013, 12:01:15 PM
Great stuff!
Thanks for your help!

Title: Re: Change "recommend a friend" icon to wording in Virtuemart
Post by: mfgrmn on December 04, 2013, 13:00:10 PM
Quote from: GJC Web Design on November 25, 2013, 18:29:10 PM
echo '<a href="'.$MailLink.'" rel="nofollow"  class="ask-a-question" >Email a friend</a>';

Hi!

what line are we replacing, and In which file/folder? Sorry, need more details like file directory. Thanks!
Title: Re: Change "recommend a friend" icon to wording in Virtuemart
Post by: WebStuff on December 04, 2013, 14:06:37 PM
[SITE ROOT]/components/com_virtuemart/views/productdetails/tmpl/default.php
copy that to :
[SITE ROOT]/templates/[YOUR TEMPLATE]/html/com_virtuemart/productdetails/default.php
and edit line 172