-- HikaShop version -- : 4.1.0
Hi, I want to show the variants in listing_img_title, I managed to do it through the code below but the problem is that I can not take the value price_value_with_tax. How can I show price with tax ?
<?php
$productClass = hikashop_get('class.product');
$productClass->getProducts($this->row->product_id);
$products = $productClass->products;
foreach ($products as $product) {
$variants = $product->variants;
foreach ($variants as $variant) {
$vendor_id = $variant->product_vendor_id;
$sales = $variant->product_sales;
$price = $this->currencyHelper->format($variant->prices[0]->price_value, $variant->prices[0]->price_currency_id);
}
}
?>