woocommerce / woocommerce-square

Square POS and Payments Integration
https://woo.com/products/square
Other
10 stars 4 forks source link

Save changes doesn't reflect on Square #176

Closed ronbalid closed 3 weeks ago

ronbalid commented 2 months ago

Prerequisites

Describe the bug

I'm trying to disable the square integration to sandbox and change the location and the sync settings but when I hit save changes it reloads and still go back to the old setting. I tried it multiple times still the same no changes made.

Expected behavior

It should reflect the changes I made on the settings.

Actual behavior

The changes I made on the square settings on woocommerce doesn't get saved and it just reloads after I hit the "save changes" button then the changes I made on the settings is not appearing.

Steps to reproduce

  1. Change any setting on the square tab on woocommerce.
  2. hit save changes.

WordPress Environment

System Status Report ``` ### WordPress Environment ### WordPress address (URL): [Redacted] Site address (URL): [Redacted] WC Version: 9.0.2 Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site. Action Scheduler Version: ✔ 3.7.4 Log Directory Writable: ✔ WP Version: 6.5.5 WP Multisite: – WP Memory Limit: 2 GB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: ✔ ### Server Environment ### Server Info: LiteSpeed PHP Version: 8.0.30 PHP Post Max Size: 2 GB PHP Time Limit: 120 PHP Max Input Vars: 5000 cURL Version: 7.87.0 OpenSSL/1.1.1w SUHOSIN Installed: – MySQL Version: 10.11.8-MariaDB-cll-lve Max Upload Size: 2 GB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### [REDACTED] ### Post Type Counts ### attachment: 337 customize_changeset: 2 elementor_library: 28 elementor-hf: 4 nav_menu_item: 50 oembed_cache: 2 page: 78 post: 43 product: 85 product_variation: 27 revision: 4358 shop_order: 4 wp_font_face: 39 wp_font_family: 13 wp_global_styles: 2 wp_navigation: 1 wp_template: 1 wp_template_part: 2 wpcode: 4 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (23) ### All-in-One WP Migration: by ServMask – 7.84 Canal: by Canal – 1.2.1 Elementor: by Elementor.com – 3.22.3 Flexible Shipping: by Octolize – 4.25.2 Force Regenerate Thumbnails: by Exactly WWW – 2.1.4 Google Listings and Ads: by WooCommerce – 2.7.6 Site Kit by Google: by Google – 1.130.0 Happy Elementor Addons: by Leevio – 3.11.2 Elementor Header & Footer Builder: by Brainstorm Force Nikhil Chavan – 1.6.36 WPCode Lite: by WPCode – 2.1.14 LeadConnector: by LeadConnector – 1.9 LiteSpeed Cache: by LiteSpeed Technologies – 6.2.0.1 Meta pixel for WordPress: by Facebook – 3.0.16 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.24.4 WooCommerce.com Update Manager: by Automattic – 1.0.3 WooPayments: by WooCommerce – 7.9.0 WooCommerce Shipping & Tax: by WooCommerce – 2.6.1 WooCommerce Shipment Tracking: by WooCommerce – 2.5.0 WooCommerce Square: by WooCommerce – 4.7.0 WooCommerce: by Automattic – 9.0.2 Yoast SEO Premium: by Team Yoast – 23.0 Yoast SEO: by Team Yoast – 23.0 WPS Hide Login: by WPServeur NicolasKulka wpformation – 1.9.16.7 ### Inactive Plugins (0) ### ### Dropin Plugins () ### object-cache.php: object-cache.php ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) 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: ✔ Enforce Approved Product Download Directories: ✔ HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – ### Logging ### Enabled: ✔ Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 days Level threshold: – Log directory size: 1 MB ### WC Pages ### Shop base: woocommerce/woocommerce#786 - /shop/ Cart: woocommerce/woocommerce#5462 - /cart/ Checkout: woocommerce/woocommerce#5463 - /checkout/ My account: woocommerce/woocommerce#5508 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Twenty Twenty-Four Version: 1.1 Author URL: https://wordpress.org 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: ❌ Not declared ### Templates ### Overrides: /home/u245021256/domains/discovherhealth.com/public_html/wp-content/plugins/woocommerce/templates/block-notices/error.php /home/u245021256/domains/discovherhealth.com/public_html/wp-content/plugins/woocommerce/templates/block-notices/notice.php /home/u245021256/domains/discovherhealth.com/public_html/wp-content/plugins/woocommerce/templates/block-notices/success.php ### WooPayments ### Version: 7.9.0 Connected to WPCOM: Yes WPCOM Blog ID: 214964358 Account ID: acct_1PVf42FhsyaDKtSY Payment Gateway: ❌ Needs setup Test Mode: Disabled Enabled APMs: card WooPay: Not eligible Apple Pay / Google Pay: Enabled (product,cart,checkout) Fraud Protection Level: basic Multi-currency: Enabled Auth and Capture: Enabled Documents: Disabled Logging: Disabled ### Square ### Environment: Production Tokenization Enabled: ✔ Debug Mode: Off ### Cash App Pay (Square) ### Environment: Production Debug Mode: Off ### Gift Cards (Square) ### Environment: Debug Mode: Off ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customize-store customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks product-custom-fields remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience pattern-toolkit-full-composability product-pre-publish-modal settings async-product-editor-category-field launch-your-store product-editor-template-system Daily Cron: ✔ Next scheduled: 2024-07-11 15:53:59 +00:00 Options: ✔ Notes: 119 Onboarding: skipped ### Action Scheduler ### Complete: 1,968 Oldest: 2024-06-10 04:01:54 +0000 Newest: 2024-07-10 19:24:03 +0000 Failed: 222 Oldest: 2023-01-20 01:13:28 +0000 Newest: 2024-07-10 19:22:01 +0000 Pending: 7 Oldest: 2024-07-10 19:38:02 +0000 Newest: 2024-07-12 21:07:29 +0000 ### Status report information ### Generated at: 2024-07-10 19:36:44 +00:00 ```

Isolating the problem

adimoldovan commented 1 month ago

@ronbalid Thank you for reporting this. This is the repository for WooCommerce core, and your issue looks like a support request for WooCommerce Square. I'll transfer this issue to that repository.

jeffpaul commented 1 month ago

@qasumitbagthariya are you able to reproduce this issue?

qasumitbagthariya commented 1 month ago

@ronbalid Thanks for the reporting.

I have attempted several times with different setups but I am unable to reproduce the issue you mentioned. To better understand the problem, could you please share the environment you are using, The Square version you are currently on?

If possible, could you also provide a video demonstrating the issue? This would help us identify and address the problem more effectively.

https://github.com/user-attachments/assets/6311a536-6d3c-462d-90a9-8728d3350925

Testing Environment

- WordPress: 6.6.1 - Theme: Twenty Twenty-Four 1.2 - WooCommerce - 9.1.4 - PHP: 8.0.30 - Web Server: Nginx 1.20.2 - Browser: Chrome - OS: macOS Ventura 13.3
jeffpaul commented 3 weeks ago

Closing as not reproducible.