title | issue |
---|---|
Fix image cover jump in product detail |
NEXT-9292 |
- Changed in
src/module/sw-product/component/sw-product-media-form/index.js
- Changed method
markAsCover
to update position of product media cover. - Changed method
onMediaItemDragSort
to prevent drag/drop product cover when it is in first position.
- Changed method
- Changed method
load
insrc/Storefront/Page/Product/ProductPageLoader.php
to move cover product media to first position. - Changed parameter
startIndexThumbnails
andstartIndexSlider'
to 1 insrc/Storefront/Resources/views/storefront/block/cms-block-gallery-buybox.html.twig
to make slider start at first position. - Changed parameter
startIndexThumbnails
andstartIndexSlider'
to 1 insrc/Storefront/Resources/views/storefront/page/product-detail/index.html.twig
to make slider start at first position.
- Changed method
enrich
insrc/Core/Content/Media/Cms/Type/ImageSliderTypeDataResolver.php
to move cover product media to first position.