I'm still a beginner, I created my own presentation site and added a carousel component with 3 slides with 3 products that have Price, Name, Description and Button (add to cart). I wanted to ask you, from Sitecore XP, is it possible to store the products in a custom database when I click on "add to cart", then take them from the custom db cart table in the shopping cart? I mean i d like to created a model to migrate a data storage model (id cart, application user id, etc). For shopping cart I have a separate page which is also in ShoppingCartLayout.cshtml. Or is the Sitecore E-Commerce module mandatory? Thanks, a tutorial or similar example would help a lot.
1 Answer
Yes, you can store your products data into a custom databse
and retrive them when user add them to shopping cart using simply Experience Platform (XP) only.
The Sitecore E-Commerce module is not mandatory
for this functionality, as you can implement custom shopping cart functionality using the normal ASP.Net MVC/core
application and a custom database.
Similarly, you can create a custom controller to handle the shopping cart page, which would retrieve the products from the custom database and display them on the page using EntityFramework
instead of Sitecore API.
And for implementaion using custom database, suggest you can follow the tutorial at Use a custom SQL provider to store form data ,then you can write your own code logic
to implement the functionality.
While it is strongly recommened
to integrate it with antoher Sitecore product which is called Sitecore Experience Commerce (XC)
,which has built-in functionality
for managing products, carts, checkouts, and other e-commerce features.
And furthermore, there is a powerful SAAS product
in Sitecore called OrderCloud.