The current code shows the product price, but less VAT at 20%. I want to show the price under the current price with the VAT added. So one row with net price the other gross price.
The current code I have is
Code: Select all
function listen_infoBox($parameters) {
global $product; $this->load_lang();
if ($product && ($product Instanceof Product)) {
if (!is_null($product->get('cost') ?? null)) {
$parameters['contents'][] = ['text' => COST_INPUT_TEXT . ' ' . $product->get('cost')];
}
if (!is_null($product->get('price') ?? null)) {
$parameters['contents'][] = ['text' => NET_PRICE_INPUT_TEXT . ' ' . $product->get('price')];
}
}
}Hopefully some understand what I am trying to do, and can give a bit of advice.