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.

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.

464.png

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.

Have more questions? Submit a request

Comments

Powered by Zendesk