price ttc

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #399857

    Nicosa
    Participant

    Hello,

    I would like to put next to the price the mention all taxes included (ttc in French), could you tell me where I can indicate this next to the price on the single product and on the basket page I would like to have sub-total, shipping (delivery cost) and total and put in parentheses the cost of VAT, because VAT alone can make believe that the amount of VAT is in addition to the order when it is included

    Thanks in advance,

    #399858

    Nicosa
    Participant

    I wanted to put a php code but I didn’t want to break the theme:
    function price_excluding_tax_and_tax() {

    aggregate $product;

    if ( $product->managing_stock() && $product->is_in_stock() ){

    $price_excl_tax = wc_get_price_excluding_tax($product); // price without VAT
    $price_incl_tax = wc_get_price_including_tax($product); // price with VAT
    $tax_amount = $price_incl_tax – $price_excl_tax; // VATamount
    ?>
    <p class=”price-excl”> Price without VAT <?php echo wc_price( $price_excl_tax ); ?></p>
    <p class=”tax-price”> VAT <?php echo wc_price( $tax_amount ); ?></p>
    <p class=”price-incl”> Price including tax <?php echo wc_price( $price_incl_tax ); ?></p>
    <?php

    }
    else{echo”;}
    }
    add_filter(‘woocommerce_get_price_html’, ‘price_ht_et_ttc’);

    #399930

    Nicosa
    Participant

    Topic solved, cache issue sorry for the inconvenience

    #399987

    Hello,

    We are glad you have solved the issue.

    If you have any questions please feel free to contact us.

    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘price ttc’ is closed to new replies.