Product with three attributes
-
I have four different models on this page via Variable Product. This problem is not only a problem on this page, but this is my example. On other pages I have done a “work around on” that is not ideal however.
Issue description: First two models are only offered with no analog output (third attribute), last two models offer five analog output options. When I set up the product, I put in these Analog Output options: No Analog Output | 0-10mA Analog Output | 0-20mA Analog Output | 4-20mA Analog Output | 0-10VDC Analog Output. The site never shows the above options, only No analog Output. I have checked both Visible on the product page, and Used for variations.
My workaround is on the variation page to let the customer choose Any Analog Output, but if the customer choose Model one or two, there should only be a price for “No Analog Output” Model.
Any assistance will be greatly appreciated.
The page I need help with: [log in to see the link]
-
Hi @selcousa
As a first step, kindly provide us the following:
* Screenshot(s) of the “Analogue output” options under the product’s Variations tab. (You can use Snipboard for easily sharing screenshots)
* 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.
* Error Log: Share a copy of any fatal error logs:
– Go to WooCommerce → Status → Logs
– Look for a log from the drop-down labeledfatal-errors.log
– Click View
– Paste here in your response if any records are foundCheers
Hi Berg,
Here is the screenshot of the attributes:
https://snipboard.io/JAPrfa.jpgHere is a screenshot of the variations:
https://snipboard.io/m5QvGL.jpgSystems Status:
### WordPress Environment ### WordPress address (URL): https://selcousa.com Site address (URL): https://selcousa.com WC Version: 6.5.1 REST API Version: ✔ 6.5.1 WC Blocks Version: ✔ 7.4.3 Action Scheduler Version: ✔ 3.4.0 Log Directory Writable: ✔ WP Version: 5.9.3 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.0 PHP Post Max Size: 512 MB PHP Time Limit: 120 PHP Max Input Vars: 1000 cURL Version: 7.68.0 OpenSSL/1.1.1f SUHOSIN Installed: – MySQL Version: 5.7.29-log Max Upload Size: 512 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 6.5.1 WC Database Prefix: wp_yqkbpy_ Total Database Size: 83.96MB Database Data Size: 58.57MB Database Index Size: 25.39MB wp_yqkbpy_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yqkbpy_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yqkbpy_woocommerce_order_items: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_woocommerce_order_itemmeta: Data: 0.14MB + Index: 0.14MB + Engine InnoDB wp_yqkbpy_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_yqkbpy_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yqkbpy_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yqkbpy_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yqkbpy_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB APBCT_TBL_FIREWALL_DATA: Data: 0.00MB + Index: 0.00MB + Engine MyISAM APBCT_TBL_FIREWALL_LOG: Data: 0.00MB + Index: 0.00MB + Engine MyISAM APBCT_TBL_SESSIONS: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yqkbpy_actionscheduler_actions: Data: 0.47MB + Index: 0.63MB + Engine InnoDB wp_yqkbpy_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_actionscheduler_logs: Data: 0.31MB + Index: 0.25MB + Engine InnoDB wp_yqkbpy_aiowps_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_aiowps_failed_logins: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_aiowps_global_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_aiowps_login_activity: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_aiowps_login_lockdown: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_aiowps_permanent_block: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_aws_index: Data: 0.31MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_cleantalk_ac_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_cleantalk_sessions: Data: 1.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_cleantalk_sfw: Data: 0.44MB + Index: 0.39MB + Engine InnoDB wp_yqkbpy_cleantalk_sfw_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_cleantalk_spamscan_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_cleantalk_ua_bl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yqkbpy_comments: Data: 0.16MB + Index: 0.09MB + Engine InnoDB wp_yqkbpy_huge_itslider_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_huge_itslider_params: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_huge_itslider_sliders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_options: Data: 13.23MB + Index: 1.13MB + Engine InnoDB wp_yqkbpy_pmxe_exports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_pmxe_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_postmeta: Data: 15.36MB + Index: 16.09MB + Engine InnoDB wp_yqkbpy_posts: Data: 4.28MB + Index: 0.38MB + Engine InnoDB wp_yqkbpy_rank_math_internal_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_rank_math_internal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_redirects: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_termmeta: Data: 0.09MB + Index: 0.13MB + Engine InnoDB wp_yqkbpy_terms: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_yqkbpy_term_relationships: Data: 0.11MB + Index: 0.09MB + Engine InnoDB wp_yqkbpy_term_taxonomy: Data: 0.09MB + Index: 0.11MB + Engine InnoDB wp_yqkbpy_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yqkbpy_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_UPCP_Catalogues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_UPCP_Catalogue_Items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_UPCP_Categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_UPCP_Custom_Fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_UPCP_Fields_Meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_UPCP_Items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_UPCP_Item_Images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_UPCP_SubCategories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_UPCP_Tagged_Items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_UPCP_Tags: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_UPCP_Tag_Groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_UPCP_Videos: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_usermeta: Data: 0.36MB + Index: 0.25MB + Engine InnoDB wp_yqkbpy_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yqkbpy_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yqkbpy_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yqkbpy_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yqkbpy_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_yqkbpy_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yqkbpy_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yqkbpy_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yqkbpy_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_wc_product_meta_lookup: Data: 0.33MB + Index: 0.63MB + Engine InnoDB wp_yqkbpy_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wdr_order_item_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wfBlockedIPLog: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wfBlocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yqkbpy_wfConfig: Data: 3.25MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wfCrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wfFileChanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wfFileMods: Data: 6.52MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wfHits: Data: 2.02MB + Index: 0.25MB + Engine InnoDB wp_yqkbpy_wfHoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_wfIssues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_yqkbpy_wfKnownFileList: Data: 3.52MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wfLiveTrafficHuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_wfLocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wfLogins: Data: 0.38MB + Index: 0.16MB + Engine InnoDB wp_yqkbpy_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wfNotifications: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wfPendingIssues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_yqkbpy_wfReverseCache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wfSNIPCache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yqkbpy_wfStatus: Data: 0.14MB + Index: 0.11MB + Engine InnoDB wp_yqkbpy_wfTrafficRates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_wp_mail_debug_emails: Data: 0.19MB + Index: 0.00MB + Engine InnoDB wp_yqkbpy_yoast_indexable: Data: 2.52MB + Index: 2.77MB + Engine InnoDB wp_yqkbpy_yoast_indexable_hierarchy: Data: 0.27MB + Index: 0.38MB + Engine InnoDB wp_yqkbpy_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yqkbpy_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yqkbpy_yoast_seo_links: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_yqkbpy_yoast_seo_meta: Data: 0.08MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 539 custom_css: 1 custom-css-js: 5 jp_img_sitemap: 2 jp_sitemap: 2 jp_sitemap_master: 2 nav_menu_item: 60 oembed_cache: 14 page: 15 post: 7 product: 161 product_variation: 567 revision: 88 saswp: 2 shop_order: 164 shop_order_refund: 8 tablepress_table: 1 wafs: 1 wpcf7_contact_form: 2 wpcf7r_action: 2 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (31) ### VaultPress: by Automattic – 2.2.1 Query Monitor: by John Blackbourn – 3.9.0 Akismet Anti-Spam: by Automattic – 4.2.3 All-in-One WP Migration: by ServMask – 7.59 Catch Web Tools: by Catch Plugins – 2.7.2 Child Theme Configurator: by Lilaea Media – 2.5.9 Classic Editor: by WordPress Contributors – 1.6.2 Anti-Spam by CleanTalk: by СleanTalk – 5.176 Contact Form 7: by Takayuki Miyoshi – 5.5.6.1 DreamHost Panel Login: by DreamHost danielbachhuber – 1.0.0 Email Address Encoder: by Till Krüss – 1.0.22 301 Redirects: by WebFactory Ltd – 2.72 Google Analyticator: by SumoMe – 6.5.4 Insert Headers and Footers: by WPBeginner – 1.6.2 Jetpack: by Automattic – 10.9 MiwoFTP: by Miwisoft LLC – 1.0.6 Really Simple CAPTCHA: by Takayuki Miyoshi – 2.1 Search In Place: by CodePeople – 1.0.90 Server IP & Memory Usage Display: by Apasionados Apasionados del Marketing – 2.1.0 ShortPixel Adaptive Images: by ShortPixel – 3.4.0 TinyPNG - JPEG, PNG & WebP image compression: by TinyPNG – 3.3 WooCommerce UPS Shipping Plugin with Print Label: by PluginHive – 4.3.4 User Role Editor: by Vladimir Garagulya – 4.62 WooCommerce Advanced Free Shipping: by Jeroen Sormani – 1.1.4 WooCommerce Elavon Converge Gateway: by SkyVerge – 2.11.5 Booster for WooCommerce: by Pluggabl LLC – 5.5.7 WooCommerce: by Automattic – 6.5.1 Wordfence Security: by Wordfence – 7.5.10 Yoast SEO: by Team Yoast – 18.9 WP Mail Debugger: by Timothy Jacobs – 1.0 Redirection for Contact Form 7: by Qube One – 2.6.0 ### Inactive Plugins (0) ### ### Must Use Plugins (1) ### p3-profiler1.php: by – ### Settings ### API Enabled: ✔ Force SSL: ✔ Currency: USD ($) Currency Position: left_space Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: '-1 (1) 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: #5 - /products/ Cart: #6 - /cart/ Checkout: #7 - /checkout/ My account: #8 - /my-account/ Terms and conditions: #16196 - /policies/ ### Theme ### Name: Clean Business Pro Child Version: 2.4.1587120403 Author URL: https://catchthemes.com/ Child Theme: ✔ Parent Theme Name: Clean Business Pro Parent Theme Version: 2.6.1 Parent Theme Author URL: https://catchthemes.com/ WooCommerce Support: ✔ ### Templates ### Overrides: clean-business-pro-child/woocommerce/archive-product.php ### Elavon Converge Credit Card ### Environment: Production Tokenization Enabled: – Debug Mode: Off ### Action Scheduler ### Complete: 1,477 Oldest: 2022-04-21 14:02:09 +0000 Newest: 2022-05-19 00:33:14 +0000 Failed: 1 Oldest: 2022-05-06 18:54:09 +0000 Newest: 2022-05-06 18:54:09 +0000 ### Status report information ### Generated at: 2022-05-18 19:36:57 -05:00
Fatal Error log (Today):
2022-05-11T13:10:07+00:00 INFO Approved Download Directories sync: new scan scheduled.
2022-05-11T13:10:07+00:00 INFO Approved Download Directories sync: completed batch 1 (50% complete).
2022-05-11T13:10:08+00:00 INFO Approved Download Directories sync: scan is complete!Hi @berg
I pasted the wrong date for fatal error. Here is todays.
2022-05-18T22:02:50+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported in /home/dh_j4upmn/selcousa.com/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_Utils.php on line 58Hello,
Thanks for sharing the screenshots and the system info.
The critical error seems to be unrelated to the issue at hand, as it mentions the Google Analyticator plugin.
Nothing stands out as a reason from your system report and the product settings.
What I noticed is that you have a large number of possible variations on this product. In WooCommerce, the dropdowns are dynamic (i.e., the attributes will change based on the previous selection) if there are fewer than 30 variations, but they will become static (all attributes will always be shown) if the number is greater.
I’m not sure if this is the cause for the issue you’re facing, but it might make sense for you to increase that number. You can see how to do that here.
If the issue persists, I would suggest you perform a full conflict test. To perform tests without affecting your live site, you can use a staging site (your host might have that feature, but you can create it with WP Staging as an alternative).
Then, set your staging site’s theme to Storefront, disable all plugins except for WooCommerce, and check if the issue persists.
Let us know how it goes.
Hi @paulostp ,
I think I may have found something. When I lay in the prices, I follow this sequence:
#1 Ensure there are no variations made.
#2 Go to attributes and turn off Analog Output from being used in variations.
#3 In variations I then select to create variations from all attributes.
#4 Go back to attributes and turn on Analog Outputs being used in variations.
#5 I can then specify now for each variation created if it should have no analog output or any analog outputReason for these steps, is I don’t need to create 100 variations when 90 of them have the same price, and the analog output is just for the customer to specify what output they want – it doesn’t change price.
Hi @selcousa
The only way you can do this with core WooCommerce is to create variations from all attributes and manage stock for each variation. (Mark unavailable variations “out of stock,” and check Hide out of stock items from the catalog in WooCommerce > Settings > Products > Inventory.)
Otherwise, you can’t conditionally change the available variations based on the previous attribute selection by default.
If you are up for using another plugin, you can look into a variation plugin that uses conditional logic like below:
https://woocommerce.com/products/composite-products/
https://codecanyon.net/item/woocommerce-extra-product-options/7908619
https://pluginrepublic.com/wordpress-plugins/woocommerce-better-variations/@maykato ,
Is it fair to say that is a bug in woocommerce?
The result is there are no results, and I can’t be the only one that have this issue.
Thanks in advanve.
Hi @selcousa
On a standard WooCommerce installation, using the default Storefront theme, with no custom code and no additional plugins, this is the behavior of variation dropdowns:
- If a variable product has fewer than 30 variations, the dropdowns for selecting variations on the frontend will be dynamic. They will be updated after each customer’s choice to only display the remaining options that are available according to the current selection.
- If there are more than 30 variations, the dropdowns will be static and will always display all attributes. But after the user selects an unavailable combination, they will see the message “Sorry, no products matched your selection. Please choose a different combination.”
Since your site is not working according to the above, a conflict with your theme, with a custom code or with another plugin must be occurring. The best way to determine this is to:
* Temporarily switch your theme to Storefront
* Remove any custom code and disable all plugins except for WooCommerce
* Test your products’ variations again, under incognito mode (to make sure your browser is not using any site’s cache).If you don’t see the problem after that, next reactivate the theme and plugins one by one, testing after each reactivation, until you find the one that was causing the conflict. You can find a more detailed explanation on how to perform this test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.
Note: If you can’t do the conflict test on your live site, I recommend creating a staging site. If your host doesn’t offer that option, we recommend WP Staging for quickly spinning up a new test site.
- The topic ‘Product with three attributes’ is closed to new replies.