-- HikaShop version -- : 3
-- Joomla version -- : 3.6.5
-- PHP version -- : 7
So iv'e used the code (below) and created a "buy now" button that links to external products (when I fill out brand url)
<input type="button" onclick="window.location='<?php echo $this->row->product_url; ?>'; return false;" value="buy now"/>
I placed it in the file product | quantity and it works perfect.
Anyway I have a question:
Is it possible to write aa php code to create a function that hide's the native "add to cart" button on the product page when the "brand URL" of the product is filled out ?
Would it be something like this
if($this->row->hikashop_product_url_main == 1)
{
$this->row->addtocartoption = 0;
}
?