Issue with tax
-
This is a staging site. This is an issue for all products on staging site
https://main.hamasataccessories.ae/shop/free-size-fashion-ring-with-zircon-stones-2
https://ibb.co/qpBSMp4
Settings for tax
https://ibb.co/TWVvCmY
Item has correct price inclusive of 5% tax for United Arab Emirates
https://ibb.co/Ny4Q4qP
Item has wrong price and should be inclusive of 15% tax for Saudi Arabia
https://ibb.co/KDtr8xm
This are the taxes that should be appliedProduct price and tax:
https://main.hamasataccessories.ae/shop/free-size-fashion-ring-with-zircon-stones-2
https://ibb.co/4PDgcYS
https://ibb.co/fS243kkThe page I need help with: [log in to see the link]
-
> Item has wrong price and should be inclusive of 15% tax for Saudi Arabia
https://ibb.co/KDtr8xmFrom what I can see, this appears to be correct. As the screenshot shows, it’s calculating 15% tax for this product:
118.01 + 17.71 = 135.81The tax amount shown, 17.71, is indeed 15% of 118.01, so that looks good.
What amounts did you expect to see?
124 is the price inclusive of vat. You can compare it when you set the shipping for uae vs ksa
Hi @hamasataccessoriesllc. If 124 is the price inclusive of 5% tax, the amount will be recalculated for Saudi Arabia for 15% tax.
The calculation is (124/1.05)*1.15 = 135.81
You can learn more about how taxes work in WooCommerce here. There is a code snippet on that page that you can use to force the same price for the product everywhere and absorb the difference in taxes.
Is this the code snippet for same price for the product everywhere and absorb the difference in taxes?
add_filter( ‘woocommerce_adjust_non_base_location_prices’, ‘__return_false’ );
Hi @hamasataccessoriesllc. Yes, that’s right.??
Where should I add this code specifically?
Hi @hamasataccessoriesllc. You would usually add this code to your functions.php file but then it would be overwritten when the theme is updated. So instead, I recommend that you use an plugin like Code Snippets which lets you add snippets and activate them for use on your site.
https://ibb.co/6wrnN3D
https://ibb.co/6mGXRb1
https://ibb.co/rGtm6t8This is what happen
Hi @hamasataccessoriesllc. What is the location of the store? The price, including tax, has to be set for the location of your store. So if your store location in WooCommerce > Settings is neither SA nor UAE, be sure to add the third country to your tax settings with a tax rate of 0. In my case, I’ve added the country CZ for demonstration:
https://ibb.co/x8J9PYG
Store is located in UAE, still the tax have some issueshttps://ibb.co/PzgtnVr
https://ibb.co/2kpmk9K
UAE tax 5%: 140 / 105 * 100 = 133.33 + 6.67 tax = 140 tax inclusive
KSA tax 15%: 140 / 115 * 100 = 121.739 + 18.26 tax = 140 tax inclusiveThis should be the outcome but ksa tax is showing me different computation
Hi, any response for this issue?
Hi @hamasataccessoriesllc, these are my settings in WooCommerce > Settings > General: https://d.pr/i/CebBVP
And these are my tax options in WooCommerce > Settings > Tax: https://d.pr/i/bNOF7Y
Do these settings match yours?
If this doesn’t help, please share your system report with me. You can find it by going to WooCommerce > Status > Get system report and then click Copy for support to be able to paste it in your reply.
### WordPress Environment ### WordPress address (URL): https://main.hamasataccessories.ae Site address (URL): https://main.hamasataccessories.ae WC Version: 4.3.0 REST API Version: ? 1.0.10 WC Blocks Version: ? 2.7.1 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.3.0 Log Directory Writable: ? WP Version: 5.4.2 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.20 PHP Post Max Size: 1 GB PHP Time Limit: 300 PHP Max Input Vars: 3000 cURL Version: 7.71.0 OpenSSL/1.1.1g SUHOSIN Installed: – MySQL Version: 5.7.23-23 Max Upload Size: 1 GB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.3.0 WC Database Prefix: WFp_ Total Database Size: 54.86MB Database Data Size: 43.13MB Database Index Size: 11.73MB WFp_woocommerce_sessions: Data: 0.23MB + Index: 0.01MB + Engine MyISAM WFp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.01MB + Engine MyISAM WFp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM WFp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_actionscheduler_actions: Data: 0.03MB + Index: 0.03MB + Engine MyISAM WFp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM WFp_actionscheduler_logs: Data: 0.02MB + Index: 0.02MB + Engine MyISAM WFp_asl_brands: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_asl_categories: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_asl_configs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_asl_countries: Data: 0.01MB + Index: 0.02MB + Engine MyISAM WFp_asl_markers: Data: 0.01MB + Index: 0.00MB + Engine MyISAM WFp_asl_settings: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_asl_storelogos: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_asl_stores: Data: 0.01MB + Index: 0.00MB + Engine MyISAM WFp_asl_stores_categories: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_asl_stores_view: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_comments: Data: 0.01MB + Index: 0.01MB + Engine MyISAM WFp_duplicator_packages: Data: 0.01MB + Index: 0.00MB + Engine MyISAM WFp_icl_content_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_icl_core_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_icl_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_icl_languages: Data: 0.00MB + Index: 0.01MB + Engine MyISAM WFp_icl_languages_translations: Data: 0.10MB + Index: 0.11MB + Engine MyISAM WFp_icl_locale_map: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_icl_message_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_icl_mo_files_domains: Data: 0.01MB + Index: 0.00MB + Engine MyISAM WFp_icl_node: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_icl_reminders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_icl_strings: Data: 4.04MB + Index: 3.87MB + Engine MyISAM WFp_icl_string_packages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_icl_string_pages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_icl_string_positions: Data: 3.80MB + Index: 1.21MB + Engine MyISAM WFp_icl_string_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_icl_string_translations: Data: 0.06MB + Index: 0.03MB + Engine MyISAM WFp_icl_string_urls: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_icl_translate: Data: 0.98MB + Index: 0.18MB + Engine MyISAM WFp_icl_translate_job: Data: 0.03MB + Index: 0.02MB + Engine MyISAM WFp_icl_translations: Data: 0.33MB + Index: 0.60MB + Engine MyISAM WFp_icl_translation_batches: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB WFp_icl_translation_status: Data: 0.88MB + Index: 0.06MB + Engine MyISAM WFp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_mailchimp_carts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_mailchimp_jobs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_ms_snippets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_options: Data: 7.82MB + Index: 0.41MB + Engine MyISAM WFp_postmeta: Data: 12.61MB + Index: 3.35MB + Engine MyISAM WFp_posts: Data: 3.13MB + Index: 0.61MB + Engine MyISAM WFp_revslider_css: Data: 0.09MB + Index: 0.00MB + Engine MyISAM WFp_revslider_css_bkp: Data: 0.01MB + Index: 0.00MB + Engine MyISAM WFp_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_revslider_layer_animations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_revslider_navigations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_revslider_navigations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_revslider_sliders: Data: 0.43MB + Index: 0.00MB + Engine MyISAM WFp_revslider_sliders_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_revslider_slides: Data: 4.74MB + Index: 0.00MB + Engine MyISAM WFp_revslider_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_revslider_static_slides: Data: 0.03MB + Index: 0.00MB + Engine MyISAM WFp_revslider_static_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_snippets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_termmeta: Data: 0.09MB + Index: 0.07MB + Engine MyISAM WFp_terms: Data: 0.01MB + Index: 0.03MB + Engine MyISAM WFp_term_relationships: Data: 0.12MB + Index: 0.27MB + Engine MyISAM WFp_term_taxonomy: Data: 0.02MB + Index: 0.02MB + Engine MyISAM WFp_usermeta: Data: 0.34MB + Index: 0.05MB + Engine MyISAM WFp_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM WFp_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_wc_category_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM WFp_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM WFp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_wc_order_product_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM WFp_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM WFp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_wc_product_meta_lookup: Data: 0.22MB + Index: 0.24MB + Engine MyISAM WFp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM WFp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woobe_history: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woobe_history_bulk: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woodmart_wishlists: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_woodmart_wishlist_products: Data: 0.00MB + Index: 0.01MB + Engine MyISAM WFp_wpforms_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_wpmailsmtp_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_yoast_indexable: Data: 2.87MB + Index: 0.39MB + Engine MyISAM WFp_yoast_indexable_hierarchy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM WFp_yoast_primary_term: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_yoast_seo_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM WFp_yoast_seo_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ### Post Type Counts ### attachment: 3639 cms_block: 31 custom_css: 1 mc4wp-form: 1 nav_menu_item: 48 page: 104 portfolio: 5 post: 2 product: 684 product_variation: 1644 revision: 127 shop_coupon: 1 shop_order: 8 shop_order_refund: 1 vc_grid_item: 1 woodmart_sidebar: 1 woodmart_slide: 34 wpcf7_contact_form: 2 wpsl_stores: 24 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (34) ### WPML Multilingual CMS: by OnTheGoSystems – 4.3.16 Code Snippets: by Code Snippets Pro – 2.14.0 Contact Form 7: by Takayuki Miyoshi – 5.2 Duplicator: by Snap Creek – 1.3.36 Facebook for WooCommerce: by Facebook – 1.11.4 – Installed version not tested with active version of WooCommerce 4.3.0 Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 7.11.0 Site Kit by Google: by Google – 1.10.0 WPBakery Page Builder: by Michael M - WPBakery.com – 6.2.0 Google Ads for WooCommerce: by Kliken – 1.0.4 – Installed version not tested with active version of WooCommerce 4.3.0 Mailchimp for WooCommerce: by Mailchimp – 2.4.1 – Installed version not tested with active version of WooCommerce 4.3.0 MC4WP: Mailchimp for WordPress: by ibericode – 4.7.8 OptinMonster API: by OptinMonster Team – 1.9.9 – Installed version not tested with active version of WooCommerce 4.3.0 Order on WhatsApp for WooCommerce: by EduardoVillao.me – 2.1 – Installed version not tested with active version of WooCommerce 4.3.0 Really Simple SSL: by Really Simple Plugins – 3.3.4 Slider Revolution: by ThemePunch – 6.2.2 Safe SVG: by Daryll Doyle – 1.9.9 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.16.26 WordPress Users & WooCommerce Customers Import Export(BASIC): by WebToffee – 1.4.2 – Installed version not tested with active version of WooCommerce 4.3.0 WC Hide Shipping Methods: by Rynaldo Stoltz – 1.4 WOOBE - WooCommerce Bulk Editor and Products Manager: by realmag777 – 1.0.6.1 – Installed version not tested with active version of WooCommerce 4.3.0 WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.0.3 WooCommerce Multilingual: by OnTheGoSystems – 4.9.1 – Installed version not tested with active version of WooCommerce 4.3.0 WooCommerce Services: by Automattic – 1.23.2 – Installed version not tested with active version of WooCommerce 4.3.0 WooCommerce: by Automattic – 4.3.0 Woodmart Core: by – 1.0.22 WordPress Importer: by wordpressdotorg – 0.7 Yoast SEO: by Team Yoast – 14.5 – Installed version not tested with active version of WooCommerce 4.3.0 WP Mail SMTP: by WPForms – 2.1.1 Smush: by WPMU DEV – 3.6.3 WP Store Locator: by Tijmen Smit – 2.2.232 WPForms Lite: by WPForms – 1.6.1 WPML Media: by OnTheGoSystems – 2.5.5 WPML String Translation: by OnTheGoSystems – 3.0.12 WPML Translation Management: by OnTheGoSystems – 2.9.9 ### Inactive Plugins (6) ### Agile Store Locator: by AGILELOGIX – 1.2.3 Akismet Anti-Spam: by Automattic – 4.1.6 Cookie Notice: by dFactory – 1.3.2 Hello Dolly: by Matt Mullenweg – 1.7.2 Jetpack by WordPress.com: by Automattic – 8.6.1 MOJO Marketplace: by Mike Hansen – 1.5.4 ### Must Use Plugins (2) ### Endurance Page Cache: by Mike Hansen – 2.0.2 SSO: by Garth Mortensen Mike Hansen – 0.3 ### Settings ### API Enabled: – Force SSL: – Currency: AED (?.?) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) 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: #6454 - /shop/ Cart: #10303 - /cart/ Checkout: #10304 - /checkout/ My account: #17 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Woodmart Version: 4.6.0 Author URL: https://themeforest.net/user/xtemos 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: woodmart/woocommerce/archive-product.php woodmart/woocommerce/cart/cart-item-data.php woodmart/woocommerce/cart/cart.php woodmart/woocommerce/cart/cross-sells.php woodmart/woocommerce/cart/mini-cart.php woodmart/woocommerce/checkout/form-checkout.php woodmart/woocommerce/checkout/thankyou.php woodmart/woocommerce/content-product.php woodmart/woocommerce/content-product_cat.php woodmart/woocommerce/content-single-product.php woodmart/woocommerce/content-widget-product.php woodmart/woocommerce/emails/admin-new-order.php woodmart/woocommerce/emails/plain/admin-new-order.php woodmart/woocommerce/global/breadcrumb.php woodmart/woocommerce/global/form-login.php woodmart/woocommerce/global/quantity-input.php woodmart/woocommerce/loop/add-to-cart.php woodmart/woocommerce/loop/loop-end.php woodmart/woocommerce/loop/loop-start.php woodmart/woocommerce/loop/no-products-found.php woodmart/woocommerce/loop/orderby.php woodmart/woocommerce/loop/pagination.php woodmart/woocommerce/loop/sale-flash.php woodmart/woocommerce/myaccount/form-login.php woodmart/woocommerce/product-searchform.php woodmart/woocommerce/single-product/add-to-cart/grouped.php woodmart/woocommerce/single-product/add-to-cart/variable.php woodmart/woocommerce/single-product/meta.php woodmart/woocommerce/single-product/product-image.php woodmart/woocommerce/single-product/product-thumbnails.php woodmart/woocommerce/single-product/rating.php woodmart/woocommerce/single-product/related.php woodmart/woocommerce/single-product/sale-flash.php woodmart/woocommerce/single-product/tabs/tabs.php woodmart/woocommerce/single-product/title.php woodmart/woocommerce/single-product/up-sells.php woodmart/woocommerce/single-product.php ### Action Scheduler ### Complete: 93 Oldest: 2020-07-20 12:45:44 +0400 Newest: 2020-07-20 14:15:05 +0400 Pending: 2 Oldest: 2020-07-21 14:15:05 +0400 Newest: 2020-07-21 14:15:05 +0400
Settings on the screenshot are the same with my staging website. Still the same issue.
@hamasataccessoriesllc It looks like the filter you’re using has formatted quotes on it. You would need to make sure the quotes are single quotes like this:
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' );
That should correct the issue.
- The topic ‘Issue with tax’ is closed to new replies.