Cart Summary
A component for displaying the cart summary with selected options and total price.
Cart Summary
Summary of selected product options with total price calculation
Your Container Bundle
Universal Container
Base product
1
$1200
Medium
Size
+$300
Metal
Material
+$500
Blue
Color
+$100
Handles
Accessories
1
+$150
Lock
Accessories
1
+$250
Shipping
From East Coast Warehouse
To ZIP: 10001
+$225
Total Price:
$2,725
Usage
The CartSummary component displays a summary of the selected product options, shipping information, and calculates the total price. It provides buttons to remove or change options, adjust quantities, and add the product to the cart.
Props
product- The base product objectmodificationGroups- Array of modification groupsselectedOptions- Object containing selected optionsshippingInfo- Object containing shipping informationzipCode- The ZIP code for shippingquantities- Object containing quantities for each product and accessoryonQuantityChange- Function called when a quantity is changedonRemoveOption- Function called when an option is removedonScrollToGroup- Function called to scroll to a modification grouponAddToCart- Function called when the Add to Cart button is clicked