How to add product to cart using link from blog

Shopify Partner
25 0 4

I would like to generate a links so user could easily from blog page to add product to cart.


I know about 

  1. <p><a href="">Buy this item</a></p>

    but it redirect direct to checkout page

Is it possible to have a link which will just add product to cart and implement discount code.



Replies 3 (3)

Shopify Staff
2217 247 506

Hey, @resboss 


What you are looking for are known as pre-loaded cart permalinks. We actually have a step-by-step guide here on how you can create them. This will allow you to copy/paste them into your blog posts for visitors to click on and quickly make a purchase.


If there is anything else I can help you with, please let me know.

Dirk | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Shopify Partner
25 0 4

but I just need to add to card not to redirect to checkout page. Is that possible?

Shopify Partner
29 1 9

here you go - 

https://{store-name}{variant-id} Creates Tutorials, How-To's and Share Insight about Shopify, E-commerce, Web, Tech, AI, Analytics, SEO, PPC, Marketing and More.