Take an in-depth look at the Cart module. Cart module is a block of cart components that provide complete Shopify cart functionality to be used globally on your Webflow site.
Cart module is a block of cart components that provide complete cart functionality to be used globally on your store. Cart module is a required component in every Shopyflow page that allows your users to add a product to cart.
Even though it is present both in Shopyflow Starter theme and the Shopyflow Relume Starter theme as a component in every page, you can also insert it into your store using the Shopyflow Webflow App.
When you are building a page with Shopyflow that allows customers to add a product to cart you are always going to need a Cart Module in the page for the user to see that the product is added to Cart. Before introducing our Buy Module to the product page template let's add a Cart popup to the page.
To add the Cart Module open the Shopyflow App in Webflow and follow the below steps:
Once you pasted the Cart Module, it is placed in a fixed positioned popup. The cart popup element becomes visible with a class called sf-cart-opened, after a new element is successfully added to the cart. To hide the cart popup initially on the page load:
Cart Module is wrapped in the --Cart Container component. --Cart Container is a Div Block that is assigned the sf-cart attribute and it is the outer wrapper element of the Cart Module.
Inside of the --Cart Container you are given the following main parts
When you introduce a Cart Module to your page, you are going to find the following components in it.
Cart Container element contains the cart module components. It is the outermost element of the Cart Module.
It features the list of the products that are added to cart by the user. Each product in the list is displayed using the --Cart Item component as a template.
Cart summary is the block of components that displays the cart total, subtotal, applied discounts and coupons and the checkout button.
Discount code block contains the discount code input and the list of applied discount codes.
Cart Empty Message is a Div Block that becomes visible when there are no products in the cart, and hidden when a product is added.