Can’t create variations for products
-
Hi everyone,
I’m working on a webshop for my clients, but occurred a strange problem. I can’t add variations to a variable product. When I click on the buttons Generate variations or add manually nothing happens.
Obviously I though this was likely a plugin or theme conflict, but I’ve deactivated all plugins except WooCommerce and switched the Astra theme to a default theme but the problem still persisted.
Has anyone else got this problem? What to do?
Best regards,
Michelle
-
System status report:
WordPress Environment WordPress address (URL): https://byimee.nl Site address (URL): https://byimee.nl WC Version: 7.7.0 REST API Version: ? 7.7.0 WC Blocks Version: ? 10.0.4 Action Scheduler Version: ? 3.5.4 Log Directory Writable: ? WP Version: 6.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: – Language: nl_BE External object cache: – Server Environment Server Info: Apache PHP Version: 8.0.28 PHP Post Max Size: 256 MB PHP Time Limit: 300 PHP Max Input Vars: 20000 cURL Version: 7.74.0 OpenSSL/1.1.1k SUHOSIN Installed: – MySQL Version: 5.7.40-43-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: 7.7.0 WC Database Prefix: wp_ Totale databasegrootte: 36.15MB Database datagrootte: 32.40MB Database index grootte: 3.75MB 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.14MB + Index: 0.14MB + 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.09MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB wp_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB wp_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_itsec_bans: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_itsec_dashboard_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_itsec_distributed_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_itsec_fingerprints: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_itsec_geolocation_cache: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_itsec_lockouts: Data: 0.06MB + Index: 0.08MB + Engine InnoDB wp_itsec_logs: Data: 3.52MB + Index: 0.48MB + Engine InnoDB wp_itsec_mutexes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_itsec_opaque_tokens: Data: 0.14MB + Index: 0.08MB + Engine InnoDB wp_itsec_temp: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_itsec_user_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_itsec_webauthn_credentials: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_itsec_webauthn_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_jet_smart_filters_indexer: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mollie_pending_payment: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 9.06MB + Index: 0.08MB + Engine InnoDB wp_postmeta: Data: 12.52MB + Index: 0.41MB + Engine InnoDB wp_posts: Data: 5.52MB + Index: 0.19MB + 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.05MB + 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.05MB + 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_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + 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 wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpr_rocket_cache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wpr_rucss_used_css: Data: 0.02MB + Index: 0.09MB + Engine InnoDB Post Type Counts attachment: 85 custom_css: 2 customize_changeset: 5 elementor_library: 10 itsec-dash-card: 12 itsec-dashboard: 2 jet-popup: 2 jet-smart-filters: 3 nav_menu_item: 9 page: 17 post: 4 product: 56 revision: 566 seedprod: 2 wp_global_styles: 3 wpforms: 1 Security Secure connection (HTTPS): ? Hide errors from visitors: ? Active Plugins (14) Astra Pro: door Brainstorm Force – 4.1.5 Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd: door SeedProd – 6.15.7 Elementor Pro: door Elementor.com – 3.13.0 Elementor: door Elementor.com – 3.13.1 iThemes Security Pro: door iThemes – 7.3.4 JetCompareWishlist For Elementor: door Crocoblock – 1.5.4 JetPopup: door Crocoblock – 2.0.0 JetSmartFilters: door Crocoblock – 3.1.1 Mollie Payments for WooCommerce: door Mollie – 7.3.7 Ultimate Addons for Elementor: door Brainstorm Force – 1.36.15 Variation Swatches for WooCommerce: door CartFlows – 1.0.7 WooCommerce: door Automattic – 7.7.0 WP Htaccess Editor: door WebFactory Ltd – 1.71 WP Rocket: door WP Media – 3.13.2 Inactive Plugins (2) iThemes Security Pro – Local QR Codes: door iThemes – 1.0.1 iThemes Sync: door iThemes – 2.1.13 Dropin Plugins (1) advanced-cache.php: advanced-cache.php Must Use Plugins (2) Ensure admin user isn't deleted: door – 1.0 WP CLI Login Command Server: door Evan Mattson – 1.3 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: ? HPOS feature screen enabled: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – WC Pages Winkelbasis: #6 - /shop/ Winkelwagen: ? Pagina heeft geen [woocommerce_cart] shortcode of het woocommerce/cart blok. Afrekenen: ? Pagina heeft geen [woocommerce_checkout] shortcode of het woocommerce/checkout blok. Mijn account: ? Pagina bevat niet de [woocommerce_my_account] shortcode. Algemene voorwaarden: #2165 - /algemene-voorwaarden/ Theme Name: Astra Child Version: 1.0.0 Author URL: https://wpastra.com/about/ Child Theme: ? Parent Theme Name: Astra Parent Theme Version: 4.1.4 Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme WooCommerce Support: ? Templates Overrides: – 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 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: product-block-editor minified-js new-product-management-experience product-variation-management settings Daily Cron: ? Next scheduled: 2023-05-10 12:39:24 +01:00 Options: ? Notes: 72 Onboarding: completed Action Scheduler Afgerond: 316 Oldest: 2023-04-09 15:38:27 +0000 Newest: 2023-05-10 12:55:53 +0000 Mislukt: 9 Oldest: 2023-03-28 12:40:30 +0000 Newest: 2023-05-10 12:36:00 +0000 In afwachting: 3 Oldest: 2023-05-10 12:56:53 +0000 Newest: 2023-05-10 20:07:51 +0000 Status report information Generated at: 2023-05-10 13:56:01 +01:00 `
Hi Michelle,
I just tested it out with a fresh install of WordPress and WooCommerce, and everything worked as expected. Looking at your system status report, maybe the Variation Swatches plugin might be causing a conflict (just a wild guess, not based on any testing). Also, can you try opening up your developer console (Developer > JavaScript Console) in your browser, and let us know if there are any errors appearing there?
Thanks!
Jon
Hi Jon,
Thanks for replying! I’ve checked the Javascript console and there aren’t any errors. It’s not the Variation Swatches plugin because the problem still persists when this plugin is switched off.It’s so strange, because none of my other websites have this problem with pretty much the same setup in terms of plugins and theme. I have no idea what the problem is.
Best regards,
MichelleI am also having this issue only after the WooCommerce plugin received the update.
https://github.com/woocommerce/woocommerce/pull/37558
This area is the issue. It has been updated. The Generate Variations button no longer generate variations.@birdiedesign I uploaded the older version WooCommerce 7.6.1 and variations can be added. So the 7.7.0 version is broken for this feature.
Find the older releases here: https://developer.woocommerce.com/releases/
I guess a few more questions to help narrow things down here:
- If you create a new product, add attributes and then try to generate variations — does that work? Is this only for existing products?
- Is this only happening with existing attributes? Or if you add a new attribute, you can’t create variations?
@lanej0
1. If you create a new product, add attributes and then try to generate variations — does that work? Is this only for existing products?if a product is created and attributes are added – you cannot generate variations.
2. Is this only happening with existing attributes? Or if you add a new attribute, you can’t create variations?
I added attributes and I am still unable to create variations.Hi Jon,
Like @fallbrookian said it’s happening with new products, adding manually new attributes and existing products with existing attributes.Best regards,
MichelleI’ve also used a staging site to downgrade to Woocommerce version 7.6.1. In this earlier version it is possible to add variations. So it must have something to do with the new update you would think.
I have another update:
After downgrading the WooCommerce version to 7.6.1. I’ve updated WooCommerce again to the latest version. On the staging site variations work like they should after updating.
Here is the strange thing though. I’ve downgraded Woocommerce on my production website and as expected variations do work. Yet when I then update to the latest version (like I did on the staging site) the problem reoccurs and variations don’t work.
It’s clear something is going wrong when updating to the latest version, but the question is why does it work on the staging site and not the production site.
Hi @birdiedesign, thank you for reporting this.
After testing in different environments, I couldn’t reproduce this bug.
The PR that @fallbrookian mentioned affects the visibility of bulk actions but not the buttons
Generate variations
orAdd manually
.Could you try disabling every plugin except WooCommerce?
What browser are you using?
Could you also share the steps you took to encounter that error? There are multiple things that could affect the results.
Are you trying to generate variations only for global attributes?
Hi @fermarichal
Thanks for the reply!
I’m using Safari, but I’ve also tried to see if it would work in Chrome. Unfortunately I had the same results in Chrome.
I have tried to disable all plugins except WooCommerce before and have tried it now again, but the problem still persists. It’s not a plugin conflict or theme conflict as I have tested that by switching the astra theme for the default WordPress theme.
The steps:
1. I add a new product
2. I change from simple product to variable
3. I add attributes (I’ve tried both global attributes and creating a new attribute, both with same result). I’ve also noticed that the button to save the attributes is grey. It’s not looking clickable, but when I click on it it does save the attributes.
4. I try to add variations. Both buttons (generate variations and add manually) are not working.I’ve also tried the above with an existing product and of course the problem also occurs.
I’ve also recorded my screen while doing the above. You can see that here: https://drive.google.com/file/d/127hXYtyZXjYm0L6htRlY2RxE_X8txTgq/view?usp=share_link
Like I mentioned before I’ve created a staging site and it’s so strange because then it does work and I can add variations. You would think this is an exact copy of the production site so how in the world is it possible that it is working on the staging site yet not at the production site?
Hope you can help me as this is driving me crazy.
-
This reply was modified 1 year, 10 months ago by
birdiedesign.
-
This reply was modified 1 year, 10 months ago by
birdiedesign. Reason: shared a wrong link
I’ve checked the javascript console again and now it does seem to give some errors. Here is the screenshot:
No idea what it means, but does this have something to do with the problem?
I’ve just noticed that when I go to Dashboard > Woocommerce the screen is blank. See screenshot: https://imgur.com/a/XKlzYcO
- The topic ‘Can’t create variations for products’ is closed to new replies.