} /**
* Creates the settings array for the passed configurator set
*
* @return array
*/
public function getConfiguratorSettings(ConfiguratorSet
$set, ListProduct
$product) { $settings =
[ 'instock' =>
$product->
isCloseouts(),
'articleID' =>
$product->
getId(),
'type' =>
$set->
getType(),
'attributes' =>
$set->
getAttributes(),
];
if ($set->
hasAttribute('core'
)) { $data['attribute'
] =
$set->
getAttribute('core'
);
} // Switch the template for the different configurator types.
if ($set->
getType() == 1
) {