bahstudios
Forum Replies Created
-
After some through investigating it looks like the issue is with on line 736 of shipping_method.php is the following if statement:
if ( WC()->cart->prices_include_tax ) {
That if statement is never called so our taxes are never used to calculate the proper shipping total. Our cart should be calculating shipping based on cart total including tax. As it currently stands, the shipping is calculated based on the total without tax.
Is there a way to get this statement to trigger? What WooCommerce option is behind this? We tried setting several WooCommerce tax options and nothing works. As it stands now we have modified the code to the following to get the proper amount including tax:
if ( WC()->cart->prices_include_tax || TRUE) {
Sure, here’s the status report:
### WordPress Environment ### Home URL: https://pecs-unitedkingdom.com Site URL: https://pecs-unitedkingdom.com WC Version: 3.3.3 Log Directory Writable: ? WP Version: 4.9.4 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: – Language: en_GB ### Server Environment ### Server Info: Apache PHP Version: 7.1.15 PHP Post Max Size: 700 MB PHP Time Limit: 50000 PHP Max Input Vars: 2000 cURL Version: 7.58.0 OpenSSL/1.0.2n SUHOSIN Installed: – Max Upload Size: 700 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected. DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.3.3 WC Database Prefix: wp_ MaxMind GeoIP Database: ? Total Database Size: 89.84MB Database Data Size: 77.43MB Database Index Size: 12.41MB wp_woocommerce_sessions: Data: 0.29MB + Index: 0.01MB wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.01MB wp_woocommerce_order_items: Data: 0.04MB + Index: 0.03MB wp_woocommerce_order_itemmeta: Data: 0.49MB + Index: 0.24MB wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB wp_404_to_301: Data: 3.17MB + Index: 0.28MB wp_aelia_dismissed_messages: Data: 0.02MB + Index: 0.00MB wp_aelia_exchange_rates_history: Data: 0.02MB + Index: 0.00MB wp_aps_social_icons: Data: 0.00MB + Index: 0.00MB wp_aws_cache: Data: 8.63MB + Index: 0.00MB wp_aws_index: Data: 0.22MB + Index: 0.00MB wp_blc_filters: Data: 0.00MB + Index: 0.00MB wp_blc_instances: Data: 0.07MB + Index: 0.02MB wp_blc_links: Data: 0.71MB + Index: 0.07MB wp_blc_synch: Data: 0.01MB + Index: 0.01MB wp_commentmeta: Data: 0.00MB + Index: 0.01MB wp_comments: Data: 0.07MB + Index: 0.04MB wp_duplicator_packages: Data: 0.00MB + Index: 0.00MB wp_esp_answer: Data: 0.02MB + Index: 0.03MB wp_esp_attendee_meta: Data: 0.02MB + Index: 0.06MB wp_esp_checkin: Data: 0.02MB + Index: 0.03MB wp_esp_country: Data: 0.05MB + Index: 0.00MB wp_esp_currency: Data: 0.02MB + Index: 0.00MB wp_esp_currency_payment_method: Data: 0.02MB + Index: 0.02MB wp_esp_datetime: Data: 0.02MB + Index: 0.05MB wp_esp_datetime_ticket: Data: 0.02MB + Index: 0.03MB wp_esp_event_message_template: Data: 0.02MB + Index: 0.03MB wp_esp_event_meta: Data: 0.02MB + Index: 0.02MB wp_esp_event_question_group: Data: 0.02MB + Index: 0.03MB wp_esp_event_venue: Data: 0.02MB + Index: 0.00MB wp_esp_extra_join: Data: 0.02MB + Index: 0.03MB wp_esp_extra_meta: Data: 0.02MB + Index: 0.02MB wp_esp_line_item: Data: 0.02MB + Index: 0.03MB wp_esp_log: Data: 0.02MB + Index: 0.05MB wp_esp_message: Data: 0.02MB + Index: 0.22MB wp_esp_message_template: Data: 0.09MB + Index: 0.02MB wp_esp_message_template_group: Data: 0.02MB + Index: 0.02MB wp_esp_payment: Data: 0.02MB + Index: 0.03MB wp_esp_payment_method: Data: 0.02MB + Index: 0.03MB wp_esp_price: Data: 0.02MB + Index: 0.02MB wp_esp_price_type: Data: 0.02MB + Index: 0.02MB wp_esp_question: Data: 0.02MB + Index: 0.02MB wp_esp_question_group: Data: 0.02MB + Index: 0.03MB wp_esp_question_group_question: Data: 0.02MB + Index: 0.03MB wp_esp_question_option: Data: 0.02MB + Index: 0.03MB wp_esp_registration: Data: 0.02MB + Index: 0.11MB wp_esp_registration_payment: Data: 0.02MB + Index: 0.03MB wp_esp_state: Data: 0.02MB + Index: 0.03MB wp_esp_status: Data: 0.02MB + Index: 0.02MB wp_esp_ticket: Data: 0.02MB + Index: 0.02MB wp_esp_ticket_price: Data: 0.02MB + Index: 0.03MB wp_esp_ticket_template: Data: 0.02MB + Index: 0.00MB wp_esp_transaction: Data: 0.02MB + Index: 0.03MB wp_esp_venue_meta: Data: 0.02MB + Index: 0.05MB wp_ewwwio_images: Data: 0.79MB + Index: 0.32MB wp_links: Data: 0.00MB + Index: 0.00MB wp_optins: Data: 0.00MB + Index: 0.00MB wp_optin_meta: Data: 0.00MB + Index: 0.01MB wp_options: Data: 1.24MB + Index: 0.15MB wp_pecs_online_reg_authorizenet: Data: 0.00MB + Index: 0.00MB wp_pecs_online_reg_avatax: Data: 0.00MB + Index: 0.00MB wp_pecs_online_reg_common_field_names: Data: 0.00MB + Index: 0.00MB wp_pecs_online_reg_consultants: Data: 0.01MB + Index: 0.01MB wp_pecs_online_reg_currencies: Data: 0.00MB + Index: 0.01MB wp_pecs_online_reg_customcheckbox: Data: 0.00MB + Index: 0.01MB wp_pecs_online_reg_custom_forms: Data: 0.01MB + Index: 0.00MB wp_pecs_online_reg_custom_form_fields: Data: 0.01MB + Index: 0.00MB wp_pecs_online_reg_custom_form_fields_values: Data: 0.25MB + Index: 0.28MB wp_pecs_online_reg_geo_cache: Data: 0.06MB + Index: 0.03MB wp_pecs_online_reg_manualpayment: Data: 0.01MB + Index: 0.00MB wp_pecs_online_reg_orders: Data: 0.03MB + Index: 0.03MB wp_pecs_online_reg_order_billing_values: Data: 0.16MB + Index: 0.21MB wp_pecs_online_reg_order_status: Data: 0.00MB + Index: 0.01MB wp_pecs_online_reg_order_totals: Data: 0.01MB + Index: 0.01MB wp_pecs_online_reg_pay360: Data: 0.00MB + Index: 0.00MB wp_pecs_online_reg_paypal: Data: 0.00MB + Index: 0.00MB wp_pecs_online_reg_products: Data: 0.00MB + Index: 0.00MB wp_pecs_online_reg_pyramid_packages: Data: 0.00MB + Index: 0.00MB wp_pecs_online_reg_pyramid_package_types: Data: 0.00MB + Index: 0.00MB wp_pecs_online_reg_redsys: Data: 0.00MB + Index: 0.00MB wp_pecs_online_reg_sponsored_workshops: Data: 0.00MB + Index: 0.02MB wp_pecs_online_reg_workshop_categories: Data: 0.01MB + Index: 0.00MB wp_pecs_online_reg_workshop_coupons: Data: 0.00MB + Index: 0.00MB wp_pecs_online_reg_workshop_earlybirddiscounts: Data: 0.00MB + Index: 0.00MB wp_pecs_online_reg_workshop_groupdiscounts: Data: 0.01MB + Index: 0.01MB wp_pecs_online_reg_workshop_locations: Data: 0.86MB + Index: 0.02MB wp_pecs_online_reg_workshop_presenters: Data: 0.00MB + Index: 0.01MB wp_pecs_online_reg_workshop_prices: Data: 0.01MB + Index: 0.01MB wp_pecs_online_reg_workshop_products: Data: 0.04MB + Index: 0.04MB wp_pecs_online_reg_workshop_types: Data: 0.05MB + Index: 0.01MB wp_postmeta: Data: 2.65MB + Index: 0.95MB wp_posts: Data: 45.26MB + Index: 0.53MB wp_pp_login_builder: Data: 0.01MB + Index: 0.00MB wp_pp_password_reset_builder: Data: 0.01MB + Index: 0.00MB wp_pp_registration_builder: Data: 0.01MB + Index: 0.00MB wp_redirection_404: Data: 8.18MB + Index: 3.26MB wp_redirection_groups: Data: 0.00MB + Index: 0.00MB wp_redirection_items: Data: 0.00MB + Index: 0.01MB wp_redirection_logs: Data: 0.03MB + Index: 0.02MB wp_relevanssi: Data: 2.49MB + Index: 3.94MB wp_relevanssi_log: Data: 0.00MB + Index: 0.00MB wp_relevanssi_stopwords: Data: 0.01MB + Index: 0.01MB wp_rm_fields: Data: 0.00MB + Index: 0.00MB wp_rm_forms: Data: 0.00MB + Index: 0.00MB wp_rm_front_users: Data: 0.00MB + Index: 0.00MB wp_rm_notes: Data: 0.00MB + Index: 0.00MB wp_rm_paypal_fields: Data: 0.00MB + Index: 0.00MB wp_rm_paypal_logs: Data: 0.00MB + Index: 0.00MB wp_rm_sent_mails: Data: 0.00MB + Index: 0.00MB wp_rm_sessions: Data: 0.06MB + Index: 0.01MB wp_rm_stats: Data: 0.00MB + Index: 0.00MB wp_rm_submissions: Data: 0.00MB + Index: 0.00MB wp_rm_submission_fields: Data: 0.00MB + Index: 0.00MB wp_signups: Data: 0.02MB + Index: 0.01MB wp_spectrom_sync: Data: 0.00MB + Index: 0.00MB wp_spectrom_sync_log: Data: 0.00MB + Index: 0.00MB wp_spectrom_sync_media: Data: 0.00MB + Index: 0.00MB wp_spectrom_sync_sources: Data: 0.00MB + Index: 0.01MB wp_swpm_membership_meta_tbl: Data: 0.00MB + Index: 0.00MB wp_swpm_membership_tbl: Data: 0.00MB + Index: 0.00MB wp_swpm_members_tbl: Data: 0.00MB + Index: 0.00MB wp_swpm_payments_tbl: Data: 0.00MB + Index: 0.00MB wp_termmeta: Data: 0.01MB + Index: 0.02MB wp_terms: Data: 0.03MB + Index: 0.06MB wp_term_relationships: Data: 0.06MB + Index: 0.12MB wp_term_taxonomy: Data: 0.03MB + Index: 0.05MB wp_usermeta: Data: 0.21MB + Index: 0.14MB wp_users: Data: 0.01MB + Index: 0.01MB wp_wcpdf_invoice_number: Data: 0.01MB + Index: 0.01MB wp_wc_download_log: Data: 0.00MB + Index: 0.00MB wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB wp_yoast_seo_links: Data: 0.20MB + Index: 0.05MB wp_yoast_seo_meta: Data: 0.02MB + Index: 0.02MB ### Post Type Counts ### amn_mi-lite: 1 attachment: 456 custom_css: 1 epl_event: 1 epl_location: 1 et_pb_layout: 151 job: 2 layout: 6 nav_menu_item: 114 page: 73 post: 296 product: 72 product_variation: 96 revision: 5297 rmlaccounts: 1 shop_order: 157 wpcf7_contact_form: 2 wppb-rf-cpt: 1 wppb-roles-editor: 10 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (42) ### 404 to 301: by Joel James – 2.3.3 Add Categories to Pages.: by a.ankit – 1.0 Admin Menu Editor: by Janis Elsts – 1.8.2 Advanced Woo Search: by ILLID – 1.35 Broken Link Checker: by Janis Elsts Vladimir Prelovac – 1.11.5 Enhanced Media Library: by wpUXsolutions – 2.5 EWWW Image Optimizer: by Shane Bishop – 4.1.0 Flexible Shipping: by WP Desk – 2.0.1 Force Regenerate Thumbnails: by Pedro Elsner – 2.0.6 Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 7.0.3 iThemeland WooCommerce Coupon Campaigns: by iThemelandco – 1.0 – Not tested with the active version of WooCommerce IgniteWoo Updater: by IgniteWoo.com – 2.1.11 Loading Page: by CodePeople – 1.0.29 Nav Menu Images: by Milan Dini? – 3.4 PayPal for WooCommerce: by Angell EYE – 1.4.7.4 – Not tested with the active version of WooCommerce PECS Online Registration System: by Graham Becker – 2.1.0 Profile Builder Pro: by Cozmoslabs Madalin Ungureanu Antohe Cristian Barina Gabriel Mihai Iova – 2.7.6 Really Simple SSL: by Rogier Lankhorst – 2.5.25 Redirection: by John Godley – 3.2 Redis Object Cache: by Till Krüss – 1.3.5 Relevanssi: by Mikko Saari – 4.0.4 Search & Filter: by Designs & Code – 1.2.9 SVG Support: by Benbodhi – 2.3.11 Under Construction: by Web Factory Ltd – 2.85 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.14.4 WooCommerce Variation Swatches: by ThemeAlien – 1.0.3 – Not tested with the active version of WooCommerce WooCommerce Invoice Gateway: by Stuart Duff – 1.0.2 – Not tested with the active version of WooCommerce Widget Options: by Phpbits Creative Studio – 3.6 WooCommerce Disability VAT Exemption: by WooCommerce – 1.3.4 – Not tested with the active version of WooCommerce WooCommerce - Embed Videos To Product Image Gallery: by ZealousWeb Technologies – 2.2 – Not tested with the active version of WooCommerce WooCommerce Pay360 (PayPoint) Gateway: by VanboDevelops – 2.0.1 – 2.0.3 is available – Not tested with the active version of WooCommerce WooCommerce Phone Orders & Manual Orders: by IgniteWoo.com – 3.0.10 WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.1.5 WooCommerce PDF Invoices & Packing Slips Premium Templates: by Ewout Fernhout – 2.5.6 Woocommerce Products Per Page: by Jeroen Sormani – 1.2.6 WooCommerce Stock Manager: by Vladislav Musílek – 1.2.3 – Not tested with the active version of WooCommerce WooCommerce: by Automattic – 3.3.3 WordPress Importer: by wordpressdotorg – 0.6.3 Yoast SEO: by Team Yoast – 6.3.1 WP Rocket: by WP Media – 2.11.6 WP Overnight Sidekick: by Jeremiah Prummer Ewout Fernhout Michael Kluver – 2.0.3 WPSiteSync for Content: by WPSiteSync – 1.3.3 ### Settings ### API Enabled: ? Force SSL: – Currency: GBP (£) 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) ### WC Pages ### Shop base: #45 - /store/ Basket: #1051 - /cart/ Checkout: #1053 - /checkout/ My account: #1049 - /my-account/ Terms and conditions: #1055 - /terms-and-conditions/ ### Theme ### Name: Extra Child Theme Version: 1.0.5.2 Author URL: https://www.pecs.com Child Theme: ? Parent Theme Name: Extra Parent Theme Version: 2.0.104 Parent Theme Author URL: https://www.elegantthemes.com WooCommerce Support: ? ### Templates ### Overrides: ExtraChild/woocommerce/cart/cart-empty.php
And here’s our rules:
UK Shipping: https://pecs.com/global-data/rules-uk.png EU Shipping: https://pecs.com/global-data/rules-eu.png International Shipping: https://pecs.com/global-data/rules-int.png
Shipping is set as not taxed, though products are set to have prices exclusive of tax. We have to keep the shipping without tax and flat rate total with VAT already included because of an issue with a different plugin removing taxes from shipping when it shouldn’t. Not sure if that’s a factor but we’ve had that set for a while and as far as I know it wasn’t an issue originally.
- This reply was modified 6 years, 8 months ago by Jan Dembowski.
- This reply was modified 6 years, 8 months ago by Jan Dembowski. Reason: Fixed formatting
Forum: Plugins
In reply to: [Variation Swatches for WooCommerce] Not PHP 7 compatibleWe are having the same problem. No reaction from clicking on the swatches ever since upgrading to php 7. Customers can no longer buy variable products, so we’ve disabled the plugin for now until this is fixed.
Forum: Plugins
In reply to: [Sticky Menu & Sticky Header] Doesn’t work in EdgeSorry, you replied before I had a chance to update!
I ended up switching to another plugin; had some problems with how the theme laid out the header and just ended up replacing the whole menu for simplicity’s sake. I am bookmarking this plugin for other sites for future use, though! ??
Got it, there was a plugin that helped me update Jquery. Seems to work now, I just have to get the default sample messages turned off now. Thanks!
I have absolutely no idea how to update jquery on my website; I’ll have to look into it, thanks!