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.
Reverting a feature would not add AutoSKU settings to a product display.
The reason for this is that commerce_autosku_commerce_product_type_update() gets this array:
Array
(
[type] => the_type
[name] => The_Type
[description] => Desc.
[help] =>
[revision] => 1
[module] => commerce_product_ui
[autosku] => Array
(
[product_type] => the_type
[pattern] => [commerce-product:title]-[commerce-product:field_the_type_size]-[commerce-product:field_color]
[advanced] => Array
(
[update_existing] => 0
[hide_sku] => 1
[case] => uppercase
)
)
)
But it expects to see autosku_status which isn't there.
Fix posted in comment.
Comments
Comment #1
kotnik CreditAttribution: kotnik commentedPatch attached.
Comment #2
kotnik CreditAttribution: kotnik commentedComment #3
kotnik CreditAttribution: kotnik commentedRemoved redundancy.
Comment #4
kotnik CreditAttribution: kotnik commentedMissed check during insert. Fixed. Now really ready for a review.
Comment #5
rbayliss CreditAttribution: rbayliss commentedLooks good except that changes made through the UI then ignore the status checkbox. Rerolled with an extra check for when autosku_status is set to FALSE. Can you give this a try and let me know if it works for you?
Comment #6
kotnik CreditAttribution: kotnik commentedAll good, thanks rbayliss.
Comment #7
rbayliss CreditAttribution: rbayliss commentedGreat! Committed to dev. Do you need a stable release to be able to get rid of the patch in Commerce Kickstart?
Comment #8
kotnik CreditAttribution: kotnik commentedThanks rbayliss.
Stable release would be much appreciated, if you feel it can be released.
Comment #10
jcandan CreditAttribution: jcandan commented+1 to get to stable release please!