I think I've been a bit vague so I will explain more.
I want to hide products to wholesale customers. I've modded a contribution here called dual prices to do what I need to do except this and I haven't got a clue about what approach to take ?
I've basically added a radio button in the new product screen so you can switch on or off and added a db entry hide_retail to the products table.
Now I want to set to hide the product on the website. I know there's the backbone to hook into available but finding the right approach is another story.
I was thinking around the lines of
Code:
$hide_retail = $db->Execute("select product_hide_retail from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");
if ($hide_retail == 1) {
hide price
} else {
continue as normal
}
But where would be the best place to add this or is there a function already responsible for hiding products that I can manipulate ?
Help please lol