How do I insert "Add to cart" button in my custom module?
I am new to Drupal Commerce and I am loving it. I have a unique requirement where my product is a Card Design, hence it needs a lots of customization, I have done the customizations part in my custom module. Now I would like to display an "Add to Cart" button in my custom module, clicking which that product and (X) number of quantity should be added to the Drupal Commerce Cart.
To make a note here is what I am looking for.
1- Add to cart button my my custom modules to template page where I know the product id, and upon clicking it, it should add the product to the cart. I also want to pass the number of quantity from the module it self.
2- Then it should take the user to the cart page.
Thanks in advance.