menu

SFRA / Server-side JS / Namespace: CheckoutAddressServices

CheckoutAddressServices

Methods

(static) Base/CheckoutAddressServices-AddNewAddress()

CheckoutAddressServices-AddNewAddress : The CheckoutAddressServices-AddNewAddress. Only In multiShip. get invoked when saving a new shipping address

Parameters:
Type Description
middleware

server.middleware.https

middleware

csrfProtection.validateAjaxRequest

httpparameter

productLineItemUUID - product line item UUID

httpparameter

originalShipmentUUID - shipment UUID

httpparameter

shipmentUUID - shipment UUID

httpparameter

shipmentSelector - A shipment UUID containing the address that matches the selected address or ab_" of the selected address from the address book

httpparameter

dwfrm_shipping_shippingAddress_addressFields_firstName - Input field for the shoppers's first name

httpparameter

dwfrm_shipping_shippingAddress_addressFields_lastName - Input field for the shoppers's last name

httpparameter

dwfrm_shipping_shippingAddress_addressFields_address1 - Input field for the shoppers's address 1 - street

httpparameter

dwfrm_shipping_shippingAddress_addressFields_address2 - Input field for the shoppers's address 2 - street

httpparameter

dwfrm_shipping_shippingAddress_addressFields_country - Input field for the shoppers's address - country

httpparameter

dwfrm_shipping_shippingAddress_addressFields_states_stateCode - Input field for the shoppers's address - state code

httpparameter

dwfrm_shipping_shippingAddress_addressFields_city - Input field for the shoppers's address - city

httpparameter

dwfrm_shipping_shippingAddress_addressFields_postalCode - Input field for the shoppers's address - postal code

httpparameter

dwfrm_shipping_shippingAddress_addressFields_phone - Input field for the shoppers's phone

httpparameter

dwfrm_shipping_shippingAddress_shippingMethodID - input field for shipping method ID

httpparameter

dwfrm_shipping_shippingAddress_giftMessage - input field for shopper's gift message

httpparameter

csrf_token - hidden input field CSRF token

category

sensitive

returns

json

serverfunction

post

Source:

(static) Base/CheckoutAddressServices-CreateNewAddress()

CheckoutAddressServices-CreateNewAddress : The CheckoutAddressServices-CreateNewAddress returns an object containing: 1. uuid 2. the account model of the current shopper 3. the order model (This get invoked when clicking on "New Address" on shipping page)

Parameters:
Type Description
middleware

server.middleware.https

querystringparameter

productLineItemUUID - The product line item UUID

httpparameter

productLineItemUUID - The product line item UUID

category

sensitive

returns

json

serverfunction

post

Source:

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.