Guest User

Embedding the Ecwid store with affiliate ID

a guest
Jul 31st, 2013
74
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     $affiliate_id = intval( $_REQUEST['affiliates'] );
  3. ?>
  4. <iframe style="display:none;" src="http://example.com/?affiliates=<?php echo $affiliate_id; ?>"></iframe>
  5.  
  6. <div id="my-store-XXXXXX">If you your browser does not support JavaScript, please proceed to its <a href="http://example.ecwid.com">simple HTML version</a>.</div><div>
  7. <script type="text/javascript" src="http://app.ecwid.com/script.js?XXXXXX" charset="utf-8"></script><script type="text/javascript"> xProductBrowser("categoriesPerRow=3","views=grid(3,3) list(10) table(20)","categoryView=grid","searchView=list","style=","id=my-store-XXXXXX");</script>
  8. </div>
RAW Paste Data