E-junkie Help >

Using E-junkie with SharePoint Online

Using E-junkie with SharePoint Online

First, make sure you allow users to run custom script on your SharePoint site. If you don't have access to this feature, you will need to obtain the non-javascript version of our cart button code.

Yu can use SharePoint Online's Embed Code tool to paste your E-junkie Cart or Buy Now button code like so:

  1. Browse to the web page where you want to add or edit the code.
  2. From the Page tab, choose Edit;
  3. Place your cursor where you want the inserted code to appear;
  4. From the Insert tab, click Embed Code;
  5. An Embed panel will appear, where you can paste the button code you have copied from E-junkie Seller Admin;
  6. When finished, click the Insert button.

Note: You only need one copy of your View Cart code on each page that has any number of Add to Cart buttons. Your View Cart code is unique to you but the same for all your products, so it doesn't matter which item's button codes screen you copy it from in Seller Admin. Our View Cart code adds some javascript to your page that allows the cart to display as an overlay inside your page.

That takes care of your View Cart or Buy Now code, but for pasting our Add to Cart code, there's one hitch: SharePoint's Embed Code tool looks for a <script> tag in the pasted code and, if there isn't one, it removes all traces of javascript from the pasted code, which is necessary for our Add to Cart buttons to display the overlay-style cart in your page (note this does not affect the non-javascript version of our cart button code). We've found a couple different approaches you can use to make the SharePoint Online page editor save your pasted Add to Cart code as-is without modifications:

  1. If you use the Embed Code tool, you can paste our Add to Cart code, but then you should manually add <script></script> in front of our standard code before you click Insert, like so:

    <script></script><a href="https://www.e-junkie.com/ecom/gb.php?c=cart&ejc=2&cl=20545&i=100100" target="ej_ejc" class="ec_ejc_thkbx" onclick="return EJEJC_lc(this);"><img src="https://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"></a>

  2. Just use the Script Editor Web Part editor under the Insert tab > Web Part > Media and Content > Script Editor to paste and insert your button codes; however, this Web Part tool may not be available to you depending on your SharePoint settings and access permissions.