File manager - Edit - /usr/local/sitepad/editor/site-data/plugins/kkart-pro/packages/kkart-blocks/assets/js/base/utils/address.js
Back
/** * pluckAddress takes a full address object and returns relevant fields for calculating * shipping, so we can track when one of them change to update rates. * * @param {Object} address An object containing all address information * @param {string} address.country The country. * @param {string} address.state The state. * @param {string} address.city The city. * @param {string} address.postcode The postal code. * * @return {Object} pluckedAddress An object containing shipping address that are needed to fetch an address. */ export const pluckAddress = ( { country, state, city, postcode } ) => ( { country, state, city, postcode: postcode.replace( ' ', '' ).toUpperCase(), } );
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings