NikolayBezay

Sodastream prepare product data for dyncamic Campaign.

May 17th, 2022 (edited)
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.51 KB | None | 0 0
  1. <script>
  2. (function() {
  3.     try {
  4.         const dataSourceUrl = 'https://feeds.datafeedwatch.com/64183/52bb0f7cc9cb9bbc6e9589624d3e5fb5c5465ed7.json';
  5.         fetch(dataSourceUrl)
  6.         .then(res => res.json())
  7.         .then(json => {
  8.             if (json && json.products && json.products.length > 0) {
  9.                window.localStorage.setItem('upsell_Vertical_Carousel', JSON.stringify(json));
  10.             }
  11.         });
  12.     } catch(requestError) {
  13.         console.log(requestError);
  14.     }
  15. })();
  16. </script>
Add Comment
Please, Sign In to add comment