PATH:
home
/
letacommog
/
letaweb
/
scripts
/
editor
/
ecommerce
/
configuration
/
shipping
/
methods
define([], function() { return function($scope, communication, popup_grid) { communication.getList('zones',{}).then(function(json) { $scope.zone_list = json; //if(!$scope.$$phase) //$scope.$digest(); }); $scope.tables = []; if(angular.isDefined($scope.data.table)) { var td = $scope.data.table.split(';'); for(var i = 0;i < td.length;i++) { var tr = td[i].split(':'); if(tr.length == 2) { $scope.tables.push({form:tr[0], fee:tr[1]}); } else $scope.tables.push({form:0, fee:0}); } } $scope.addTableRow = function() { $scope.tables.push({form:0, fee:0}); } $scope.changeTable= function() { var ts = ''; var s = ''; for(var i = 0;i < $scope.tables.length;i++) { ts += s + $scope.tables[i].form + ':' + $scope.tables[i].fee; s=';'; } $scope.data.table=ts; } communication.getDefaultCurrency().then(function(default_currency) { $scope.curr_symbol_left = default_currency['symbol_left']; $scope.curr_symbol_right = default_currency['symbol_right']; }); } });
[+]
..
[-] flat_rate.js
[edit]
[-] ship_by_order_total.js
[edit]
[-] ship_by_weight.js
[edit]
[-] per_order.js
[edit]