1 / 7
May 2010

Hi



I want to insert my 'Add to shopping cart' URL in a graphic that is not web-based, and therefore does not have its own URL. FYI it's a graphic in a DNL ebook, but it could equally be a graphic in a Word or DTP document. I've found the relevant cart html code in the Admin section, but don't know how to adapt it for this particular scenario. Can you help please?



Thanks in advance



George

  • created

    May '10
  • last reply

    May '10
  • 6

    replies

  • 1.1k

    views

  • 4

    users

  • 3

    links

After pottering around with the HTML code, I have managed to get a link from a graphic within the ebook to the shopping cart using the following:



www.e-junkie.com/ecom/gb.php?c=cart&i=720846&cl=118384&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"



However, the shopping cart webpage has a pop-up talking about cross-site scripting, so I'm still not there.



Can anyone help?

8 days later
E-junkieGuruOnly this part is the actual button URL that you can use independently from the full button code:



https://www.e-junkie.com/ecom/gb.php?c=cart&i=720846&cl=118384&ejc=2








PordThat's done it! Thanks.





I have also found that this works for what I was hoping to achieve however I have now noticed that the pop up window of the cart no longer works. I have also done this for my view cart buttons - is there some code missing from the cut down version that instigates this?

Our standard cart that appears as an overlay "inside" your own page will only work that way if you use the complete, ready-made HTML code we provide for your cart buttons in your E-junkie Seller Admin, and you must have at least one complete block of your View Cart code on every page that has any number of Add to Carts.



If you are stripping down the button code to just the bare href= URL alone, perhaps to use that in a plaintext email or in a link-maker widget on a site where you are not allowed to paste HTML, then that would lack the code necessary to make the overlay-style cart work, so in this case the cart button/link would work like a normal link, displaying the cart as a regular page by itself.



If you at least want these basic cart button/links to open a new window/tab, your link-maker widget may have some way to specify a "target" name. Just give the same target name to all your cart-button links to have them open a new window/tab for the cart and keep reusing that separate window/tab for subsequent cart views.