e-comerce-product-widget-test
v1.8.50
Published
embeddable widget to show sympl payment info
Downloads
9,995
Readme
e-commerce-product-deatils-widget
This repo is the JS Lib that will be used as shared sympl markting widget to be shared with any merchant in our network on his e-commerce platform in the product details page
logic Order
- create shadow root
- create sympl widget DOM element and attach it to shadow root
- create dialog element and it's shadow and attach it to document body
- Error checks (needs refactoring)
- get store code
- get store config
- check if the price is within limits, if yes continue else do nothing
- attach sympl font face to the main DOM
- set locale
- attach modal event listeners
- get store tenure
- show minified text if applicable
- add modal plan figure
- check if using Shopify and set widget price
- show sympl fees if applicable
- handle store offer
- update translation variables
- translate