Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Just that, the variation title doesn't change when the product display title is modified.
To reproduce:
1) create a product display
2) add a product variation to this product display
3) save the product display
4) edit the product display and change its title
5) save
The title of the variation doesn't get updated to match the product display title.
Is this normal? a bug?
Comments
Comment #1
chefnelone CreditAttribution: chefnelone commentedComment #2
lsolesen CreditAttribution: lsolesen commentedComment #3
lsolesen CreditAttribution: lsolesen commentedWhat is expected @bojanz --> this? https://github.com/lsolesen/commerce_kickstart/compare/issue-2232731
Comment #4
mglamanJust like any auto title (node_autolabel, entity_autolabel) the entity needs to be saved in order for the title to update. The product isn't updating the title on node save because the product entities are not refreshed when the node is saved.
If you feel it should, open a ticket in the Inline Entity Form to propose "entity refresh on save" option, which could run save operations on all entities referenced when parent entity is saved.
Comment #5
spacetaxi CreditAttribution: spacetaxi commentedI've come across this same issue. The product variation title appears to be cached. Even if the product variation is removed, product saved, caches cleared; -if the existing variation is added back it still keeps the old title.
Comment #6
rszrama CreditAttribution: rszrama at Centarro commentedCommerce Kickstart 2.x is in minimal maintenance mode. Closing out all outdated tickets now to maintain focus on Commerce Kickstart 3.x.