Documentation
Feedback
Guides

Release Notes
Release Notes
Sku Selector
December, 19

The Sku Selector block was given two new props:

  • displayMode: responsible for defining whether the block will be displayed in buttons by default (as the product variation images are) or by dropdown-list.

  • initialSelection: controls the user initial selection in the SKU Selector when a product page is loaded.

What has changed

Previously, the SKU Selector was always displayed in a button format, as shown in the image below:

{"base64":"  ","img":{"width":1035,"height":665,"type":"gif","mime":"image/gif","wUnits":"px","hUnits":"px","length":356037,"url":"https://user-images.githubusercontent.com/52087100/71180509-1946ff00-2251-11ea-9606-3e7943df5be0.gif"}}

With these two new props, the SKU Selector can now be displayed as a drop-down list as well:

{"base64":"  ","img":{"width":838,"height":991,"type":"gif","mime":"image/gif","wUnits":"px","hUnits":"px","length":298498,"url":"https://user-images.githubusercontent.com/52087100/71180513-1946ff00-2251-11ea-8ec1-fa589ddc4ba4.gif"}}

In addition, you now can define the block's behavior when users get to the product page. Previously, the SKU Selector automatically selected the given variation for the user. Now, you can define between the following options for the SKU Selector behavior:

  • Selecting the variations referring to the first available SKU fetched (default behavior);
  • Selecting the first image variation fetched (such as color);
  • Not selecting variations automatically.

Key advantages

Before the two new props, there was no flexibility whatsoever in terms of format and initial block behavior when the product page was loaded.

The rigidity of the SKU Selector did not leave room to address some business scenarios, such as the need for another form to display long texts within the default buttons. Therefore, the new props expand the block's applicability, better meeting retailer needs and desires when it comes to the behavior of their store.

What you need to do

The initialSelection prop can be used starting with Store Components version 3.82.0, while the displayMode prop is only available from version 3.91.0 onwards of the same app.

Don't forget to access the SKU Selector documentation to know further about the new possible values and behaviors.

Was this helpful?
Yes
No
On this page