开发者

Magento 2 Different Swatch Types in the Category and Product Page

开发者 https://www.devze.com 2022-12-07 18:37 出处:网络
Would it be possible to use 2 different Swatch Types in the Category and Product Page? My view.xml as follows. I\'d like to use the swatch_image in the Category Page and swatch_image_base in the Produ

Would it be possible to use 2 different Swatch Types in the Category and Product Page?

My view.xml as follows. I'd like to use the swatch_image in the Category Page and swatch_image_base in the Product page for the swatches.

        <images module="Magento_Catalog">
            <image id="swatch_image" type="swatch_image">
                <width>30</width>
                <height>30</height>
            </image>
            <image id="swatch_thumb" type="swatch_thumb">
                <width>110</width>
                <height>90</height>
            </image>
            <image id="swatch_image_base" type="swatch_image">
                <width>60</width>
                <height>60</height>
            </image>

Is this possible to开发者_JS百科 do?

0

精彩评论

暂无评论...
验证码 换一张
取 消