VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: jbx007 on June 03, 2016, 17:41:54 PM

Title: Link price to eBay
Post by: jbx007 on June 03, 2016, 17:41:54 PM
Look I apologize ahead of time for my ignorance, I did read as much as I could to figure how to do this but I am coming up with nothing. Maybe I am not understanding the terminology? I know a micro spec of php and will not bs you all.

The reason I want to link to ebay is I need to figure how to completely set the store up and  get a SSL certificate up ....then get away from ebay in the future, but time is a factor which I do not have a lot of right now.

I see in the product description there is a field for url. I put the link of ebay in there but for some reason I do not see a link on the page of my website.

So again, I apologize for the rookie question and if it is covered in a topic I did use the search function on this site to no avail.

Please help me out

I am using the latest version of VM, 3.0.16

Thank you folks!

-jim
Title: Re: Link price to eBay
Post by: GJC Web Design on June 03, 2016, 22:22:38 PM
The field just stores the link in the DB

you need to display it if thats what you want or redirect to etc

e.g.

in productdetails template default.php add an over ride

<?php
    
// Product Url
    
if (!empty($this->product->product_url)) {
?>

        <div class="product_url">
    <?php
    echo 
'<a href="'.$this->product->product_url.'" class="ebaylink">See product on Ebay!</a>';
    ?>

        </div>
<?php
    
// Product Url END
?>
Title: Re: Link price to eBay
Post by: jbx007 on June 04, 2016, 17:28:00 PM
Thank you! I will give that a try.