• Resolved cousinvinnymarketing

    (@cousinvinnymarketing)


    I cannot update variable product (parent product) stock status from out of stock to in stock. Simple products work without issue. I don’t use any inventory managers and am slowing going through turning on/off plugins. Any help is greatly appreciated!

    While using my-domain.com/wp-json/wc/v3/products/ID, I’m able to get a 200 response, but stock_status remains unchanged while others fields (see below) update. I’ve tried:

    {
    	"stock_status": "instock"
    }
    {
    	"stock_status": instock // Read somewhere that Woocommerce Product Bundles can mess with the string requirement and to remove the quotes. Also deactivated this plugin.
    }
    {
    	"manage_stock": false,
    	"stock_status": "instock" // also tried without quotes
    }
    {
    	"stock_quantity": 0,
    	"manage_stock": false,
    	"stock_status": "instock" // also tried without quotes
    }
    ### WordPress Environment ###
    
    WordPress address (URL): hxxps://my-staging-site.flywheelstaging.com
    Site address (URL): hxxps://my-staging-site.flywheelstaging.com
    WC Version: 6.8.2
    REST API Version: ? 6.8.2
    WC Blocks Version: ? 8.0.0
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.0.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: –
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Flywheel/5.1.0
    PHP Version: 7.4.30
    PHP Post Max Size: 300 MB
    PHP Time Limit: 178
    PHP Max Input Vars: 8000
    cURL Version: 7.68.0
    OpenSSL/1.1.1f
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.38-google
    Max Upload Size: 300 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.8.2
    WC Database Prefix: wp_vber1j8hgv_
    Total Database Size: 647.97MB
    Database Data Size: 449.34MB
    Database Index Size: 198.63MB
    wp_vber1j8hgv_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_order_items: Data: 7.52MB + Index: 3.52MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_order_itemmeta: Data: 139.67MB + Index: 57.14MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_payment_tokens: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_payment_tokenmeta: Data: 0.22MB + Index: 0.22MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_actionscheduler_actions: Data: 2.52MB + Index: 2.27MB + Engine InnoDB
    wp_vber1j8hgv_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_actionscheduler_logs: Data: 1.52MB + Index: 1.92MB + Engine InnoDB
    wp_vber1j8hgv_ac_segments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_admin_columns: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_affiliatemeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_affiliates: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_campaigns: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_coupons: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_creatives: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_customermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_customers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_direct_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_payouts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_referralmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_referrals: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_rest_consumers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_sales: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_affiliate_wp_visits: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_automatewoo_abandoned_carts: Data: 0.06MB + Index: 0.08MB + Engine InnoDB
    wp_vber1j8hgv_automatewoo_customers: Data: 0.14MB + Index: 0.39MB + Engine InnoDB
    wp_vber1j8hgv_automatewoo_customer_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_automatewoo_events: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_vber1j8hgv_automatewoo_guests: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_vber1j8hgv_automatewoo_guest_meta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_automatewoo_logs: Data: 0.31MB + Index: 0.56MB + Engine InnoDB
    wp_vber1j8hgv_automatewoo_log_meta: Data: 1.52MB + Index: 3.03MB + Engine InnoDB
    wp_vber1j8hgv_automatewoo_queue: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_vber1j8hgv_automatewoo_queue_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_automatewoo_referrals: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_vber1j8hgv_automatewoo_referral_advocate_keys: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_automatewoo_referral_invites: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_vber1j8hgv_cartflows_visits: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_cartflows_visits_meta: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_commentmeta: Data: 0.20MB + Index: 0.25MB + Engine InnoDB
    wp_vber1j8hgv_comments: Data: 21.53MB + Index: 10.09MB + Engine InnoDB
    wp_vber1j8hgv_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_e_submissions: Data: 0.19MB + Index: 0.39MB + Engine InnoDB
    wp_vber1j8hgv_e_submissions_actions_log: Data: 0.09MB + Index: 0.20MB + Engine InnoDB
    wp_vber1j8hgv_e_submissions_values: Data: 0.22MB + Index: 0.19MB + Engine InnoDB
    wp_vber1j8hgv_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_gf_entry: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_gf_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_vber1j8hgv_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_gf_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_hurrytimer_evergreen: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_ifso_daily_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_ifso_local_user: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_ipqs_email_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_options: Data: 5.52MB + Index: 0.52MB + Engine InnoDB
    wp_vber1j8hgv_oses_attachments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_oses_clicks: Data: 6.09MB + Index: 1.44MB + Engine InnoDB
    wp_vber1j8hgv_oses_emails: Data: 118.52MB + Index: 0.47MB + Engine InnoDB
    wp_vber1j8hgv_oses_email_attachments: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_oses_failures: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_oses_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_postmeta: Data: 102.61MB + Index: 85.30MB + Engine InnoDB
    wp_vber1j8hgv_posts: Data: 11.52MB + Index: 4.98MB + Engine InnoDB
    wp_vber1j8hgv_po_plugins: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_vber1j8hgv_reviewx_criterias: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_reviewx_import_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_reviewx_process_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_reviewx_reminder_email: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_snippets: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_term_relationships: Data: 0.27MB + Index: 0.19MB + Engine InnoDB
    wp_vber1j8hgv_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_uap_action_log: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_vber1j8hgv_uap_action_logs_view: Data: 0.00MB + Index: 0.00MB + Engine
    wp_vber1j8hgv_uap_action_log_meta: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_vber1j8hgv_uap_api_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_uap_api_logs_view: Data: 0.00MB + Index: 0.00MB + Engine
    wp_vber1j8hgv_uap_closure_log: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_vber1j8hgv_uap_closure_log_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_vber1j8hgv_uap_recipe_log: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_vber1j8hgv_uap_recipe_logs_view: Data: 0.00MB + Index: 0.00MB + Engine
    wp_vber1j8hgv_uap_trigger_log: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_vber1j8hgv_uap_trigger_logs_view: Data: 0.00MB + Index: 0.00MB + Engine
    wp_vber1j8hgv_uap_trigger_log_meta: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_vber1j8hgv_usermeta: Data: 4.52MB + Index: 6.03MB + Engine InnoDB
    wp_vber1j8hgv_users: Data: 0.22MB + Index: 0.20MB + Engine InnoDB
    wp_vber1j8hgv_usin_events: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_usin_user_data: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    wp_vber1j8hgv_viwec_clicked: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_wa_confirmationlinks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_wa_log: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_wa_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_wc_customer_lookup: Data: 0.16MB + Index: 0.14MB + Engine InnoDB
    wp_vber1j8hgv_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_wc_order_bundle_lookup: Data: 0.13MB + Index: 0.25MB + Engine InnoDB
    wp_vber1j8hgv_wc_order_coupon_lookup: Data: 0.09MB + Index: 0.13MB + Engine InnoDB
    wp_vber1j8hgv_wc_order_product_lookup: Data: 10.52MB + Index: 13.06MB + Engine InnoDB
    wp_vber1j8hgv_wc_order_stats: Data: 2.52MB + Index: 2.27MB + Engine InnoDB
    wp_vber1j8hgv_wc_order_tax_lookup: Data: 0.38MB + Index: 0.30MB + Engine InnoDB
    wp_vber1j8hgv_wc_product_attributes_lookup: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
    wp_vber1j8hgv_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_wc_product_meta_lookup: Data: 0.17MB + Index: 0.41MB + Engine InnoDB
    wp_vber1j8hgv_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_wffilemods: Data: 0.30MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_wfknownfilelist: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_wflogins: Data: 0.20MB + Index: 0.06MB + Engine InnoDB
    wp_vber1j8hgv_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vber1j8hgv_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_vber1j8hgv_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_vber1j8hgv_wfstatus: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    wp_vber1j8hgv_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_bundled_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_woocommerce_bundled_items: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_vber1j8hgv_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    acf-field: 7
    acf-field-group: 8
    attachment: 816
    automation-workflow: 1
    aw_workflow: 42
    brizy_template: 3
    brizy-global-block: 3
    brizy-layout: 2
    brizy-project: 1
    brizy-saved-block: 5
    cartflows_flow: 7
    cartflows_step: 12
    custom_css: 3
    elementor_library: 23
    hurrytimer_countdown: 1
    ifso_triggers: 2
    mailpoet_page: 1
    nab_experiment: 2
    nav_menu_item: 12
    page: 26
    post: 1
    product: 735
    product_variation: 702
    revision: 1331
    shop_coupon: 313
    shop_order: 15689
    shop_order_refund: 44
    shop_subscription: 16
    uo-action: 1
    uo-recipe: 1
    uo-trigger: 1
    usin_note: 2
    viwec_template: 14
    viwec_template_block: 2
    wafs: 1
    wc_membership_plan: 1
    wp_block: 1
    wp_global_styles: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (43) ###
    
    Admin Columns Pro - WooCommerce: by AdminColumns.com – 3.7.3
    Admin Columns Pro: by AdminColumns.com – 5.7.3
    Advanced Custom Fields PRO: by Delicious Brains – 5.12.2
    AffiliateWP: by AffiliateWP – 2.9.4
    AffiliateWP - Affiliate Landing Pages: by Sandhills Development
    LLC – 1.2
    
    AffiliateWP - Affiliate Portal: by Sandhills Development
    LLC – 1.1.3
    
    AffiliateWP - Affiliate QR Codes: by Sandhills Development
    LLC – 1.0.3
    
    AffiliateWP - Custom Affiliate Slugs: by Sandhills Development
    LLC – 1.2
    
    AffiliateWP - Direct Link Tracking: by Sandhills Development
    LLC – 1.3
    
    AffiliateWP - Store Credit: by Sandhills Development
    LLC – 2.5
    
    AffiliateWP - Tiered Rates: by Sandhills Development
    LLC – 1.3
    
    AutomateWoo: by WooCommerce – 5.5.12
    Code Snippets: by Code Snippets Pro – 3.2.0
    Custom API for WP: by miniOrange – 2.5.0
    Elementor Pro: by Elementor.com – 3.7.3
    Elementor: by Elementor.com – 3.6.8
    Freesoul Deactivate Plugins: by Jose Mortellaro – 1.9.2.2
    JSM's Show User Metadata: by JS Morisset – 3.0.4
    Local Google Fonts: by EverPress – 0.15
    Members: by MemberPress – 3.2.1
    Nelio A/B Testing: by Nelio Software – 5.3.3
    ReviewX Pro: by WPDeveloper – 1.3.5
    ReviewX: by WPDeveloper – 1.5.1
    Stackable - Gutenberg Blocks (Premium): by Gambit Technologies
    Inc – 3.1.1
    
    User Menus: by Code Atlantic – 1.2.9
    Users Insights: by Pexeto – 4.2.0
    Visibility Logic for Elementor: by StaxWP – 2.3.2
    YellowPencil Pro: by WaspThemes – 7.5.7
    WooCommerce Dynamic Pricing & Discounts: by RightPress – 2.4.4
    Variation Swatches for WooCommerce - Pro: by Emran Ahmed – 1.1.18
    Variation Swatches for WooCommerce: by Emran Ahmed – 1.1.19
    WooCommerce Cart popup premium: by XootiX – 1.6
    WooCommerce Conditional Shipping and Payments: by WooCommerce – 1.12.1
    WooCommerce Authorize.Net Gateway: by SkyVerge – 3.6.2
    WooCommerce New Customer Report: by SkyVerge – 1.1.0
    Advanced Order Export For WooCommerce (Pro): by AlgolPlus – 3.3.2
    WooCommerce Print Invoices/Packing Lists: by SkyVerge – 3.11.4
    WooCommerce Smart Coupons: by StoreApps – 5.6.0
    WooCommerce Subscriptions: by WooCommerce – 4.4.0
    WooCommerce: by Automattic – 6.8.2 (update to version 6.9.4 is available)
    WP Admin Cleaner: by dPlugins – 1.3.0
    Asset CleanUp: Page Speed Booster: by Gabe Livan – 1.3.8.5
    WP Offload SES: by Delicious Brains – 1.5.6
    
    ### Inactive Plugins (1) ###
    
    WooCommerce Product Bundles: by WooCommerce – 6.14.0
    
    ### Dropin Plugins (1) ###
    
    db-error.php: db-error.php
    
    ### Must Use Plugins (2) ###
    
    freesoul deactivate plugins [fdp]: by Jose Mortellaro – 1.9.2.2
    Local by Flywheel Relative URL (for Live Links): by Flywheel – 1.1
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: bundle (bundle)
    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: –
    
    ### WC Pages ###
    
    Shop base: ? Page not set
    Cart: ? Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block.
    Checkout: ? Page does not contain the [woocommerce_checkout] shortcode or the woocommerce/checkout block.
    My account: #9 - /my-account/
    Terms and conditions: #5644 - /terms-of-service/
    
    ### Theme ###
    
    Name: Grub Boxx 2.0
    Version: 2.0.1643053737
    Author URL: https://www.grubboxx.com
    Child Theme: ?
    Parent Theme Name: Hello Elementor
    Parent Theme Version: 2.6.1
    Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: /www/wp-content/plugins/reviewx/partials/storefront/myaccount/order-table.php
    
    ### Subscriptions ###
    
    WCS_DEBUG: ? No
    Subscriptions Mode: ? Staging
    Subscriptions Live URL: https://grubboxx.com
    Subscription Statuses: wc-active: 15
    wc-on-hold: 1
    
    WooCommerce Account Connected: ? No
    Report Cache Enabled: ? Yes
    Cache Update Failures: ? 0 failure
    
    ### Store Setup ###
    
    Country / State: USA — California
    
    ### Subscriptions by Payment Gateway ###
    
    Authorize.Net Credit Card: wc-active: 14
    wc-on-hold: 1
    
    ### Payment Gateway Support ###
    
    Authorize.Net Credit Card: products
    card_types
    payment_form
    inline
    lightbox
    tokenization
    token_editor
    charge
    charge-virtual
    authorization
    capture_charge
    customer_decline_messages
    refunds
    voids
    customer_id
    add_payment_method
    apple_pay
    subscriptions
    subscription_suspension
    subscription_cancellation
    subscription_reactivation
    subscription_amount_changes
    subscription_date_changes
    multiple_subscriptions
    subscription_payment_method_change_customer
    subscription_payment_method_change_admin
    
    ### Authorize.Net Credit Card ###
    
    Environment: Production
    Tokenization Enabled: 
    Debug Mode: Off
    Webhooks Enabled: 
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    wc-pay-promotion
    wc-pay-welcome-page
    wc-pay-subscriptions-page
    
    Disabled Features: minified-js
    settings
    
    Daily Cron: ? Next scheduled: 2022-09-27 21:02:57 -07:00
    Options: ?
    Notes: 6
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 5,099
    Oldest: 2022-09-11 10:22:36 -0700
    Newest: 2022-09-27 13:36:07 -0700
    
    Failed: 207
    Oldest: 2020-12-30 10:15:05 -0800
    Newest: 2022-09-27 13:25:56 -0700
    
    Pending: 21
    Oldest: 2022-09-27 13:37:07 -0700
    Newest: 2024-11-22 19:36:09 -0800
    
    ### Smart Coupons related settings ###
    
    Number of coupons to show: 5
    Number of characters in auto-generated coupon code: 
    Valid order status for auto-generating coupon: processing
    completed
    
    Include tax in the amount of the generated gift card: no
    Deduct credit/gift before doing tax calculations: no
    Gift Card discount is inclusive of tax: no
    Automatic deletion: no
    Coupon emails: yes
    Printing coupons: no
    Sell gift cards at less price?: yes
    Use gift card applied in first subscription order for subsequent renewals until credit reaches zero: yes
    Renewal orders should not generate coupons even when they include a product that issues coupons: no
    Allow sending of coupons to others: yes
    Allow schedule sending of coupons?: yes
    Combine emails: yes
    Auto generated coupon email: yes
    Combined auto generated coupons email: yes
    Acknowledgement email: yes
    Enable taxes: yes
    Prices entered with tax: no
    Rounding: no
    Display prices in the shop: excl
    Display prices during cart and checkout: excl
    Display tax totals: single
    Enable the use of coupon codes: yes
    Calculate coupon discounts sequentially: no
    Account endpoints > Coupons: wallet
    
    ### Status report information ###
    
    Generated at: 2022-09-27 13:36:39 -07:00
Viewing 5 replies - 1 through 5 (of 5 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @cousinvinnymarketing 👋

    Thank you for reaching out.

    I cannot update variable product (parent product) stock status from out of stock to in stock

    While you have a stock status field in a simple product, in a variable product there is no stock status field to be updated. This is why REST API doesn’t update the stock status on a variable product.

    Simple Product

    Image link:https://snipboard.io/4tOo3L.jpg

    Variable Product

    Image link: https://snipboard.io/EW9le3.jpg

    Let me know if you have any questions.

    Thread Starter cousinvinnymarketing

    (@cousinvinnymarketing)

    Hey Mirko,

    That logic doesn’t really make sense since the API documents stock statuses for both for product variations and products. I can quick-edit a variable product parent and change the stock status. This also affects all variable products.

    https://snipboard.io/g590V6.jpg

    The API documentation makes no mention of this limitation.

    Saif

    (@babylon1999)

    Hello @cousinvinnymarketing,

    That logic doesn’t really make sense since the API documents stock statuses for both for product variations and products.

    I didn’t find where this is mentioned in the Products tab, can you please send a screenshot of it?

    For products with variables, you can use this: https://woocommerce.github.io/woocommerce-rest-api-docs/?shell#update-a-product-variation

    Hope this helps! ??

    Thread Starter cousinvinnymarketing

    (@cousinvinnymarketing)

    I didn’t find where this is mentioned in the Products tab, can you please send a screenshot of it?

    I was referencing the fact that you have the option to set a stock status for Products (which, the documentation doesn’t specify that a variable parent is considered a product or a variation) and Variations.

    I’d expect that if I can edit a Variable Product in the back end and have it update all the variations (my screenshot above), the same behavior would occur in the API. I’ve made this a recommendation in the GitHub. At minimum, users should be receiving an error, not a 200 response when trying this.

    Saif

    (@babylon1999)

    A little bit of misunderstanding on my part. ??

    You did the right thing by moving to GH, since nothing can be added here I will go ahead and mark this as solved.

    Feel free to open a new thread if you have any other questions.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t Update Stock Status via API’ is closed to new replies.