No prices + no price warnings
-
Dear,
I have read a lot of different topics about this but none really achieve what we want:
- Allow setting 0 euro price to all products, our goal is to use woocommerce to order products payment and payment calculation is always done offline in the shop itself.
- We want to hide the errors “3 variations have no prizes. Variations (and their properties) that don’t have prices won’t be displayed in your store.”
Hopefully we can count on your help.
Kind regards,
V.
-
Hi @vinozio
You can easily set all product prices to 0 euros by following these simple steps with the “Bulk Edit” option:
a. Navigate to Products > All Products.
b. Check the boxes next to the products you want to edit, selecting them all.
c. From the “Bulk Actions” dropdown menu, choose “Edit” and click “Apply.”
d. Find the “Price” field in the Bulk Edit window and set its value to 0.
e. Click “Update” to apply the changes to all the selected products.For added convenience, consider using a bulk editings plugin like Bulk Edit Products, Prices, and Attributes.
To hide the error message, you can add this custom code to your child theme’s functions.php file:
add_filter('woocommerce_hide_invisible_variations', '__return_false');
This code snippet will prevent WooCommerce from hiding variations with no prices, which should also stop the error message from appearing.
Please note that modifying the functions.php file may cause issues if not done correctly. I suggest creating a backup of your website before making any changes to the file. Alternatively, you can use a plugin like “Code Snippets” to safely add custom code to your site without directly editing the functions.php file.
I hope this solution meets your requirements. Thanks!
Hi,
I’ve added the filter but no cigar.
Kr,
Vincent
Hi @vinozio
Thanks for reaching out!
Allow setting 0 euro price to all products, our goal is to use woocommerce to order products payment and payment calculation is always done offline in the shop itself.
I understand that you want to set the price of all your products to zero since payment calculation is being done offline, correct?
Under Products, click the checkbox next to the products you want to modify. Then, click Bulk Actions > Edit > Apply > Price > Change to: >
0
> Update. Here’s a screencast for your reference:We want to hide the errors “3 variations have no prizes. Variations (and their properties) that don’t have prices won’t be displayed in your store.”
To better picture what you are referring to here, can you please share with us a clear screenshot of what you see on your end so that we could address you more effectively?
If you don’t already have a screenshot service installed, you can try https://snipboard.io. You can share the direct link to the image as a response to this topic.
Additionally, I’d like to understand your site properly. Please share your System Status Report that you can find via
WooCommerce > Status
. SelectGet system report
and thenCopy for support
. Once you’ve done that, you can paste it into your reply here.If you could also provide the fatal error logs (if any) under
WooCommerce > Status > Logs
.You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.
Thanks!
- This reply was modified 1 year, 7 months ago by xue28 (woo-hc).
@xue28 see image:
https://snipboard.io/5fxTmZ.jpg
System report:
` ### WordPress Environment ### WordPress address (URL): https://kip.fastsolutions.be Site address (URL): https://kip.fastsolutions.be WC Version: 7.6.0 REST API Version: ? 7.6.0 WC Blocks Version: ? 9.8.4 Action Scheduler Version: ? 3.5.4 Log Directory Writable: ? WP Version: 6.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.1.16 PHP Post Max Size: 1 GB PHP Time Limit: 900 PHP Max Input Vars: 1000 cURL Version: 7.61.1 OpenSSL/1.1.1k SUHOSIN Installed: – MySQL Version: 10.3.35-MariaDB Max Upload Size: 1 GB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 7.6.0 WC Database Prefix: hgSK7_ Total Database Size: 20.96MB Database Data Size: 14.48MB Database Index Size: 6.48MB hgSK7_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB hgSK7_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB hgSK7_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_actionscheduler_actions: Data: 0.09MB + Index: 0.11MB + Engine InnoDB hgSK7_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_actionscheduler_logs: Data: 0.06MB + Index: 0.03MB + Engine InnoDB hgSK7_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB hgSK7_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB hgSK7_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB hgSK7_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB hgSK7_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB hgSK7_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_gf_entry: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_gf_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB hgSK7_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_gf_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_icl_background_task: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_icl_content_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_icl_core_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_icl_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_icl_languages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_icl_languages_translations: Data: 0.20MB + Index: 0.17MB + Engine InnoDB hgSK7_icl_locale_map: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_icl_message_status: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_icl_mo_files_domains: Data: 0.05MB + Index: 0.02MB + Engine InnoDB hgSK7_icl_node: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_icl_reminders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_icl_strings: Data: 1.52MB + Index: 2.94MB + Engine InnoDB hgSK7_icl_string_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_icl_string_packages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_icl_string_positions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_icl_string_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_icl_string_translations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_icl_translate: Data: 0.06MB + Index: 0.02MB + Engine InnoDB hgSK7_icl_translate_job: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_icl_translations: Data: 0.06MB + Index: 0.13MB + Engine InnoDB hgSK7_icl_translation_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_icl_translation_status: Data: 0.11MB + Index: 0.02MB + Engine InnoDB hgSK7_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_options: Data: 6.05MB + Index: 0.08MB + Engine InnoDB hgSK7_postmeta: Data: 3.42MB + Index: 0.64MB + Engine InnoDB hgSK7_posts: Data: 1.38MB + Index: 0.09MB + Engine InnoDB hgSK7_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB hgSK7_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB hgSK7_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB hgSK7_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB hgSK7_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hgSK7_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB hgSK7_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hgSK7_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hgSK7_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ### Post Type Counts ### acf-field: 6 acf-field-group: 2 acf-post-type: 1 attachment: 153 custom_css: 1 customize_changeset: 2 elementor_library: 34 markt: 3 nav_menu_item: 6 page: 25 post: 9 product: 30 product_variation: 77 revision: 111 shop_order: 1 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (24) ### Gravity Perks: by Gravity Wiz – 2.2.9 Gravity Forms: by Gravity Forms – 2.7.4 Advanced Custom Fields PRO: by WP Engine – 6.1.4 All-in-One WP Migration: by ServMask – 7.73 Classic Editor: by WordPress Contributors – 1.6.3 Classic Widgets: by WordPress Contributors – 0.3 Contact Form 7: by Takayuki Miyoshi – 5.7.5.1 Custom Post Type UI: by WebDevStudios – 1.13.5 The7 Elements: by Dream-Theme – 2.7.4 Duplicate Page: by mndpsingh287 – 4.5.1 Elementor Pro: by Elementor.com – 3.12.2 Elementor: by Elementor.com – 3.12.1 Flexible Checkout Fields: by WP Desk – 3.5.7 GP Multi-page Navigation: by Gravity Wiz – 1.2 Gravity Forms + Custom Post Types: by Gravity Wiz – 3.1.29 Live Summary for Gravity Forms: by Geek on the Road – 1.2.5 PowerPack Lite for Elementor: by IdeaBox Creations – 2.7.4 Profile Builder Basic: by Cozmoslabs – 3.9.1 Profile Builder: by Cozmoslabs – 3.9.3 The7 CLI: by Dream-Theme – 1.0.0 Weglot Translate: by Weglot Translate team – 3.9.2 WooCommerce Multilingual & Multicurrency: by OnTheGoSystems – 5.1.2 WooCommerce: by Automattic – 7.6.0 WP Reset: by WebFactory Ltd – 1.97 ### Inactive Plugins (4) ### Advanced Custom Fields Multilingual: by OnTheGoSystems – 2.0.4 OTGS Installer: by OnTheGoSystems – 3.0.4 WPML Multilingual CMS: by OnTheGoSystems – 4.6.3 WPML String Translation: by OnTheGoSystems – 3.2.5 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) 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: – Enforce Approved Product Download Directories: ? Order datastore: WC_Order_Data_Store_CPT ### WC Pages ### Shop base: #54529 - /shop/ 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: ? Page does not contain the [woocommerce_my_account] shortcode. Terms and conditions: ? Page not set ### Theme ### Name: The7 Version: 11.6.4 Author URL: https://dream-theme.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: ? ### Templates ### Overrides: dt-the7/woocommerce/cart/cart.php version 7.0.1 is out of date. The core version is 7.4.0 dt-the7/woocommerce/cart/cross-sells.php dt-the7/woocommerce/cart/mini-cart.php dt-the7/woocommerce/checkout/form-billing.php dt-the7/woocommerce/checkout/form-checkout.php dt-the7/woocommerce/checkout/form-coupon.php dt-the7/woocommerce/checkout/form-login.php dt-the7/woocommerce/checkout/form-shipping.php dt-the7/woocommerce/checkout/review-order.php dt-the7/woocommerce/checkout/thankyou.php dt-the7/woocommerce/content-product.php dt-the7/woocommerce/content-widget-product.php dt-the7/woocommerce/content-widget-reviews.php dt-the7/woocommerce/global/breadcrumb.php dt-the7/woocommerce/global/form-login.php dt-the7/woocommerce/global/quantity-input.php version 7.2.0 is out of date. The core version is 7.4.0 dt-the7/woocommerce/loop/loop-end.php dt-the7/woocommerce/loop/loop-start.php dt-the7/woocommerce/loop/pagination.php /var/www/vhosts/fastsolutions.be/kip.fastsolutions.be/wp-content/plugins/profile-builder-hobbyist/add-ons-advanced/woocommerce/templates/myaccount-edit-profile.php dt-the7/woocommerce/myaccount/form-login.php dt-the7/woocommerce/notices/error.php dt-the7/woocommerce/notices/notice.php dt-the7/woocommerce/notices/success.php dt-the7/woocommerce/order/order-details-customer.php dt-the7/woocommerce/order/order-details.php dt-the7/woocommerce/single-product/meta.php dt-the7/woocommerce/single-product/price.php dt-the7/woocommerce/single-product/related.php dt-the7/woocommerce/single-product/up-sells.php dt-the7/woocommerce/content-product_cat.php Outdated Templates: ? Learn how to update ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-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 woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: block-editor-feature-enabled minified-js new-product-management-experience product-variation-management settings Daily Cron: ? Next scheduled: 2023-04-18 17:51:49 +00:00 Options: ? Notes: 56 Onboarding: completed ### Action Scheduler ### Complete: 193 Oldest: 2023-04-11 17:51:54 +0000 Newest: 2023-04-18 04:07:52 +0000 Failed: 5 Oldest: 2023-04-11 17:54:01 +0000 Newest: 2023-04-15 05:17:57 +0000 Pending: 1 Oldest: 2023-04-18 07:21:29 +0000 Newest: 2023-04-18 07:21:29 +0000 ### Status report information ### Generated at: 2023-04-18 04:08:56 +00:00 `
Error logs:
2023-04-11T17:51:46+00:00 CRITICAL Uncaught RuntimeException: Claimen van acties mislukt. Database-fout. in /var/www/vhosts/fastsolutions.be/kip.fastsolutions.be/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:864 Stack trace: #0 /var/www/vhosts/fastsolutions.be/kip.fastsolutions.be/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php(778): ActionScheduler_DBStore->claim_actions() #1 /var/www/vhosts/fastsolutions.be/kip.fastsolutions.be/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(157): ActionScheduler_DBStore->stake_claim() #2 /var/www/vhosts/fastsolutions.be/kip.fastsolutions.be/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(136): ActionScheduler_QueueRunner->do_batch() #3 /var/www/vhosts/fastsolutions.be/kip.fastsolutions.be/wp-includes/class-wp-hook.php(308): ActionScheduler_QueueRunner->run() #4 /var/www/vhosts/fastsolutions.be/kip.fastsolutions.be/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #5 /var/www/vhosts/fastsolutions.be/kip.fastsolutions.be/wp-includes/plugin.php(565): WP_Hook->do_action() #6 /var/www/vhosts/fastsolutions.be/kip.fastsolutions.be/wp-cron.php(188): do_action_ref_array() #7 {main} thrown in /var/www/vhosts/fastsolutions.be/kip.fastsolutions.be/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php op de lijn 864 2023-04-11T20:21:36+00:00 CRITICAL syntax error, unexpected end of file in /var/www/vhosts/fastsolutions.be/kip.fastsolutions.be/wp-content/themes/dt-the7/functions.php op de lijn 37
Hi @vinozio
Thanks for sharing the requested information above.
As per the error on this screenshot, this is the expected behavior since Variable Products need to have a regular price (required field) in order to show variations on your site.
Hope this helps!
@xue28 yes, we are looking for a way to disable this error since it works but still it gives the error.
Hi,
I understand that you would like to put
0.00 EUR
value to your products.To me that sounds like giving WooCommerce another functionality, in this case, the customers will not pay directly at checkout.
Depending on your needs, if you want to go direct to the checkout to receive orders, avoiding the payments, you can configure the Request a Quote for WooCommerce, https://woocommerce.com/products/request-a-quote-plugin-for-woocommerce/
Using this extension, your customers are able to add products to the cart, manage certain type of orders, and ask for a quote, this could be a workaround for your needs.
I hope this helps.
Hi @vinozio
We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.
Thanks!
- The topic ‘No prices + no price warnings’ is closed to new replies.