diff --git a/README.md b/README.md index 2328285..f24ca43 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,6 @@ bin/magento cache:enable ## How to upgrade ``` bin/magento maintenance:enable -rm -rf composer.lock composer clear-cache composer update thesuitdepot/core bin/magento setup:upgrade diff --git a/composer.json b/composer.json index 47ef814..6e51608 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "thesuitdepot/core" - ,"version": "0.0.2" + ,"version": "1.0.0" ,"description": "A custom module for thesuitdepot.com" ,"type": "magento2-module" ,"homepage": "https://github.com/thesuitdepot/core" @@ -13,4 +13,4 @@ }] ,"autoload": {"files": ["registration.php"], "psr-4": {"TheSuitDepot\\Core\\": ""}} ,"keywords": ["Magento 2"] -} +} \ No newline at end of file diff --git a/view/frontend/web/address.js b/view/frontend/web/address.js index 11ac944..818b6d4 100644 --- a/view/frontend/web/address.js +++ b/view/frontend/web/address.js @@ -1,10 +1,10 @@ -define([ - 'df-lodash', 'jquery', 'mage/utils/wrapper' -], function(_, $, w) {'use strict'; -return function(sb) { -$.extend(sb, { - initialize: w.wrap(sb.initialize, function(_super, d) { - return _super(); - }) -}); -return sb;};}); \ No newline at end of file +define([], function($, w) {'use strict'; return function(sb) {return sb.extend({ + initialize: function() { + this._super(); + if (this.isNew()) { + this.setData('country_id', 'US'); + this.setData('region', {region: 'Michigan', region_id: 33, region_code: 'MI'}); + } + return this; + } +});};}); \ No newline at end of file