• Resolved geethujaison

    (@geethujaison)


    My tax calculation is not working properly. I had set tax rate to 18%. So I am expecting the total price as product price * 18 / 100. But its showing 1.80Rs as Tax amount, which means it calculating tax as 18/100 instead of product price * 18 / 100

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support wpnomad a11n

    (@wpnomad)

    Hi @geethujaison ,

    Can you send me the following details:

    1. A screenshot of the tax setting page located at WP Admin → WooCommerce → Settings → Tax. You can use https://snipboard.io to send us a screenshot link.
    2. What is the price of the product?

    Do let me know so I can help further.

    Thread Starter geethujaison

    (@geethujaison)

    @wpnomad

    screenshot links :
    https://snippyly.com/?q=kRGMa8giMeK6zBWM6uR1&EDIT=cmT1aj33oIQH83goU2wn

    https://snippyly.com/?q=nTbFPHk6umZc1C9eO1l3&EDIT=iXZ7fCp42iCyaP2CofkX

    Actually the problem is this calculation is working only for variable product. For simple product, tax calculation is not working.

    Plugin Support EastOfWest a11n

    (@eastofwest)

    Hi there,

    Here’s some easier ways to calculate the cost plus tax, and the cost before tax.

    Your base product plus tax (in your example it’s 18%):

    PRICE BEFORE TAX * 1.18 = PRICE INCL TAX

    Your total cost, and you know the tax (18%), and want to know the product price without tax:

    PRICE INCL TAX / 1.18 = PRICE BEFORE TAX

    For instance, if your product costs 100.00, add tax like so:
    100 * 1.18 = 118

    And if you know the total, but want to know how much without tax:
    118 / 1.18 = 100

    Thread Starter geethujaison

    (@geethujaison)

    @eastofwest I know these calculation, but don’t know where to edit these codes. Can I change/edit some code in some file to fix this. If yes, which file and function need to edit?

    Plugin Support wpnomad a11n

    (@wpnomad)

    HI @geethujaison ,

    These calculations are already inbuilt into WooCommerce, you do not need to add any codes for these tax calculations to work.

    Previously, I asked the product price, however, it seems it was not mentioned.

    If the product price is Rs.10 (exclusive of taxes), then the tax on it at 18% GST would be 0.18*10 = Rs. 1.8.

    If you still have any confusion, then please send us the link of the product page so we can take a look.

    Thread Starter geethujaison

    (@geethujaison)

    @wpnomad I have added three products to cart.
    check this screenshot :
    https://snippyly.com/?q=osswRowekf8vJKb8Bb7i&EDIT=qGqvUofNl2NTl31T0Jue
    The first two products are variable product and the third one is simple product. The tax calculation considering only first two products.

    • This reply was modified 4 years, 2 months ago by geethujaison.
    Plugin Support wpnomad a11n

    (@wpnomad)

    Hi @geethujaison ,

    That’s strange. Can you share the following:

    – URL of the three products that are there in your screenshot.
    – Screenshots of the Product Data section of those three products. Product Data section would look like this: https://d.pr/i/LxDGrL
    – A copy of your site’s System Status. You can find it via WooCommerce > Status.
    Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Do let us know!

    Thread Starter geethujaison

    (@geethujaison)

    @wpnomad My cart going crazy. Today it is showing VAT (default tax class) in my CART with value 0.
    https://snippyly.com/?q=tjnO6YYWJWJY7ZiEIJVk&EDIT=iqOJkPRJAjeneWsVNoUk

    I didn’t change any settings in tax. I don’t know what to do because my site is already live and I have no time to troubleshoot more. And I fed up with woocommerce.

    url of my demo site : https://almacarino.co.in/demo/ — you can check with any product

    All of my products are taxable and set to standard tax class.
    In my standard tax class I set 18% GST.

    System Report

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://almacarino.co.in/demo
    Site address (URL): https://almacarino.co.in/demo
    WC Version: 4.5.1
    REST API Version: ? 4.5.1
    WC Blocks Version: ? 3.1.0
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.5.0
    Log Directory Writable: ?
    WP Version: 5.5.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.3.19
    PHP Post Max Size: 260 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.70.0
    OpenSSL/1.1.1g
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.41-84.1
    Max Upload Size: 256 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 4.5.1
    WC Database Prefix: wp_
    Total Database Size: 22.39MB
    Database Data Size: 20.78MB
    Database Index Size: 1.61MB
    wp_woocommerce_sessions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
    wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_actions: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
    wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_actionscheduler_logs: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
    wp_bwg_album: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_bwg_album_gallery: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_bwg_file_paths: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_bwg_gallery: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_bwg_image: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_bwg_image_comment: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_bwg_image_rate: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_bwg_image_tag: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_bwg_shortcode: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_bwg_theme: Data: 0.04MB + Index: 0.00MB + Engine MyISAM
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.05MB + Index: 0.09MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailchimp_carts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailchimp_jobs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mwb_wcb_wallet_transactions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_options: Data: 4.09MB + Index: 0.13MB + Engine InnoDB
    wp_paytm_order_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_postmeta: Data: 7.52MB + Index: 0.72MB + Engine InnoDB
    wp_posts: Data: 8.42MB + Index: 0.23MB + Engine InnoDB
    wp_revslider_css: Data: 0.09MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_css_bkp: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_layer_animations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_navigations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_navigations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_sliders: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_sliders_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_slides: Data: 0.14MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_static_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_revslider_static_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_sbi_instagram_feeds_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_sbi_instagram_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.09MB + Index: 0.06MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
    wp_tinvwl_analytics: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_tinvwl_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_tinvwl_lists: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_vtprd_purchase_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_vtprd_purchase_log_product: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_vtprd_purchase_log_product_rule: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_vtprd_transient_cart_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wcpdf_invoice_number: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_product_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wpforms_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    
    ### Post Type Counts ###
    
    aoc_popup: 1
    attachment: 469
    bwg_gallery: 1
    bwg_share: 1
    customize_changeset: 10
    custom_css: 1
    elementor-dici-hf: 4
    elementor-sections: 4
    elementor_library: 12
    event_listing: 1
    mc4wp-form: 1
    nav_menu_item: 186
    page: 57
    polylang_mo: 2
    popup: 2
    popup_theme: 7
    post: 7
    product: 47
    product_variation: 17
    pwbf_deal: 1
    pwbf_event: 1
    revision: 270
    shop_coupon: 1
    shop_order: 23
    spt_testimonial: 4
    sp_tfree_shortcodes: 1
    ufaq: 4
    vtprd-rule: 1
    wpcf7_contact_form: 3
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    					Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ?
    
    ### Active Plugins (40) ###
    
    AJAX Login and Registration modal popup + inline form: by Maxim K – 2.10
    Autoptimize: by Frank Goossens (futtta) – 2.7.7
    Comments Widget Plus: by Idenovasi – 1.0.8
    Contact Form 7: by Takayuki Miyoshi – 5.2.2
    Currency Switcher for WooCommerce: by WP Wham – 2.12.3 – Installed version not tested with active version of WooCommerce 4.5.1
    DiCi Theme Feature Pack: by Themes Zone – 1.0.4
    Duplicate Page: by mndpsingh287 – 4.3
    Elementor: by Elementor.com – 3.0.7
    Facebook for WooCommerce: by Facebook – 2.0.1 – Installed version not tested with active version of WooCommerce 4.5.1
    Force Regenerate Thumbnails: by Pedro Elsner – 2.0.6
    Google Language Translator: by Translate AI Multilingual Solutions – 6.0.7
    Header and Footer Scripts: by Digital Liberation – 2.2.1
    Smash Balloon Instagram Feed: by Smash Balloon – 2.4.6
    Kirki Customizer Framework: by David Vongries – 3.1.5
    Google Ads for WooCommerce: by Kliken – 1.0.4 – Installed version not tested with active version of WooCommerce 4.5.1
    Mailchimp for WooCommerce: by Mailchimp – 2.4.5 – Installed version not tested with active version of WooCommerce 4.5.1
    MC4WP: Mailchimp for WordPress: by ibericode – 4.8.1
    Max Mega Menu: by megamenu.com – 2.9.0.2
    One Click Demo Import: by ProteusThemes – 2.6.1
    Pay in Store WooCommerce Payment Gateway: by Papaki – 1.2.2 – Installed version not tested with active version of WooCommerce 4.5.1
    Paytm WooCommerce Payment Gateway: by Paytm – 2.0 – Installed version not tested with active version of WooCommerce 4.5.1
    Popup anything on click: by WP OnlineSupport – 1.7.7
    Quick Contact Form: by Fullworks – 7.0.1
    Recent Posts Widget With Thumbnails: by Martin Stehle – 6.7.1
    Related Posts By Taxonomy: by keesiemijer – 2.7.4
    Slider Revolution: by ThemePunch – 6.2.2
    Testimonial: by ShapedPlugin – 2.2.3
    TI WooCommerce Wishlist: by TemplateInvaders – 1.21.6 – Installed version not tested with active version of WooCommerce 4.5.1
    Ultimate FAQ - WordPress Q&A Plugin: by Etoile Web Design – 1.9.8
    User Blocker: by Solwin Infotech – 1.5.2
    ThemesZone Variation Swatches: by Themes Zone – 1.0.0
    Wallet System for Woocommerce: by MakeWebBetter – 1.0.0 – Installed version not tested with active version of WooCommerce 4.5.1
    Wc Recently viewed products: by Subhasish Manna – 1.0.1 – Installed version not tested with active version of WooCommerce 4.5.1
    Customer Coupons for WooCommerce: by VillaTheme – 1.1.3 – Installed version not tested with active version of WooCommerce 4.5.1
    Kiasa UPI Payment plugin for WooCommerce: by Kiasa – 1.2 – Installed version not tested with active version of WooCommerce 4.5.1
    WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.0.3 – Installed version not tested with active version of WooCommerce 4.5.1
    WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.6.1 – Installed version not tested with active version of WooCommerce 4.5.1
    WooCommerce: by Automattic – 4.5.1
    WP Event Manager: by WP Event Manager – 3.1.15
    WP Super Cache: by Automattic – 1.7.1
    
    ### Inactive Plugins (7) ###
    
    Akismet Anti-Spam: by Automattic – 4.1.6
    Photo Gallery: by Photo Gallery Team – 1.5.62
    Polylang: by WP SYNTEX – 2.8.2
    VDZ Call Back Plugin: by VadimZ – 1.13.0
    WooCommerce Gold Price: by Gabriel Reguly – 4.2 – Installed version not tested with active version of WooCommerce 4.5.1
    WooCommerce Silver Price: by Gabriel Reguly – 4.2 – Installed version not tested with active version of WooCommerce 4.5.1
    WooCommerce silver Price: by Gabriel Reguly – 4.2 – Installed version not tested with active version of WooCommerce 4.5.1
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: INR (?)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    wooco (wooco)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #1725 - /shop/
    Cart: #1726 - /cart/
    Checkout: #1727 - /checkout/
    My account: #1728 - /my-account/
    Terms and conditions: #5305 - /terms-conditions/
    
    ### Theme ###
    
    Name: DiCi
    Version: 1.0.13
    Author URL: https://themes.zone
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Currency Switcher Settings ###
    
    WooCommerce Currency Switcher Plugin: yes
    Currency switcher on per product basis: yes
    Revert currency to default on checkout: no
    Apply currency conversion for fixed amount coupons: yes
    Add currency selector for fixed amount coupons: no
    Apply currency conversion for free shipping minimum order amount: yes
    Apply currency conversion for cart fees: yes
    Switcher placement: Array
    (
    )
    Switcher wrapper: %currency_switcher%
    Switcher item format: %currency_code%
    %currency_symbol%
    
    Link list switcher separator: 
    Reposition page after currency switch: no
    Rounding: no_round
    Number of decimals: 2
    Make "pretty price": no
    Apply rounding and "pretty price" to shipping rates: no
    Apply rounding and "pretty price" to shop's default currency: no
    Order currency: no
    Format price: no
    Currencies: 
    Currency (shop's default): [INR] Indian rupee
    Total additional currencies: 1
    Additional currency #1: yes
    alg_currency_switcher_currency_1: AED
    Exchange Rates: 
    Exchange rates updates: daily
    Exchange rates server: ecb
    Free Currency Converter API Key: not set
    Exchange rates offset: 0
    #1 INR/AED (United Arab Emirates dirham): 0.049
    alg_currency_switcher_exchange_rate_server_INR_AED: default
    alg_currency_switcher_exchange_rate_offset_type_INR_AED: default
    percent: 0
    Currency Countries (by IP): 
    Currency Countries (by IP): 
    Enter countries as comma separated text: 
    Override country: 
    #1 [AED] United Arab Emirates dirham: Array
    (
        [0] => 
    )
    Currency Languages (Locales): 
    Currency Languages (Locales): no
    Enter locales as comma separated text: no
    Always use locale to assign currency: yes
    #1 [AED] United Arab Emirates dirham: Array
    (
    )
    Price Formats: no
    #0 [INR] Indian rupee: left
    Additional currency code position (optional): none
    Thousand separator: ,
    Decimal separator: .
    Number of decimals: 2
    Currency Symbol: ?
    #1 [AED] United Arab Emirates dirham: right_space
    Additional currency code position (optional): none
    Thousand separator: ,
    Decimal separator: .
    Number of decimals: 2
    Currency Symbol: ?.?
    Flags: 
    #0 [INR] Indian rupee: 
    #1 [AED] United Arab Emirates dirham: 
    Price conversion method: 
    Fix mini cart: 
    Disable on URI: 
    Additional price filters: 
    Price filters to remove: 
    Session save path: 
    
    ### TI WooCommerce Wishlist Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Canceled: 1
    Oldest: 2020-09-08 04:16:07 +0000
    Newest: 2020-09-08 04:16:07 +0000
    
    Complete: 81
    Oldest: 2020-08-11 04:39:02 +0000
    Newest: 2020-09-10 11:40:16 +0000
    
    Failed: 1
    Oldest: 2020-07-25 04:09:04 +0000
    Newest: 2020-07-25 04:09:04 +0000
    
    
    • This reply was modified 4 years, 2 months ago by geethujaison.
    • This reply was modified 4 years, 2 months ago by geethujaison.
    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @geethujaison. It looks like you have resolved the issue and the VAT is now showing as 18% in the cart and on checkout.

    If you have any other questions, please start a new thread.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘GST(Tax) calculation is not working properly’ is closed to new replies.