Skip to content

Latest commit

 

History

History
executable file
·
28 lines (17 loc) · 850 Bytes

README.md

File metadata and controls

executable file
·
28 lines (17 loc) · 850 Bytes

magento2-configurable-sku-switch

Status

Tested by on magento 2.1.3 (blank theme), 2.1.8 Modified Snowdog Theme

Do not expect this module to be updated/bugg fixed/altered for any specific magento version

Purpose

Change attributes for configurable on frontend to show the sku for selected product

Credits

stackexchange

HowTo

The plugin is flexibel. Theme HTML has to be modified to contain data-dynamic attributes.

Example: HowTo Make the SKU dynamic

in layout/catalog_product_view.xml add

	<referenceBlock name="product.info.sku">
		<arguments>
			<argument name="add_attribute" xsi:type="string">itemprop="sku" data-dynamic="sku"</argument>
		</arguments>
	</referenceBlock>