Storefront
Setting up beans.js on your online store
Including beans.js
<script src="https://cdn.trybeans.com/lib/ultimate/edge/vanilla/ultimate.beans.js?shop=<<public_id>>"></script>Initializing beans.js
<script>window.beans_cjs_id='1234567890'; window.beans_cjs_email='[email protected]';</script>const config = {
currentPage: '',
onLogin: () => (window.location = '/login'),
onRegister: () => (window.location = '/register'),
liana: {
onAbout: () => (window.location = '/rewards'),
pagePlaceholder: document.getElementById('rewards'),
},
bamboo: {
onAbout: () => (window.location = '/referral'),
pagePlaceholder: document.getElementById('referral'),
},
};Last updated
Was this helpful?