woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
314 stars 113 forks source link

Custom fields does not display the updated date on the first run #14313

Open irfano opened 2 weeks ago

irfano commented 2 weeks ago

Describe the bug When opening custom fields, they are updated in the background but still display outdated information. Opening them a second time shows the updated data.

To Reproduce Steps to reproduce the behavior:

  1. Open wp-admin on the web and make changes to custom fields of an order.
  2. Launch the app.
  3. Go to "Orders".
  4. Open the same order from step 1.
  5. Tap "View Custom Fields".
  6. Check if the updated custom fields are displayed.
  7. Navigate back and repeat step 5.

Screenshots

https://github.com/user-attachments/assets/74e51500-b92c-418c-a7d6-84a152ea2666

Expected behavior Updated custom fields should be displayed on the first opening.

Isolating the problem (mark completed items with an [x]):

Mobile Environment Please include:

WordPress Environment

``` ### System Status Report generated via the WooCommerce iOS app ### ### WordPress Environment ### WordPress address (URL): https://irfanwoo.wpcomstaging.com Site address (URL): https://irfanwoo.wpcomstaging.com WC Version: 9.3.3 Log Directory Writable: ✔ WP Version: 6.6.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: ✔ ### Server Environment ### Server Info: nginx PHP Version: 8.1.30 PHP Post Max Size: 2 GB PHP Time Limit: 1200 PHP Max Input Vars: 6144 cURL Version: 8.10.1, OpenSSL/3.0.14 SUHOSIN Installed: – MySQL Version: 10.6.18-MariaDB-log Max Upload Size: 2 GB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 9.3.3 Total Database Size: 26.90MB Database Data Size: 15.71MB Database Index Size: 11.19MB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.14MB + Index: 0.16MB + Engine InnoDB wp_woocommerce_sessions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_automatewoo_customers: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_automatewoo_guest_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_bis_activity: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_posts: Data: 0.27MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_prl_frequencies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_tags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_snippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wpc_accesslocks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 2.17MB + Index: 0.16MB + Engine InnoDB wp_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_automatewoo_queue_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_newsletters: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_prl_deployments: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_actionscheduler_actions: Data: 6.05MB + Index: 4.64MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_prl_generator_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_automatewoo_abandoned_carts: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_woocommerce_bundled_items: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_scheduled_tasks: Data: 0.08MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_prl_amplifier_cache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_subscribers: Data: 0.02MB + Index: 0.23MB + Engine InnoDB wp_woocommerce_gc_cardsmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gc_cards: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_automatewoo_log_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_automation_versions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_orders: Data: 0.05MB + Index: 0.11MB + Engine InnoDB wp_automatewoo_queue: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_gla_budget_recommendations: Data: 0.19MB + Index: 0.14MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_gc_activity: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_prl_tracking_conversions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_automation_triggers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_actionscheduler_logs: Data: 1.50MB + Index: 1.83MB + Engine InnoDB wp_mailpoet_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_orders_meta: Data: 0.08MB + Index: 0.14MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_automation_run_subjects: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_jetpack_sync_queue: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_mailpoet_subscriber_tag: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_comments: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_woocommerce_bis_notificationsmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_postmeta: Data: 0.20MB + Index: 0.09MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_gla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_automation_run_logs: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_bundled_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_bis_notifications: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_mailpoet_automations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wpc_login_fails: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_automatewoo_guests: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_automation_runs: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_wc_order_bundle_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_automatewoo_customer_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_automatewoo_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_prl_deploymentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ### Post Type Counts ### attachment: 31 global_product_addon: 1 jetpack_migration: 2 jp_img_sitemap: 6 jp_sitemap: 6 jp_sitemap_master: 6 mailpoet_page: 1 page: 7 post: 3 product: 24 product_variation: 5 shop_coupon: 3 shop_order_placehold: 131 wp_global_styles: 2 wp_navigation: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (33) ### Advanced Google reCAPTCHA: by WebFactory Ltd - 1.25 Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team - 5.3.3 AutomateWoo: by WooCommerce - 6.1.0 Blaze Ads: by Automattic - 0.3.1 Code Snippets: by Code Snippets Pro - 3.6.5.1 Crowdsignal Forms: by Automattic - 1.7.2 Disable Application Passwords: by Jeff Starr - 2.1 Facebook for WooCommerce: by Facebook - 3.2.10 Google for WooCommerce: by WooCommerce - 2.8.6 Gutenberg: by Gutenberg Team - 19.5.1 Hello Dolly: by Matt Mullenweg - 1.7.2 Jetpack: by Automattic - 14.0-a.11 Layout Grid: by Automattic - 1.8.4 MailPoet Premium: by MailPoet - 5.3.0 MailPoet: by MailPoet - 5.3.5 Page Optimize: by Automattic - 0.5.6 Pinterest for WooCommerce: by WooCommerce - 1.4.11 Crowdsignal Polls & Ratings: by Automattic, Inc. - 3.1.2 TikTok: by TikTok - 1.2.10 Woo AI: by WooCommerce - 0.6.0 WooCommerce.com Update Manager: by Automattic - 1.0.3 WooCommerce Back In Stock Notifications: by Woo - 2.0.4 WooCommerce Brands: by WooCommerce - 1.7.6 WooCommerce Gift Cards: by Woo - 2.1.0 Google Analytics for WooCommerce: by WooCommerce - 2.1.7 WooCommerce Min/Max Quantities: by Woo - 5.0.3 Woo Product Add-ons: by Woo - 7.0.1 WooCommerce Product Bundles: by Woo - 8.1.2 WooCommerce Product Recommendations: by Woo - 4.1.0 WooCommerce Shipping & Tax: by WooCommerce - 2.8.3 WooCommerce Shipment Tracking: by WooCommerce - 2.5.2 WooCommerce Subscriptions: by WooCommerce - 6.5.0 WooCommerce: by Automattic - 9.3.3 ### Inactive Plugins (12) ### Avalara AvaTax: by Avalara - 2.8.4 Classic Editor: by WordPress Contributors - 1.6.5 TaxJar - Sales Tax Automation for WooCommerce: by TaxJar - 4.2.3 WooCommerce Australia Post Shipping: by WooCommerce - 2.6.4 WooCommerce Canada Post Shipping: by WooCommerce - 3.0.2 WooCommerce EU VAT Number: by WooCommerce - 2.9.8 WooCommerce FedEx Shipping: by WooCommerce - 4.1.2 WooCommerce Royal Mail: by WooCommerce - 3.4.2 WooCommerce UPS Shipping: by WooCommerce - 3.7.2 WooCommerce USPS Shipping: by WooCommerce - 5.0.1 WooPayments: by WooCommerce - 8.4.0 WPS Hide Login: by WPServeur, NicolasKulka, wpformation - 1.9.17.1 ### Dropin Plugins (2) ### advanced-cache.php: advanced-cache.php object-cache.php: Memcached ### Must Use Plugins (1) ### wpcomsh-loader.php: wpcomsh-loader.php ### Settings ### API Enabled: – Force SSL: – Currency: TRY Currency Position: left Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: grouped (grouped) external (external) variable-subscription (variable subscription) variable (variable) subscription (subscription) bundle (bundle) simple (simple) Taxonomies: Product Visibility: featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-4 (rated-4) rated-3 (rated-3) exclude-from-search (exclude-from-search) rated-5 (rated-5) rated-2 (rated-2) exclude-from-catalog (exclude-from-catalog) Connected to WooCommerce.com: ✔ ### WC Pages ### Shop base: #7 Cart: #8 Checkout: #9 My account: #10 Terms and conditions: ❌ Page not set ### Theme ### Name: Tsubaki Version: 1.3.0 Author URL: https://automattic.com/ 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: ✔ WooCommerce files: ✔ Outdated templates: – ### Templates ### Overrides: /wordpress/plugins/woocommerce/9.3.3/templates/block-notices/error.php /wordpress/plugins/woocommerce/9.3.3/templates/block-notices/notice.php /wordpress/plugins/woocommerce/9.3.3/templates/block-notices/success.php /wordpress/themes/premium/tsubaki/parts/mini-cart.html /wordpress/themes/premium/tsubaki/templates/archive-product.html /wordpress/themes/premium/tsubaki/templates/product-search-results.html /wordpress/themes/premium/tsubaki/templates/single-product.html /wordpress/themes/premium/tsubaki/templates/taxonomy-product_cat.html /wordpress/themes/premium/tsubaki/templates/taxonomy-product_tag.html ### Status report information ### Generated at: 2024-11-05 14:11:15 +0300 ```
dangermattic commented 2 weeks ago

🚫 Please add a type label (e.g. type: enhancement) and a feature label (e.g. feature: stats) to this issue.