<!-- You can use custom layout. This is just for the example -->
<div style="max-width: 1902px; margin: 0 auto; padding: 0 20px;">
<header style="margin: 50px 0; display: flex; justify-content: center;">
<!-- #apicart-cart-dropdown is the target element for the Cart dropdown component. You can move it wherever you want -->
<div id="apicart-cart-dropdown"></div>
</header>
<main>
<!-- #apicart is the target for the application -->
<div id="apicart"></div>
</main>
</div>
<script src="https://cdn.jsdelivr.net/npm/@apicart/vue-components@1.0.0-alpha7/dist/bundles/default/default.full.min.js"></script>
<script>
Apicart
.setDevEnv()
.configure({
// Replace tokens with your PUBLIC tokens from the administration
store: new Apicart.Store({ token: "9mCu3DlBCa4REI?Q7kKly!Rw6!_FvD8K_dgPXe1b20?r6!sPTQMyCpq_ADt!jXOD" }),
payments: new Apicart.Payments({ token: "Q84lNQyLl?nBGvKxxbcdc!nWFKEZrK?L_Is2r9IaOJo14ONbXw1SMlPIeptcaFza" }),
vueComponents: {
category: {
products: {
list: [
// Replace tokens with your PUBLIC tokens from the administration
"https://cdn.apicart.dev/external/wlhv1egho2u4p0e0nkne2mks7f9btigi/data/04/4.json",
"https://cdn.apicart.dev/external/wlhv1egho2u4p0e0nkne2mks7f9btigi/data/03/3.json",
"https://cdn.apicart.dev/external/wlhv1egho2u4p0e0nkne2mks7f9btigi/data/02/2.json",
"https://cdn.apicart.dev/external/wlhv1egho2u4p0e0nkne2mks7f9btigi/data/01/1.json"
]
}
}
}
})
.initVueBundle();
</script>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.