This is one of the simplest methods of using Shoprocket. It's perfect for adding a buy button to an existing product page of your website. However, please note that with the simple buy button method, no dynamic content is offered, it's simply a link that will open our add to cart modal.
When you create a new product, we will instantly generate an embeddable buy button for you which can be found in the "Embed this product" tab.
Here is an example of a Shoprocket site using simple buy buttons. As you can see, there is no sr-block as there would be normally, but instead a sr-add with the ID number of that product.
As shown here, sr-add and the product ID numbers are both circled.
We suggest placing it in your website footer to be included on every page.
Of course, your code snippet can be modified slightly. By default, the link will say Buy, but you can change this text to whatever you like, such as Buy now, as seen below.