Add to Cart from Custom database

Hey
Thank you for the reply. I tried using SPI but how to make sure that when I add product to the cart, this SPI is getting called? I have added code into the custom extensions but not sure if it’s getting called before a product is added to cart