Author Topic: How to add url external link on name product in category?  (Read 4071 times)

andrzejlv

  • Beginner
  • *
  • Posts: 2
How to add url external link on name product in category?
« on: December 08, 2013, 10:39:08 am »
Code: [Select]
<h2><?php echo JHTML::link ($product->link$product->product_name);?></h2>

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8890
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: How to add url external link on name product in category?
« Reply #1 on: December 08, 2013, 11:54:52 am »
depends what the lonk is

if it is always the same just hard code it in your template

Code: [Select]
<h2><a href="http://www.google.com" ><?php echo $product->product_name?></a></h2>
if it is always different can the product be used to vary it?

Code: [Select]
<h2><a href="http://www.my_link.com/blah/<?php echo $product->product_name?>.html" ><?php echo $product->product_name?></a></h2>
etc

GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

andrzejlv

  • Beginner
  • *
  • Posts: 2
Re: How to add url external link on name product in category?
« Reply #2 on: December 08, 2013, 13:20:14 pm »
Thanks, that's exactly !!!