Collapse Menu
Classic Docs
Digital Products and Fulfillments
Order Page Config, Design and Page Flow
Advanced Features
Subscriptions and Saasy
Your Account
Contact Support

Setting up a View Shopping Cart Link on Your Website

Overview

If you have multiple products in your store and you would like your customers to be able to see the current contents of their cart while continuing to browse products on your website, you can add a View Cart link. Before using this feature, make sure you have set up your Catalog Behavior and Catalog URL to make sure the Continue Shopping button in your FastSpring store takes a customer back to your website. The View Cart feature would also be especially useful if you are using page linking option 4: Shopping Cart - Add Product to Order or page linking option 5: Shopping Cart - View Product Detail Page.

If you have multiple products in your store and you would like your customers to be able to see the current contents of their cart while continuing to browse products on your website, you can add a View Cart link. Before using this feature, make sure you have set up your Catalog Behavior and Catalog URL to make sure the Continue Shopping button in your FastSpring store takes a customer back to your website. The View Cart feature would also be especially useful if you are using page linking option 4: Shopping Cart - Add Product to Order or page linking option 5: Shopping Cart - View Product Detail Page.

Setup

Place the following code, where companyID is replaced with your SpringBoard login Company ID, into the html of your website where you would like the View Cart link to appear. 

<script type="text/javascript" src="http://sites.fastspring.com/companyID/api/order.js"></script>
<a href="http://sites.fastspring.com/companyID/order/contents">View Cart ( 
<script type="text/javascript">
 document.write(FastSpringOrder.count);
</script> ) </a>

An example of what is included in order.js is:

var FastSpringOrder = {
"count":2,
"items":[{"name":"Product A"},
{"name":"Product B"}]
};

When you add products to your FastSpring store cart (even during testing), the number of different products will appear.

User-added image

Note: There is no way to use this feature to display the total cost of products in the cart or to display the total number of units in the cart.

We're Here to Help

If you need assistance with setting up a View Cart link on your website, please open a support ticket.

Try FastSpring

Get a free account and see why FastSpring is the ecommerce partner of choice for software providers around the world. Try our full-service ecommerce solution today to unlock revenue growth for your online company.

Important Notice

This documentation library is intended for FastSpring's Classic Platform users. If you use the url springboard.fastspring.com to log in to your FastSpring Store, you are a Classic Platform user.

Please visit fastspring.com/docs to access our latest documentation.

Continue to Classic documentation

Hide Notice for 30 Days