Select Page
Actions Documentation
Edit on
Codepen.io

data-fsc-action=”Remove”

Product-level action which instructs the Library to remove the product defined in data-fsc-item-path-value from the cart


x
29
 
1
<!--
2
    DEMO INFO
3
    data-fsc-action="Remove" will change the 'selected' value of a product from
4
    true to false and also reset the product to the default quantity of 1.
5
-->
6
<button data-fsc-item-path-value="phot-io-main-app" data-fsc-action="Remove">Remove</button>
7
8
<!-- 
9
    DEMO EFFECTS
10
-->
11
<br /><br />
12
In cart:
13
<span data-fsc-item-path="phot-io-main-app" data-fsc-item-selected></span>
14
15
<!--
16
    DEMO SETUP
17
        - Initialize the Store Builder Library
18
        - Add item to cart
19
-->
20
<script
21
    id="fsc-api"
22
    src="https://sbl.onfastspring.com/sbl/1.0.2/fastspring-builder.min.js"
23
    type="text/javascript"
24
    data-storefront="fastspringexamples.test.onfastspring.com/popup-fastspringexamples">
25
</script>
26
27
<script type="text/javascript">
28
    fastspring.builder.add('phot-io-main-app');
29
</script>
1
 
1
1
 
1

Related Topics