I would like to add an external link to the OpenCart product page - it can be anywhere on the page. I just want to link it to the same product page on an external site that has different options.
I tried to define it in the product controller file at breadcumbs but I don't have idea how can I change the default http value via PHP str_replace or something similar.
'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']),
I also tried to place this after the breadcrumb in product.tpl
like <a href="<?php echo $breadcrumb['href2']; ?>"
So this is working slightly - I just need to do the PHP replace or something better on the product page to point to the external domain.