How to hide out of stock products on the store?
-
Hi,
All the products in my store are 1 SKU.
So the product shouldn’t be showing once someone purchases.
But it is still showing on the store page.
How do I hide it?Any code I could add in Code snippets or Plugin suggestions?
Thanks
-
Hello @leejay1,
Out of stock items can be hidden from the catalog by ticking this option in WooCommerce > Settings > Products > Inventory:
The “Inventory Options” section of the Configuring WooCommerce Settings documentation provides more details.
Cheers.
Hi Mirko
Thanks for your reply.
But it’s weird because the setting was like that already.
I have tested on a product with 1 SKU, purchased with a user account for testing purposes.The product is still showing on the shop page and in the WP admin Products tab.(still 1 SKU)
So you mean It’s supposed to be hidden when you configure the inventory settings?
What could be wrong in my case?Any ideas or suggestions are very welcome.
Thanks
Hi @leejay1
It’s supposed to be hidden when you configure the inventory settings? What could be wrong in my case?
Are your products variable products? If yes, are you managing stock on product level or on (parent) or variation level?
If the products are not variable products and your settings are already correct then I would recommend checking whether you have a caching plugin and then purging all cache from it. Next, you’ll want to configure the plugin not to cache the cart, checkout, and My Account pages. Here’s a helpful guide: https://docs.woocommerce.com/document/configuring-caching-plugins/
Let us know how it goes – we’ll be happy to assist further.
All the products are Simple product with 1 sku
I configured like this : https://prnt.sc/SLf-AXDt0GPv
but it shows an error “Invalid or duplicated SKU.”
and saved like this : https://prnt.sc/F9eoFcXgX5sC
What does that mean?
This is how I set in the Woocommerce inventory settings :
https://prnt.sc/yVFvp29FnZOPCould you please tell me
How to set this up if I want to make 1 SKU simple product?Thank you
Hello,
Invalid or duplicated SKU
This means you are attempting to add (or duplicate) another product with an SKU that already exists. SKUs are identifiers to your products, and you can use a new SKU in case you would like to add another product.Regarding the stock issue, 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”.?Also, please share a copy of any fatal error log found under
WooCommerce > System Status > Logs
(if available).Thanks.
### WordPress Environment ### WordPress address (URL): https://www.takemywardrobe.com Site address (URL): https://www.takemywardrobe.com WC Version: 6.3.1 REST API Version: ? 6.3.1 WC Blocks Version: ? 6.9.0 Action Scheduler Version: ? 3.4.0 WC Admin Version: ? 3.2.1 Log Directory Writable: ? WP Version: 5.9.2 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ? Language: en_AU External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.28 PHP Post Max Size: 256 MB PHP Time Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1l-fips SUHOSIN Installed: – MySQL Version: 5.7.32-35-log Max Upload Size: 256 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.3.1 WC Database Prefix: oms_ Total Database Size: 103.38MB Database Data Size: 97.50MB Database Index Size: 5.88MB oms_woocommerce_sessions: Data: 0.03MB + Index: 0.02MB + Engine InnoDB oms_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB oms_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB oms_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_woocommerce_order_itemmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB oms_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB oms_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB oms_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB oms_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB oms_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_actionscheduler_actions: Data: 0.11MB + Index: 0.13MB + Engine InnoDB oms_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_actionscheduler_logs: Data: 0.08MB + Index: 0.03MB + Engine InnoDB oms_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB oms_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB oms_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB oms_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB oms_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB oms_glsr_assigned_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_glsr_assigned_terms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_glsr_assigned_users: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_glsr_ratings: Data: 0.02MB + Index: 0.03MB + Engine InnoDB oms_jet_apartment_bookings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_jet_apartment_units: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_jet_post_types: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_jet_reviews: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_jet_review_comments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_jet_review_guests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_jet_review_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_jet_review_types: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_jet_smart_filters_indexer: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_jet_taxonomies: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_jet_widgets_styles: Data: 0.45MB + Index: 0.00MB + Engine InnoDB oms_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_mpcommision: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_mpfeedback: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_mporders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_mporders_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_mpsellerinfo: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_mpseller_asktoadmin: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_mpseller_asktoadmin_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_mpseller_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_mpseller_orders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_mp_notifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_options: Data: 11.03MB + Index: 0.20MB + Engine InnoDB oms_pbs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_postmeta: Data: 41.52MB + Index: 2.67MB + Engine InnoDB oms_posts: Data: 28.52MB + Index: 0.42MB + Engine InnoDB oms_pv_commission: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_seller_transaction: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_sgs_log_events: Data: 0.11MB + Index: 0.00MB + Engine InnoDB oms_sgs_log_visitors: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB oms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_termmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB oms_terms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB oms_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB oms_um_metadata: Data: 0.02MB + Index: 0.05MB + Engine InnoDB oms_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB oms_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB oms_wcmp_cust_answers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_wcmp_cust_questions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wcmp_products_map: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wcmp_shipping_zone_locations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wcmp_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wcmp_vendor_ledger: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wcmp_vendor_orders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_wcmp_visitors_stats: Data: 0.02MB + Index: 0.09MB + Engine InnoDB oms_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB oms_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB oms_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB oms_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB oms_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB oms_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB oms_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB oms_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB oms_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB oms_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB oms_wfconfig: Data: 0.09MB + Index: 0.00MB + Engine InnoDB oms_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wffilemods: Data: 9.52MB + Index: 0.00MB + Engine InnoDB oms_wfhits: Data: 0.11MB + Index: 0.05MB + Engine InnoDB oms_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB oms_wfknownfilelist: Data: 3.52MB + Index: 0.00MB + Engine InnoDB oms_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wflogins: Data: 0.06MB + Index: 0.03MB + Engine InnoDB oms_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB oms_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB oms_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB oms_wfstatus: Data: 0.17MB + Index: 0.13MB + Engine InnoDB oms_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB oms_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 504 custom_css: 4 customize_changeset: 4 dc_commission: 14 elementor_library: 25 elementor-hf: 1 envato_tk_import: 2 jet-engine: 6 jet-engine-booking: 6 jet-form-builder: 5 jet-menu: 41 jet-popup: 3 jet-smart-filters: 23 jet-theme-core: 1 jet-woo-builder: 47 list-an-items: 1 mastermega_content: 1 nav_menu_item: 150 oceanwp_library: 5 oembed_cache: 1 page: 24 piotnetforms: 1 post: 1 product: 94 revision: 2418 shop_order: 28 um_directory: 1 um_form: 3 wcmp_transaction: 6 wp_global_styles: 1 wpuf_forms: 2 wpuf_input: 9 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (39) ### Child Theme Configurator: by Lilaea Media – 2.5.8 Code Snippets: by Code Snippets Pro – 2.14.3 Multivendor Marketplace Solution for WooCommerce - WC Marketplace: by WC Marketplace – 3.8.10 Duplicate Menu: by Jonathan Christopher – 0.2.2 Elementor: by Elementor.com – 3.5.6 Essential Addons for Elementor: by WPDeveloper – 5.0.10 Frontend Reset Password: by Square One Media – 1.2 Elementor Header & Footer Builder: by Brainstorm Force Nikhil Chavan – 1.6.9 JetBlocks For Elementor: by Crocoblock – 1.3.0 JetCompareWishlist For Elementor: by Crocoblock – 1.4.5 JetElements For Elementor: by Crocoblock – 2.6.2 JetEngine: by Crocoblock – 2.11.5 JetFormBuilder Address Autocomplete: by Crocoblock – 1.0.5 JetFormBuilder Converter: by Crocoblock – 1.0.1 JetFormBuilder User Login Action: by Crocoblock – 1.0.2 JetMenu: by Crocoblock – 2.1.6 JetPopup: by Crocoblock – 1.5.5 JetSearch For Elementor: by Crocoblock – 2.1.15 JetSmartFilters: by Crocoblock – 2.3.10 JetStyleManager: by Crocoblock – 1.3.4 JetTabs For Elementor: by Crocoblock – 2.1.15 JetThemeCore: by Crocoblock – 1.2.2 JetTricks: by Crocoblock – 1.4.0 JetWooBuilder For Elementor: by Crocoblock – 1.12.1 JetProductGallery For Elementor: by Crocoblock – 2.1.1 JetFormBuilder: by Crocoblock – 1.5.5 JetWidgets for Elementor and WooCommerce: by Crocoblock – 1.1.3 Loco Translate: by Tim Whitlock – 2.6.0 Ocean Extra: by OceanWP – 1.9.4 Really Simple SSL: by Really Simple Plugins – 5.3.0 Sassy Social Share: by Team Heateor – 3.3.38 UpdraftPlus - Backup/Restore: by UpdraftPlus.com DavidAnderson – 1.22.10 WCMp Paypal Split Payment: by WC Marketplace – 1.0.3 WooCommerce PayPal Payments: by WooCommerce – 1.7.0 WooCommerce: by Automattic – 6.3.1 WooLentor - WooCommerce Elementor Addons + Builder: by HasThemes – 2.2.2 Wordfence Security: by Wordfence – 7.5.8 WP Frontend Delete Account: by Sanjeev Aryal – 1.6.1 WP Super Cache: by Automattic – 1.7.7 ### Inactive Plugins (4) ### JetReviews For Elementor: by Crocoblock – 2.2.4 Master Addons for Elementor: by Jewel Theme – 1.8.7 Smush: by WPMU DEV – 3.9.5 WP Mail SMTP: by WPForms – 3.3.0 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: – Force SSL: – Currency: AUD (A$ ) 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) Connected to WooCommerce.com: – ### WC Pages ### Shop base: #9443 - /store/ Cart: #11598 - /cart/ Checkout: #89 - /checkout/ My account: #12218 - /my-account/ Terms and conditions: #253 - /terms/ ### Theme ### Name: OceanWP Child Version: 3.1.2.1642293376 Author URL: https://oceanwp.org/about-me/ Child Theme: ? Parent Theme Name: OceanWP Parent Theme Version: 3.1.4 Parent Theme Author URL: https://oceanwp.org/about-me/ WooCommerce Support: ? ### Templates ### Overrides: /home/customer/www/takemywardrobe.com/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/cart/cart-empty.php version - is out of date. The core version is 3.5.0 /home/customer/www/takemywardrobe.com/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/cart/cart.php version - is out of date. The core version is 3.8.0 oceanwp/woocommerce/cart/mini-cart.php /home/customer/www/takemywardrobe.com/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/checkout/form-checkout.php version - is out of date. The core version is 3.5.0 /home/customer/www/takemywardrobe.com/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/checkout/thankyou.php version - is out of date. The core version is 3.7.0 oceanwp/woocommerce/content-single-product.php oceanwp/woocommerce/loop/loop-start.php /home/customer/www/takemywardrobe.com/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/myaccount/dashboard.php version - is out of date. The core version is 4.4.0 /home/customer/www/takemywardrobe.com/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/myaccount/form-edit-account.php version - is out of date. The core version is 3.5.0 /home/customer/www/takemywardrobe.com/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/myaccount/form-login.php version - is out of date. The core version is 4.1.0 /home/customer/www/takemywardrobe.com/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/myaccount/my-account.php version - is out of date. The core version is 3.5.0 /home/customer/www/takemywardrobe.com/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/myaccount/my-address.php version - is out of date. The core version is 2.6.0 /home/customer/www/takemywardrobe.com/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/myaccount/orders.php version - is out of date. The core version is 3.7.0 oceanwp/woocommerce/single-product/title.php /home/customer/www/takemywardrobe.com/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/content-product_cat.php version - is out of date. The core version is 4.7.0 Outdated Templates: ? Learn how to update ### WooCommerce PayPal Payments ### Onboarded: ? Shop country code: AU WooCommerce currency supported: ? PayPal card processing available in country: ? Pay Later messaging available in country: ? Webhook status: – Vault enabled: ? Logging enabled: – Reference Transactions: – Used PayPal Checkout plugin: – ### Action Scheduler ### Complete: 306 Oldest: 2022-02-18 14:59:19 +1100 Newest: 2022-03-12 22:18:03 +1100 Pending: 1 Oldest: 2022-03-14 16:15:50 +1100 Newest: 2022-03-14 16:15:50 +1100 ### Status report information ### Generated at: 2022-03-13 10:44:53 +11:00
2022-02-11T04:48:54+00:00 ERROR Spec is invalid because the locale could not be retrieved in feed
2022-02-11T04:48:54+00:00 ERROR stdClass Object
(
[slug] => lead_gen_existing_customers_1
[type] => marketing
[status] => unactioned
[is_snoozable] => 0
[source] => woocommerce.com
[locales] => Array
(
[0] => stdClass Object
(
[locale] =>
[title] => Talk to a consultant
[content] => As your business grows, you want to optimize costs, streamline operations, and sell more. We can help. Talk to us about how you can get the most out of WooCommerce.
))
[actions] => Array
(
[0] => stdClass Object
(
[name] => lead_gen_existing_customers_1
[locales] => Array
(
[0] => stdClass Object
(
[locale] => en_US
[label] => Yes, please
))
[url] => https://woocommerce.com/take-your-business-to-the-next-level/
[url_is_admin_query] =>
[is_primary] =>
[status] => actioned
))
[rules] => Array
(
[0] => stdClass Object
(
[type] => publish_after_time
[publish_after] => 2022-02-10 18:10:54
)[1] => stdClass Object
(
[type] => publish_before_time
[publish_before] => 2022-02-13 23:59:00
)[2] => stdClass Object
(
[type] => or
[operands] => Array
(
[0] => stdClass Object
(
[type] => base_location_country
[operation] => =
[value] => US
)[1] => stdClass Object
(
[type] => base_location_country
[operation] => =
[value] => CA
)[2] => stdClass Object
(
[type] => base_location_country
[operation] => =
[value] => ZA
))
)
)
)`
Hi Igor,
I just attached the files above.
I don’t clearly understand how the SKU works.
How could it be added (or duplicated) another product with an SKU that already exists? because the error came up even though when I add a new product with different details.
My ultimate task on this is making every submitted product be 1 SKU by my custom front-end product submission form.
So only once a transaction is made on each product, it will be marked as out of stock.
(as my website trades second-hand goods only)I wanted to configure the SKU first so I could get the meta key of SKU settings.
It’d be a lot easier If you could tell me What meta key could I use to submit as 1 SKU?Thank you!
Hi @leejay1
How could it be added (or duplicated) another product with an SKU that already exists?
An SKU must be unique for the stock to be managed properly. If you require to have products with the same SKU, it’s still possible with this method, but please note that the inventory management may not work properly. You can read more about SKUs: https://woocommerce.com/posts/why-use-skus-woocommerce/
the error came up even though when I add a new product with different details.
If Hide out of stock items from the catalog doesn’t work as expected on your site, you’ll want to do a full conflict test to determine if the issue is coming from a plugin/theme conflict.
You can find a detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/
Hi,
I’m using another plugin to customize Woocommerece product gird.
And I could configure it to hide out of stock products from the grid with this plugin.However, I need to set the SKU correctly so it will work properly.
Waht I need to do is once a transaction is made on each product, it needs to be marked as out of stock.
(as my website trades second-hand goods only)I have a custom product submission form,
It’d be a lot easier If you could tell me what meta key could I use to submit as 1 SKUThanks!
And I could configure it to hide out of stock products from the grid with this plugin.
The setting in that plugin could be overriding your WooCommerce default stock setting. You may need to disable that in the plugin
Waht I need to do is once a transaction is made on each product, it needs to be marked as out of stock. (as my website trades second-hand goods only)
Can you share your product stock settings via https://snipboard.io?
It’d be a lot easier If you could tell me what meta key could I use to submit as 1 SKU
What do you mean by metakey?
Regarding the duplicate SKU
Go to WooCommerce > Status > Tools and “Clear Transients”
I hope this helps!
I will paste the link from my previous message.
The inventory setting is like this: https://prnt.sc/SLf-AXDt0GPv
This is how I set in the Woocommerce inventory settings :
https://prnt.sc/yVFvp29FnZOPAnd the meta key is somting like this (in the custom product submission form) : https://snipboard.io/yY0blW.jpg
If I put value ‘yes’ to ‘sold_individually’, then the product will be submitted as sold individually.
I tried value 1 for ‘SKU’, and it did not work.
what could be set to submit as 1 SKU?Regarding the duplicate SKU : Go to WooCommerce > Status > Tools and “Clear Transients”
I tried it and still shows the same error when I add a product with 1 SKU, 1 Initial number stock.
Hello @leejay1,
For additional clarification: What do you mean with “1 SKU” and why do you need your products to have the same SKU?
I understand you’re trading second hand goods, so it makes sense you always have an inventory of 1, but, usually, it’s expected for the SKU to be different, and that each product gets its own SKU.
Please let us know if there’s some context we’re missing here.
Thanks in advance!
I didn’t know that every product gets its own SKU.
As every product is sold individually and they are all different products, I thought I needed to set it to 1 SKU to show it’s a simple (one)product, and it will be marked as sold out once a transaction is made.Will it work as I expected if I leave the SKU field empty?
Hi @leejay1
Will it work as I expected if I leave the SKU field empty?
Yes! It will! SKUs aren’t required for simple products in WooCommerce ??
Just to clarify it a bit more, since the SKU (“Stock Keeping Units”) is used to keep track of stock levels internally, setting the same SKU to all your products, when 1 is sold, all the stock with the same SKU will decrease.
That means, if you have only 1 item in stock for each product, since they have the same SKU, selling one, all the others will be out of stock!
However, thinking in a scalable way, I’d recommend you to start using SKUs, here’s a post that comes in handy explaining why you should use SKUs in your store:
https://woocommerce.com/posts/why-use-skus-woocommerce/
Let us know if you still have questions about it, and we’ll be here to help!
My very best,
- The topic ‘How to hide out of stock products on the store?’ is closed to new replies.