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#

SettingWhy
Price listsOne 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 pricingTurn on the channel option for automatic pricing, so the cart takes its prices from the price lists.
Payment methodsThe methods the hosted checkout offers.
Shipping methodsThe methods the hosted checkout offers, with their zones and prices.
BrandingLogo, favicon, colours and language of the hosted checkout and account.
Sender addressThe email address the channel sends from. Without it, the verification and password emails aren't sent.
Stock checkOptional. 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#

SettingWhy
Checkout domainUnder Domains, add the domain, such as checkout.shop.com, for the hosted checkout, and point it with a CNAME to hosted.afostocommerce.com.
Checkout linkIn 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#

SettingWhy
Account domainUnder Domains, add the domain, such as account.shop.com, for the hosted account, with the same CNAME.
My account linkIn the channel's account settings, pick that domain. The emails link to it, and the checkout only offers logging in when it is set.
ReturnsOptional. 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#

SettingWhy
Price lists per customerOptional. Link a price list to an organisation or a contact to give them their own prices.
Approving organisationsAn organisation from requestBusinessAccount can only be used after it is approved in Afosto.
Query Runnerhttps://afosto.app/graphql

No query loaded

Click play on any code block in the docs to load a query here.