Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div> <script type='text/javascript' src='http://app.ecwid.com/script.js?6872207'></script> <script type='text/javascript'> xProductBrowser("categoriesPerRow=3","views=grid(3,3) list(10) table(20)","categoryView=grid","searchView=list","style=","defaultCategoryId=12722333"); </script> </div>
- <script>
- // productURLs array as product Id => redirection URL
- // Please use this array to define your own redirection rules
- var productURLs = {
- '38144130' : 'http://www.google.com',
- '42138296' : 'http://www.ecwid.com'
- };
- // Add handler for Ecwid's OnPageLoad event
- if (
- typeof(Ecwid) == 'object'
- && typeof(Ecwid.OnPageLoad) == 'object'
- ) {
- Ecwid.OnPageLoad.add(function(page) {
- // Redirect user if needed
- if (
- typeof(page) == 'object'
- && 'PRODUCT' == page.type
- && typeof(productURLs[page.productId]) == 'string'
- && productURLs[page.productId].length > 0
- ) {
- window.parent.location = productURLs[page.productId];
- }
- });
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement