Select Page
Edit on
Codepen.io

Show / Hide Buy / Remove Buttons


x
14
 
1
<!--
2
    Initialize the Store Builder Library
3
-->
4
<script
5
    id="fsc-api"
6
    src="https://sbl.onfastspring.com/sbl/1.0.2/fastspring-builder.min.js"
7
    type="text/javascript"
8
    data-storefront="fastspringexamples.test.onfastspring.com/popup-fastspringexamples">
9
</script>
10
<span data-fsc-item-path="phot-io-main-app" data-fsc-item-selection-smartdisplay>The product is in the cart, so we can remove it below.</span>
11
<span data-fsc-item-path="phot-io-main-app" data-fsc-item-selection-smartdisplay-inverse>The product App is not in the cart, so we can add it below.</span>
12
13
<button data-fsc-item-path-value="phot-io-main-app" data-fsc-action="Add" data-fsc-item-path="phot-io-main-app" data-fsc-item-selection-smartdisplay-inverse>Add to Cart</button>
14
<button data-fsc-item-path-value="phot-io-main-app" data-fsc-action="Remove" data-fsc-item-path="phot-io-main-app" data-fsc-item-selection-smartdisplay>Remove from Cart</button>
1
 
1
1
 
1

Related Topics