/** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * @api */ define([ 'jquery', 'mage/template', 'jquery-ui-modules/widget', 'Magento_Bundle/js/price-bundle' ], function ($, mageTemplate) { 'use strict'; /** * Widget product Summary: * Handles rendering of Bundle options and displays them in the Summary box */ $.widget('mage.productSummary', { options: { mainContainer: '#product_addtocart_form', templates: { summaryBlock: '[data-template="bundle-summary"]', optionBlock: '[data-template="bundle-option"]' }, optionSelector: '[data-container="options"]', summaryContainer: '[data-container="product-summary"]', bundleSummaryContainer: '.bundle-summary' }, cache: {}, /** * Method attaches event observer to the product form * @private */ _create: function () { this.element .closest(this.options.mainContainer) .on('updateProductSummary', $.proxy(this._renderSummaryBox, this)) .priceBundle({}) ; }, /** * Method extracts data from the event and renders Summary box * using jQuery template mechanism * @param {Event} event * @param {Object} data * @private */ _renderSummaryBox: function (event, data) { this.cache.currentElement = data.config; this.cache.currentElementCount = 0; // Clear Summary box this.element.html(''); this.cache.currentElement.positions.forEach(function (optionId) { this._renderOption(optionId, this.cache.currentElement.selected[optionId]); }, this); this.element .parents(this.options.bundleSummaryContainer) .toggleClass('empty', !this.cache.currentElementCount); // Zero elements equal '.empty' container }, /** * @param {String} key * @param {String} row * @private */ _renderOption: function (key, row) { var template; if (row && row.length > 0 && row[0] !== null) { template = this.element .closest(this.options.summaryContainer) .find(this.options.templates.summaryBlock) .html(); template = mageTemplate($.trim(template), { data: { _label_: this.cache.currentElement.options[key].title } }); this.cache.currentKey = key; this.cache.summaryContainer = $(template); this.element.append(this.cache.summaryContainer); $.each(row, this._renderOptionRow.bind(this)); this.cache.currentElementCount += row.length; //Reset Cache this.cache.currentKey = null; } }, /** * @param {String} key * @param {String} optionIndex * @private */ _renderOptionRow: function (key, optionIndex) { var template; template = this.element .closest(this.options.summaryContainer) .find(this.options.templates.optionBlock) .html(); template = mageTemplate($.trim(template), { data: { _quantity_: this.cache.currentElement.options[this.cache.currentKey].selections[optionIndex].qty, _label_: this.cache.currentElement.options[this.cache.currentKey].selections[optionIndex].name } }); this.cache.summaryContainer .find(this.options.optionSelector) .append(template); } }); return $.mage.productSummary; });
( ! ) Warning: require(/new/team3new/Alif_Stores_Upgrade/vendor/composer/../magento/module-adobe-stock-image-admin-ui/registration.php): failed to open stream: No such file or directory in /new/team3new/Alif_Stores_Upgrade/vendor/composer/autoload_real.php on line 73
Call Stack
#TimeMemoryFunctionLocation
10.0000367032{main}( ).../index.php:0
21.4281368360require( '/new/team3new/Alif_Stores_Upgrade/app/bootstrap.php' ).../index.php:20
31.4281369392require_once( '/new/team3new/Alif_Stores_Upgrade/app/autoload.php' ).../bootstrap.php:33
41.4282369928include( '/new/team3new/Alif_Stores_Upgrade/vendor/autoload.php' ).../autoload.php:30
51.4282369960ComposerAutoloaderInitbed239b279e3122198535f67730d0bb0::getLoader( ).../autoload.php:7
61.4335614504composerRequirebed239b279e3122198535f67730d0bb0( ).../autoload_real.php:63

( ! ) Fatal error: require(): Failed opening required '/new/team3new/Alif_Stores_Upgrade/vendor/composer/../magento/module-adobe-stock-image-admin-ui/registration.php' (include_path='/new/team3new/Alif_Stores_Upgrade/vendor/magento/zendframework1/library:.:/usr/share/php') in /new/team3new/Alif_Stores_Upgrade/vendor/composer/autoload_real.php on line 73
Call Stack
#TimeMemoryFunctionLocation
10.0000367032{main}( ).../index.php:0
21.4281368360require( '/new/team3new/Alif_Stores_Upgrade/app/bootstrap.php' ).../index.php:20
31.4281369392require_once( '/new/team3new/Alif_Stores_Upgrade/app/autoload.php' ).../bootstrap.php:33
41.4282369928include( '/new/team3new/Alif_Stores_Upgrade/vendor/autoload.php' ).../autoload.php:30
51.4282369960ComposerAutoloaderInitbed239b279e3122198535f67730d0bb0::getLoader( ).../autoload.php:7
61.4335614504composerRequirebed239b279e3122198535f67730d0bb0( ).../autoload_real.php:63