- $config = [
- 'attributes' => $attributesData['attributes'],
- 'template' => str_replace('%s', '<%- data.price %>', $store->getCurrentCurrency()->getOutputFormat()),
- 'optionPrices' => $this->getOptionPrices(),
- 'prices' => [
- 'oldPrice' => [
- 'amount' => $this->_registerJsPrice($regularPrice->getAmount()->getValue()),
- ],
- 'basePrice' => [
- 'amount' => $this->_registerJsPrice(
- $finalPrice->getAmount()->getBaseAmount()
- ),
- ],
- 'finalPrice' => [
- 'amount' => $this->_registerJsPrice($finalPrice->getAmount()->getValue()),
- ],
- ],
- 'productId' => $currentProduct->getId(),
- 'chooseText' => __('Choose an Option...'),
- 'images' => isset($options['images']) ? $options['images'] : [],
- 'index' => isset($options['index']) ? $options['index'] : [],