• Resolved smrezvani

    (@smrezvani)


    Hi

    I add some new stock status like “Pre Order, Coming Soon and Contact Us” to WooCommerce product settings. This status showing up in front end and backend and everything work fine.

    The problem is if I want to for example change the status to “Pre Order” I had to uncheck the “Enable stock management at product level” and the product quantity will be disable. In this case, it’s impossible to set the quantity number for “Pre Order” products.

    So how can I set the quantity with the custom status?

    • This topic was modified 3 years, 5 months ago by smrezvani.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I add some new stock status like “Pre Order, Coming Soon and Contact Us” to WooCommerce product settings.

    May I ask how you added the custom status? Are you using a plugin?

    Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Thread Starter smrezvani

    (@smrezvani)

    Hi Maykato
    I add custom status with WooCommerce filters in child-theme with some other options based on my needs. So with the new options in WooCommerce product page, the status will update with “set_stock_status”.

    Let me explain more:
    I add a new tab on single product page with 4 checkbox. based on some conditions(selected option) the product status will updated to “Pre Order” or “Coming Soon”. For Pre order I need to have quantity to manage the max number of accepted orders. So I had to keep the “stock management at product level” enable to control the stock number. In this case the WooCommerce default stock status is “In Stock”. and thats the problem. So I need to control the stock status manually when the “stock management at product level” is enable.

    The system report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://domain.com
    Site address (URL): https://domain.com
    WC Version: 5.7.1
    REST API Version: ? 5.7.1
    WC Blocks Version: ? 5.7.2
    Action Scheduler Version: ? 3.2.1
    WC Admin Version: ? 2.6.5
    Log Directory Writable: ?
    WP Version: 5.8.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 7.4.22
    PHP Post Max Size: 64 MB
    PHP Time Limit: 360
    PHP Max Input Vars: 1000
    cURL Version: 7.68.0
    OpenSSL/1.1.1f
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.4.21-MariaDB-1:10.4.21+maria~focal-log
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.7.1
    WC Database Prefix: wp_
    Total Database Size: 4.69MB
    Database Data Size: 3.17MB
    Database Index Size: 1.52MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.09MB + Index: 0.17MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.11MB + Index: 0.11MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 2.05MB + Index: 0.03MB + Engine InnoDB
    wp_postmeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_posts: Data: 0.05MB + Index: 0.06MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 7
    page: 5
    product: 3
    revision: 3
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?Error messages should not be shown to visitors.
    
    ### Active Plugins (10) ###
    
    Salient WPBakery Page Builder: by Michael M - WPBakery.com | Modified by ThemeNectar – 6.6.0
    Maintenance: by WebFactory Ltd – 4.03
    Salient Core: by ThemeNectar – 1.8.3
    Salient Nectar Slider: by ThemeNectar – 1.7
    Salient Shortcodes: by ThemeNectar – 1.5
    Salient Widgets: by ThemeNectar – 1.2
    Advanced Editor Tools (previously TinyMCE Advanced): by Automattic – 5.6.0
    WooCommerce Composite Products: by SomewhereWarm – 8.2.0
    WooCommerce: by Automattic – 5.7.1
    Custom Product Tabs for WooCommerce: by YIKES
    Inc. – 1.7.7
    
    ### Inactive Plugins (0) ###
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: TRY (?)
    Currency Position: right_space
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 0
    Taxonomies: Product Types: composite (composite)
    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: #12 - /shop/
    Cart: #13 - /cart/
    Checkout: #14 - /checkout/
    My account: #15 - /my-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: Salient Child Theme
    Version: 1.0
    Author URL: https://themeforest.net/user/themenectar
    Child Theme: ?
    Parent Theme Name: Salient
    Parent Theme Version: 13.0.6
    Parent Theme Author URL: https://themeforest.net/user/themenectar
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: salient/woocommerce/cart/mini-cart.php
    salient/woocommerce/checkout/form-checkout.php
    salient/woocommerce/checkout/review-order.php
    salient/woocommerce/checkout/terms.php
    salient/woocommerce/content-product.php
    salient/woocommerce/content-single-product.php
    salient-child/woocommerce/loop/add-to-cart.php
    salient/woocommerce/loop/loop-start.php
    salient-child/woocommerce/loop/price.php
    salient/woocommerce/myaccount/form-login.php
    salient-child/woocommerce/single-product/add-to-cart/simple.php
    salient-child/woocommerce/single-product/price.php
    salient/woocommerce/single-product/product-image.php
    salient/woocommerce/single-product/rating.php
    salient/woocommerce/single-product/tabs/description.php
    salient/woocommerce/single-product/tabs/tabs.php
    salient/woocommerce/single-product/title.php
    salient/woocommerce/single-product-reviews.php
    
    ### Composite Products ###
    
    Database Version: 8.2.0
    Loopback Test: ?
    Template Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 349
    Oldest: 2021-09-13 08:53:54 +0000
    Newest: 2021-10-12 07:08:35 +0000
    
    ### Status report information ###
    
    Generated at: 2021-10-12 13:17:48 +00:00
    
    Thread Starter smrezvani

    (@smrezvani)

    To be clear I made an image:
    The “GG Setting” is my custom setting with 4 check box to make conditions and switch the status and the “Stock Status” should be available to select manually when the “Manage Stock” is checked.

    https://files.slack.com/files-pri/T1KAWSGKX-F02FW7WUS4Q/sample.jpg

    Hi @smrezvani,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the following places for more development-oriented questions:

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Different stock status with quantity’ is closed to new replies.