News:

Looking for documentation? Take a look on our wiki

Main Menu

Change "recommend a friend" icon to wording in Virtuemart

Started by laurabenn, November 25, 2013, 16:52:30 PM

Previous topic - Next topic

laurabenn

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

GJC Web Design

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

[attachment cleanup by admin]
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

laurabenn

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

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation


mfgrmn

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!

WebStuff

[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