Add custom button to add product to cart from non-store page

Hi there,
I’m looking for a way to allow users to immediately add a product to the basket from the landing page, without having to link to the product page first and then add it from there.

Not too savvy with code, which is where I think the answer would be, linking SKU to a onClick event… of sorts. Am I close? :joy:

If you use a dataset you dont need any code. How are you displaying the products that the user can add to the basket?

This should help:

You will need to find out the product id of the particular product that you want to add, and call the function on button click.