• Resolved Yasp0

    (@yasp0)


    Is it possible to show prices WITH tax? I only see the filter ‘product_final_price_without_tax’.

    And is it possible to show the category name?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author santerref

    (@santerref)

    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.

    Thread Starter Yasp0

    (@yasp0)

    Thanks!

    pompi

    (@pompejanska)

    I have two different rates of VAT, 5% and 23%. Is there any solutions?

    Plugin Author santerref

    (@santerref)

    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.

    pompi

    (@pompejanska)

    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 7 years, 11 months ago by pompi.
    Plugin Author santerref

    (@santerref)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Price only without tax? And show category name?’ is closed to new replies.