0

I'm still a beginner, I created my 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, if is it possible to store the products in a custom database when I click on "add to cart", and then take them from the custom db cart table in the shopping cart? I mean I'd like to create a model to migrate a data storage model (ID cart, application user ID, etc). For the 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.

2 Answers 2

0

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.

0

You do not need to purchase an eCommerce service to implement cart/checkout functionalities.

All you need is a database, that too, you can get for free (trial, community edition etc...)

Create your tables carefully though. Based on the structure of your tables, your site functionality will be impacted. I would separate out cart, line items, shipping, billing tables for easier management.

You can take advantage of Session/Cookies to store relevant information along with cart id.

I have personally done a similar implementation in the past where I created an event management website for private community use.

Unfortunately, it is private so I cannot share the codebase. But, if you DM me, I can provide credentials so you can surf around. 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.