Composable Commerce functionalities
The commercetools Frontend Store Launchpad for B2C Retail uses the commercetools Composable Commerce APIs to execute actions.
The Store Launchpad for B2C Retail implements Composable Commerce functionality by using the Composable Commerce extension. Following are the actions available in the Store Launchpad for B2C Retail and the related Composable Commerce API actions.
For more information, see the following files in the actionControllers
folder of the Composable Commerce extension:
AccountController.ts
CartController.ts
ProductController.ts
ProjectController.ts
WishlistController.ts
Account
commercetools Frontend action | commercetools Composable Commerce action |
---|---|
Create Customer account: register | Create (sign up) Customer |
Request confirmation email token: requestConfirmationEmail | Create email token for Customer |
Confirm Customer's email with token: confirm | Verify email of Customer |
Login account: login | Authenticate (sign in) Customer |
Change password of account: password | Change password of Customer |
Generate token to reset password of account: requestReset | Create password reset token for Customer |
Reset password: reset | Reset password of Customer |
Update account details - first name: update | Set First Name |
Update account details - last name: update | Set Last Name |
Update account details - salutation: update | Set Salutation |
Update account details - date of birth: update | Set Date of Birth |
Add billing and shipping addresses: addAddress | Add Address |
Update billing and shipping addresses: updateAddress | Change Address |
Remove billing and shipping addresses: removeAddress | Remove Address |
Set default billing address: setDefaultBillingAddress | Set Default Billing Address |
Set default shipping address: setDefaultShippingAddress | Set Default Shipping Address |
Cart
commercetools Frontend action | commercetools Composable Commerce action |
---|---|
Get a Cart for an anonymous or logged in account: getCart | Get Cart |
Add Line Item to Cart: addToCart | Add LineItem |
Update Cart Line Item: updateLineItem | Change LineItem Quantity |
Remove Cart Line Item: removeLineItem | Remove LineItem |
Update Cart details - email: updateCart | Set Customer Email |
Update Cart details - shipping address: updateCart | Set Shipping Address |
Update Cart details - billing address: updateCart | Set Billing Address |
Create Order from Cart: checkout | Create Order from Cart |
Get Orders for account: getOrders | Query Orders |
Get Shipping Methods: getShippingMethods | Query ShippingMethods |
Get Shipping Methods for matching location: getShippingMethods | Get matching Shipping Methods for a Location |
Get Shipping Methods for a Cart: getAvailableShippingMethods | Get matching Shipping Methods for a Cart |
Set Shipping Method: setShippingMethod | Set ShippingMethod |
Redeem Discount: redeemDiscount | Add DiscountCode |
Remove Discount: removeDiscount | Remove DiscountCode |
Add Payment by invoice: addPaymentByInvoice | Create Payment |
Update Payment: updatePayment | Update Payment |
Product
commercetools Frontend action | commercetools Composable Commerce action |
---|---|
Get Product by SKU or ID: getProduct | Query ProductProjections |
Query Products with filters, sorting, and pagination: query | Query ProductProjections |
Query Categories with pagination: queryCategories | Query Categories |
Get searchable attributes: searchableAttributes | Query ProductTypes |
Project
commercetools Frontend action | commercetools Composable Commerce action |
---|---|
Get Project settings: getProjectSettings | Get Project |
Wishlist
commercetools Frontend action | commercetools Composable Commerce action |
---|---|
Create wishlist: createWishlist | Create ShoppingList |
Get a wishlist for an anonymous or logged in account: getWishlist | Get ShoppingList |
Add Product to wishlist: addToWishlist | Add ShoppingListLineItem |
Remove Product from wishlist: removeLineItem | Remove ShoppingListLineItem |
Update Product count from wishlist: updateLineItemCount | Change ShoppingListLineItem Quantity |