New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grouped products are missing a price update #27941
Comments
Prerequisites (mark completed items with an [x]):
Describe the bug Expected behavior Actual behavior Steps to reproduce the bug (We need to be able to reproduce the bug in order to fix it.)
Screenshots Isolating the problem (mark completed items with an [x]):
WordPress Environment
```
`
### WordPress Environment ###
WordPress address (URL): https://woo.tst Server EnvironmentServer Info: Apache/2.4.41 (Unix) OpenSSL/1.1.1f PHP/7.4.1 SUHOSIN Installed: – DatabaseWC Database Version: 4.5.2 Post Type Countsattachment: 18 SecuritySecure connection (HTTPS): ✔ Active Plugins (1)WooCommerce: by Automattic – 4.5.2 Inactive Plugins (185)Must Use Plugins (1)Health Check Troubleshooting Mode: by – 1.7.1 SettingsAPI Enabled: – Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) Connected to WooCommerce.com: – WC PagesShop base: #29 - /shop/ ThemeName: Storefront TemplatesOverrides: – Action SchedulerComplete: 273 Pending: 10 `
|
Hi @Jensonbruins, Thank you for taking the time to report this bug, we really appreciate your help. I can reproduce it on my end using the steps you provided. We’re going to solve this bug as soon as possible. Stay tuned for updates. @jacoswan I was not able to reproduce the issue with the REST API. Changes in the lowest products prices were reflected in subsequent calls to the API. |
Hello, @rrennick |
@marcgmm It's on the high priority list. |
The problem seems to be that even if you change the price of the included product from 100 to 50 after creating a group product, the amount saved in the group product's meta remains at 100.
|
I have reviewed this issue and created a pull request to resolve it. That is, when outputting the price of a group product to structured data, it refers to the latest price of the child product, not the meta stored in the group product. This is the same approach as product listings and product pages. Normally, when the price of a child product is changed, the meta of the "parent product" should also be updated, but the child product does not contain the information of the "parent product". |
Problem description:
Because we use this price for marketing purposes it now shows an incorrect price.
Environment details:
Wordpress: v5.5.1
Plugins: Woocommerce v4.5.2
Theme: Twenty Twenty v1.5
Reproduce:
1. Create an environment with solely the details listed above.
2. Create at least 2 simple products one with a price of 100 and one with a price of 200
3. Create a grouped product and link the simple products
4. Check the section <script type="application/ld+json"> the price should say 100 now
5. Now update the price of the 100 priced product to 50
6. Check the section <script type="application/ld+json"> this still says the products lowest range is 100 when this should be 50
Question:
Is it possible to make a change to the WooCommerce plugin to update this section <script type="application/ld+json"> of a grouped product to have the correct price.
The text was updated successfully, but these errors were encountered: