Setting up#
Before a storefront can sell through the hosted checkout, the channel needs these settings in Afosto. Everything here is set in the Afosto back office, not through the storefront.
The channel#
| Setting | Why |
|---|---|
| Price lists | One price list per currency in the channel's pricing settings. A cart can only use a currency that has a list. See Price lists. |
| Automatic pricing | Turn on the channel option for automatic pricing, so the cart takes its prices from the price lists. |
| Payment methods | The methods the hosted checkout offers. |
| Shipping methods | The methods the hosted checkout offers, with their zones and prices. |
| Branding | Logo, favicon, colours and language of the hosted checkout and account. |
| Sender address | The email address the channel sends from. Without it, the verification and password emails aren't sent. |
| Stock check | Optional. With allocation turned on and locations linked to the channel, the cart refuses SKUs that are out of stock. |
The storefront token#
Create a storefront token under Credentials with the purpose Storefront and pick the channel. The storefront uses it for every call; see Tokens.
The hosted checkout#
| Setting | Why |
|---|---|
| Checkout domain | Under Domains, add the domain, such as checkout.shop.com, for the hosted checkout, and point it with a CNAME to hosted.afostocommerce.com. |
| Checkout link | In the channel's checkout settings, pick that domain. The checkout finds the channel from it. Without your own domain, the checkout runs on <name>.afostocommerce.com. |
See Domains.
The hosted account#
| Setting | Why |
|---|---|
| Account domain | Under Domains, add the domain, such as account.shop.com, for the hosted account, with the same CNAME. |
| My account link | In the channel's account settings, pick that domain. The emails link to it, and the checkout only offers logging in when it is set. |
| Returns | Optional. Turn on returns for the channel to let customers request them in the account. |
ℹ
Tip:
Put the storefront, the checkout and the account on one domain, for example www.shop.com,
checkout.shop.com and account.shop.com. Then a customer who logs in on one of them is logged
in on all three. See Sharing the login.
Business customers#
| Setting | Why |
|---|---|
| Price lists per customer | Optional. Link a price list to an organisation or a contact to give them their own prices. |
| Approving organisations | An organisation from requestBusinessAccount can only be used after it is approved in Afosto. |