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.
Hi,
on my commerce_kickstart installation with no demo content, the product-image switch on the detail page did not work.
Chrome console said that ".spinner()" is not a function... This error happened because of "Drupal.behaviors.quantityWidgetSpinner“ in the product_ui feature js file.
I found a fix for this! Just add this line to your template.php preprocess_html function:
drupal_add_library('system', 'ui.widget');
Please fix this! :)
Greetings and thx a lot for commerce_kickstart
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedComment #2
Cookiz CreditAttribution: Cookiz commentedHi axe1312, thanks for finding a fix for that ;)
So instead of loading ui.widget library into the theme,
we added a dependency when loading spinner.js in commerce_kickstart_ui hook_library.
Comment #3
Cookiz CreditAttribution: Cookiz commentedhttps://code.drupalcommerce.org/#/c/260/
Comment #4
bojanz CreditAttribution: bojanz commentedTested, merged.