-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from diepxuan/1.0.1
1.0.1 | Initial for configuration dropdown
- Loading branch information
Showing
4 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<?xml version="1.0"?> | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> | ||
<module name="Diepxuan_Catalog" setup_version="1.0.0"> | ||
<module name="Diepxuan_Catalog" setup_version="1.0.1"> | ||
<sequence> | ||
<module name="Magento_Backend" /> | ||
<module name="Magento_Catalog" /> | ||
<module name="Magento_ConfigurableProduct" /> | ||
</sequence> | ||
</module> | ||
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
define([ | ||
'jquery', | ||
'underscore', | ||
'mage/template', | ||
'priceUtils', | ||
'priceBox', | ||
'jquery/ui', | ||
'jquery/jquery.parsequery', | ||
'Magento_ConfigurableProduct/js/configurable', | ||
'Magento_Ui/js/modal/modal' | ||
], function($, _, mageTemplate) { | ||
'use strict'; | ||
|
||
$.widget('mage.configurable', $.mage.configurable, { | ||
|
||
/** | ||
* Generate the label associated with a configurable option. This includes the option's | ||
* label or value and the option's price. | ||
* @private | ||
* @param {*} option - A single choice among a group of choices for a configurable option. | ||
* @return {String} The option label with option value and price (e.g. Black +1.99) | ||
*/ | ||
_getOptionLabel: function(option) { | ||
console.log(option); | ||
return option.label; | ||
}, | ||
|
||
}); | ||
|
||
return $.mage.configurable; | ||
}); |