Use the Product Catalog portal template to let logged-in users browse products and add items to their cart. Before using this template, your base needs:
A table that contains your products.
A linked-record field on the Products table that points to your users or customers table. This field will be used to determine which products were added to the user's cart.
At least one field on the users table that users can use to log in, such as email.
This template creates a portal with two views:
Catalog: A gallery view where users browse available productsCart: Where users see the products they added (i.e. that are linked to them)
To create it:
Click
Create extension.Choose the
Product Catalogtemplate.Select the Airtable table that contains your products.
Select the user field that should connect cart records to the logged-in user.
Click Next to choose login fields, whether to show a user profile, and which profile fields to include if enabled. Then choose whether users may create records and which fields appear on the product edit form. Use Back and Next to review your selections, then create the portal.
Review the child forms before sharing the portal. If record creation is enabled, the generated Add to Cart form is assigned to creating products, while opening an existing product uses a separate expanding form. To let users add existing products to their cart, configure that expanding form using the self-linking guide. If users should only choose existing products, turn off product-record creation.
The generated creation form’s submit button is labeled Add to Cart. This label does not automatically apply to the separate expanding form.
The Cart view only shows records connected to the logged-in user, so each user sees their own cart items.