How do I create a link that will automatically add a product to my cart?
Filed in Advanced Customisation
The following steps will help you create a link – to use in your blog or on a 3rd party site – that will automatically add a product to your Big Cartel cart, i.e. a Buy Now button for your Big Cartel shop.
Obtain the Item number that Big Cartel has allocated to the product and option combination you wish to add to cart. To do this, visit your shop front, add the product (with the correct option selected) to your cart and proceed to your PayPal checkout. At the first PayPal checkout page your product will be listed with an Item number:
In this example our Item number is 26768388
Generate the correct URL by adding the following 3 parts..
Your cart page URL (replace with your own cart page URL) The query string (copy this exactly) Your product ID number (replace with your own product ID) http://myshop.bigcartel.com/cart ?cart%5Badd%5D%5Bid%5D= 26768388
..resulting in the full URL..
Create your link HTML – see HTML a tag – using the full URL..
<a href="http://myshop.bigcartel.com/cart?cart%5Badd%5D%5Bid%5D=26768388">Click to buy the new Wave Park Cruiser</a>
As explained in How do I insert an image into my Big Cartel shop page?, link tags can contain an image and also be made to open in a new window.
Following the above steps, we find the Item number of Aarcade’s Uptown theme – with installation – to be..
..and our cart page is located at..
..giving us the full URL..
..and our link HTML..
<a href="http://www.aarcadethemes.com/cart?cart%5Badd%5D%5Bid%5D=15275821" target="_blank">Pick up Aarcade's Milk theme with installation today!</a>
..which finally results in..