1 / 6
Jun 2010

I want to create a popup lightbox effect like the EJ Cart. There are several scripts on the web that I could possibly use, however since the JS for the cart is already loaded, is there a way I can use that.



That is, can I create a link to a web page that pops up just like the EJ cart using the code from EJ rather that add more JS to my page.

  • created

    Jun '10
  • last reply

    Jun '10
  • 5

    replies

  • 1.3k

    views

  • 4

    users

  • 3

    links

Sorry for the delay in responding to your post. First, I do want to warn you this is not something we officially support. By looking at the code this should work but you will need to try it. The code you will want to use is:



EJEJC_show(URL, 'i', false);



The URL above is the URL you want to appear in the light box. It cannot point to an image, it must point to an actual web page.

Just tried it. Really nice. Worked first time.



the windows seems to be fixed in size, is this correct or is there a way to specify that?

You can use cart customization to override the cart overlay's default size with a fixed height/width of your choosing:

http://www.e-junkie.com/ej/help.custom-cart.htm



E.g., this would go just before the "// -->" line in the standard View Cart code you obtained from Seller Admin:



function EJEJC_config() {

EJEJC_WIDTH = 1000;

EJEJC_HEIGHT = 600;

}



If you are already using function EJEJC_config for other customizations, just add the lines above which are missing from your code.