Support » Plugin: WooCommerce » Show prices with tax Inclusive in Minicart widget

  • Resolved minthuram

    (@minthuram)


    Hi,

    I set up my tax configuration to show prices excluding tax in Cart and Checkout and Tax Inclusive in shop page. However after i added a product to basket/bag,i see that the prices displayed in the Minicart widget also exclude tax while displaying.

    for eg. if product price is ₹500 (Tax inclusive), when tax for 18%, tax exclusive price is ₹423
    in mini-cart also it shows as ₹423, i want the price to be shown as ₹500 in mini-cart also

    Is it possible to display the prices in the Minicart with tax included as displayed on my product page and keep the prices in Cart and Checkout pages without tax inclusive?

    • This topic was modified 1 month, 1 week ago by minthuram.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Same Problem i am facing

    Thread Starter minthuram

    (@minthuram)

    @suvam96 hope we get some resolution for it in this forum

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @minthuram,

    I set up my tax configuration to show prices excluding tax in Cart and Checkout and Tax Inclusive in shop page. However after i added a product to basket/bag,i see that the prices displayed in the Minicart widget also exclude tax while displaying.

    What you have described here is that both the cart and checkout would not display the prices with Tax. As a mini cart would display products from within the site’s cart that would also display prices without tax.

    Is it possible to display the prices in the Minicart with tax included as displayed on my product page and keep the prices in Cart and Checkout pages without tax inclusive?

    Not that I’m aware of as the mini cart would display the prices from the main WooCommerce cart. You may however be able to write some custom code to change that though. If you’re not experienced with writing custom code you could investigate hiring a developer to write that code for you.

    If you would like to investigate that possibility further, you could reach out to some of the official WooCommerce development partners via the link below.

    https://woocommerce.com/customizations/

    Thread Starter minthuram

    (@minthuram)

    Hi @stuartduff

    can you provide any doc reference for custom codes to be added ?
    i will try from my end a bit, if still not ressolved i will reach out to the developers.

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @minthuram,

    Regrettably, I couldn’t seem to find any resources when searching Google which would describe how to change the functionality of a mini cart using PHP. Searching on the WooCommerce Github repository I did however find the keyword of mini-cart returned these files.

    https://github.com/woocommerce/woocommerce/search?q=mini-cart

    Within this file below there seems to be a code filter called woocommerce_cart_item_price which can possibly be used to change the displayed cart prices.

    https://github.com/woocommerce/woocommerce/blob/b19500728b4b292562afb65eb3a0c0f50d5859de/templates/cart/mini-cart.php#L37

    It may be possible to have a developer write some custom code that could achieve your proposed changes. If you would like to investigate that possibility further, you could reach out to some of the official WooCommerce development partners via the link below.

    https://woocommerce.com/customizations/

    I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.

    Hello @stuartduff
    Atleast tell me
    How to Show prices with tax Inclusive in cart nut not in Check out

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @suvam96,

    Atleast tell me How to Show prices with tax Inclusive in cart nut not in Check out

    I’ve provided all of the information I can for you up until this point in our communication. Unfortunately, I’m not a developer; therefore, I would not be able to assist you with creating any code that would be required to achieve your specific pricing display.

    If you require the assistance of a developer to write code for you to achieve your desired pricing display as indicated, you could reach out to some of the official WooCommerce development partners from this section of WooCommerce.com.

    https://woocommerce.com/customizations/

    @stuartduff
    Are u hire any developer?

    Plugin Support Mirko P.

    (@rainfallnixfig)

    Hey @suvam96,

    Are u hire any developer?

    On this forum there aren’t many developers that can help you with custom code. As already suggested by @stuartduff you can hire a developer or a customization expert here: https://woocommerce.com/customizations/.

    Just to mention, our scope of support does not cover code customizations, as explained in our Support Policy.

    Thanks.

    Thread Starter minthuram

    (@minthuram)

    Thanks @stuartduff @rainfallnixfig for the suggestions, i have finally found a solution to solve the mentioned issue.

    Hey @minthuram
    Can u please tell me how to solve the issue?

    Thread Starter minthuram

    (@minthuram)

    Hi @suvam96

    sure,

    better make the tax settings in woocommerce as Incluseive

    Display prices in the shop
    Display prices during basket and checkout -> Including Tax
    Display tax totals -> Itemized

    then it checkout it will show total price or product price which you have set in your shop.but by default woocommerce will show includes VAT, you can change it to GST by adding the below code in 2 ways

    1. install a plugin called Code Snippets, then add new and add the below code
    OR
    2. If you are using Child theme along with parent theme, then
    Appearance->Theme Editor -> Select theme to edit:(select your child theme name) -> then click on functions.php and at the end add the below code

    add_filter( 'gettext', function( $translation, $text, $domain ) {
    	if ( $domain == 'woocommerce' ) {
    		if ( $text == '(includes %s)' ) { $translation = '(includes. GST)'; }
    	}
    	return $translation;
    }, 10, 3 );
    

    If you see many E-Commerce website like Amazon,Flipkart etc.. they wont show tax price in checkout, but they show in the invoice bill which they send to customer but in product page they will mention as all prices are tac inclusive.we can also do the same by adding tax including information of total price is tax inclusive, so i m following in the same way.so you can customize your invoice bill by enabling the tax options in invoice settings. for that you can install various free or premium woocommerce invoice PDF plugin and customize it.

    here are few free woocommerce PDF invoice

    1.https://wordpress.org/plugins/print-invoices-packing-slip-labels-for-woocommerce/
    2. https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/
    ( for now i m currently using the 2nd one as it has various tax enabling options)

    you can download and experiment various PDF invoice plugin and choose which is suitable for you.

    I hope through this way it will help you.

    • This reply was modified 1 month, 1 week ago by minthuram.
    • This reply was modified 1 month, 1 week ago by minthuram.
    Thread Starter minthuram

    (@minthuram)

    Hi @suvam96

    sure,

    better make the tax settings in woocommerce as Incluseive

    Display prices in the shop
    Display prices during basket and checkout -> Including Tax
    Display tax totals -> Itemized

    then it checkout it will show total price or product price which you have set in your shop.but by default woocommerce will show includes VAT, you can change it to GST by adding the below code in 2 ways

    1. install a plugin called Code Snippets, then add new and add the below code
    OR
    2. If you are using Child theme along with parent theme, then
    Appearance->Theme Editor -> Select theme to edit:(select your child theme name) -> then click on functions.php and at the end add the below code

    add_filter( 'gettext', function( $translation, $text, $domain ) {
    	if ( $domain == 'woocommerce' ) {
    		if ( $text == '(includes %s)' ) { $translation = '(includes. GST)'; }
    	}
    	return $translation;
    }, 10, 3 );
    

    If you see many E-Commerce website like Amazon,Flipkart etc.. they wont show tax price in checkout, but they show in the invoice bill which they send to customer but in product page they will mention as all prices are tac inclusive.we can also do the same by adding tax including information of total price is tax inclusive, so i m following in the same way.so you can customize your invoice bill by enabling the tax options in invoice settings. for that you can install various free or premium woocommerce invoice PDF plugins and customize it.

    here are few free woocommerce PDF invoice

    1.https://wordpress.org/plugins/print-invoices-packing-slip-labels-for-woocommerce/
    2.https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/

    ( for now i m currently using the 2nd one as it has various tax enabling options)

    you can download and experiment various free PDF invoice plugins and choose which is suitable for you.

    I hope through this way it will help you.

    • This reply was modified 1 month, 1 week ago by minthuram.
    Plugin Support Thu P. a11n

    (@thup90)

    Hi @minthuram,

    I’m glad you’ve figured this out. I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.