Post by Klixon » Thu Aug 06, 2015 4:02 pm

Hello everyone!

Sorry maybe this is a basic question, but i can't found an answer.

I would like to add an external link to the product page anywhere, which is point to other opencart site product page to same product.

So example the opencart site1 product url is: http://site1/product1
on this site I want to display a simple link on the product page anywhere which is point to http://site2/product1

I need this at every product so the other product is http://site1/product2
the displayed link is should be http://site2/product2

I try to define it in the product controller file at breadcumbs but i don't have idea how can i change the default http value.

'href' => $this->url->link('product/product', $url . '&product_id=' . $this->request->get['product_id']),
'href2' => $this->url->link('product/product', $url . '&product_id=' . $this->request->get['product_id']),

And after just add the link to product.tpl
like <a href="<?php echo $breadcrumb['href2']; ?>"

so this is working, Just i need to change the http vale from site1 to site2

I hope this is understandable.

Thanks in advance

Newbie

Posts

Joined
Fri Apr 17, 2015 6:12 pm

Post by emixilir » Tue Aug 11, 2015 12:15 pm

I don't understand this question clearly. But, i think coding change help you to solve this. In coding you can include the anchor tag and text too. If you need any further assistance, get it from professionals from the support team.

Dissertation help service


Newbie

Posts

Joined
Tue Aug 11, 2015 12:10 pm


Post by yasar » Thu Aug 13, 2015 2:06 am

Open /catalog/view/theme/default/product.tpl

<a href="http://example.com/index.php?route=prod ... d=<?=$_GET["product_id"]?>">Your Link</a>

New member

Posts

Joined
Fri May 08, 2015 10:31 pm
Who is online

Users browsing this forum: No registered users and 188 guests