Hi
I changed the currency in the shop and since then the price does not show on the red round overlay when you mouse over on the home page, the price is there in the actual product page.
How do I fix this please.
Many thanks
teitbite wrote:Hi
Please show me Your site.
teitbite wrote:Hi
Looks like a bug, please update to the latest module version and check. If it will still be working the same way please send me an access to ftp.
$currency->createPriceDiv('basePriceWithTax','',$product->prices)
$news_price = '<div class="PricebasePriceWithTax" style="display : block;">'
.'<span class="PricebasePriceWithTax">£ '. $product->prices['basePriceWithTax'] .'</span>'
.'</div>'
.'<div class="PricetaxAmount" style="display : block;">inc. tax: € '.$product->prices['taxAmount'].'</div>';
teitbite wrote:Hi
Looks like the problem is inside VM. When module is using a VM function to create price with currency symbol function returns NULL.
- Code: Select all
$currency->createPriceDiv('basePriceWithTax','',$product->prices)
this code is in /modules/mod_news_pro_gk5/portal_modes/product_gallery/controller.php line 151
I will hard code Your currency here to avoid using this function, so the code will looks like this:
- Code: Select all
$news_price = '<div class="PricebasePriceWithTax" style="display : block;">'
.'<span class="PricebasePriceWithTax">£ '. $product->prices['basePriceWithTax'] .'</span>'
.'</div>'
.'<div class="PricetaxAmount" style="display : block;">inc. tax: € '.$product->prices['taxAmount'].'</div>';
teitbite wrote:Hi
Looks like the problem is inside VM. When module is using a VM function to create price with currency symbol function returns NULL.
- Code: Select all
$currency->createPriceDiv('basePriceWithTax','',$product->prices)
this code is in /modules/mod_news_pro_gk5/portal_modes/product_gallery/controller.php line 151
I will hard code Your currency here to avoid using this function, so the code will looks like this:
- Code: Select all
$news_price = '<div class="PricebasePriceWithTax" style="display : block;">'
.'<span class="PricebasePriceWithTax">£ '. $product->prices['basePriceWithTax'] .'</span>'
.'</div>'
.'<div class="PricetaxAmount" style="display : block;">inc. tax: € '.$product->prices['taxAmount'].'</div>';
$news_price = '<div class="PricebasePriceWithTax" style="display : block;">'
.'<span class="PricebasePriceWithTax">£ '. $product->prices['basePriceWithTax'] .'</span>'
.'</div>';
teitbite wrote:Hi
I've made a dump of prices values and looks like this new products do not have tax attached. Please take a look at the screenshot and select any other price or check VM configuration and add tax to this products.