e-comerce-product-widget-test

1.8.50 • Public • Published

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

  1. create shadow root
  2. create sympl widget DOM element and attach it to shadow root
  3. create dialog element and it's shadow and attach it to document body
  4. Error checks (needs refactoring)
  5. get store code
  6. get store config
  7. check if the price is within limits, if yes continue else do nothing
  8. attach sympl font face to the main DOM
  9. set locale
  10. attach modal event listeners
  11. get store tenure
  12. show minified text if applicable
  13. add modal plan figure
  14. check if using Shopify and set widget price
  15. show sympl fees if applicable
  16. handle store offer
  17. update translation variables
  18. translate

Readme

Keywords

Package Sidebar

Install

npm i e-comerce-product-widget-test

Weekly Downloads

2,537

Version

1.8.50

License

ISC

Unpacked Size

800 kB

Total Files

27

Last publish

Collaborators

  • irostom