Hi Yasp0,
It is not possible to show the price WITH tax, but with this filter you can easily calculate it and alter the price before it is shown!
<?php
add_filter('mag_products_integration_product_final_price_without_tax','alter_mag_price',10,4);
function alter_mag_price($price_with_prefix_suffix, $prefix, $price, $suffix) {
$tax = 1.05; // 5%
return $prefix . ($price * $tax) . $suffix;
}
It is not possible to show the category name for the moment.
I have two different rates of VAT, 5% and 23%. Is there any solutions?
The solution is the same, you have to create a plugin or modify your theme functions.php to alter the price :
<?php
add_filter('mag_products_integration_product_final_price_without_tax','alter_mag_price',10,4);
function alter_mag_price($price_with_prefix_suffix, $prefix, $price, $suffix) {
$tax1 = 0.05; // 5%
$tax2 = 0.23; // 23%
$new_price = $price * (1 + $tax1 + $tax2);
return $prefix . $new_price . $suffix;
}
The plugin itself doesn’t have such functionality at the moment.
The calculation and the logic can be different, just update the function.
Hi, there are different tax rates. 5% or 23% or 0% etc.
Is it possible to load product’s tax rate and calculate price with tax?
-
This reply was modified 4 years, 2 months ago by
pompi.
Showing the price with taxes at the moment is not possible.
I will consider it in the next version. I have to know if it is possible to do so with the REST API of Magento.