Hi guys,



On my website (still in development) the user clicks on an image of the product, which opens up a lightbox (via javascript:EJEJC_show('URL', 'i', false):wink: in order to allow them to choose certain variables about their order.



They need to choose the size of the product, and this would normally be done via an HTML form (I'm using FFC at the moment, prior to migrating to FFCPro). However the form opens the cart in a new window. Is there a way to force the cart to open in the same lightbox?



Thanks,

-Rob Watkiss

  • created

    Aug '11
  • last reply

    Aug '11
  • 1

    reply

  • 1.0k

    views

  • 2

    users

First, please bear in mind that we provide the FatFreeCart.com service on a strictly do-it-yourself basis with no support whatsoever (that's a major reason it's free :^), so you're expected to figure it out and troubleshoot any issues you may have with that on your own. If you decide to upgrade to an E-junkie cart subscription (aka "FatFreeCart Pro"), that does of course include support. Since we don't normally provide support for FatFreeCart, our support team isn't very familiar with how it works, but we can try to answer your question this time.



Honestly, I'm not quite sure why a cart button in the EJEJC_show overlay doesn't just display the cart in that same overlay, but it's probably because that appears to use an iframe in the overlay to display the desired page content. I'm not sure if a page in an iframe even can hook back to the parent page containing that iframe; if it's at all possible, I might guess it has something to do with needing an adjustment to the onClick= attribute in the button code, but I don't know enough JavaScript personally to figure out what adjustment might be needed. I can only ask our Development team to consider the matter.



I was able to get it to work, albeit a bit clumsily, by adding the script portion of View Cart code in the page being shown in the lightbox overlay. However, that actually opened a new lightbox overlay inside the original overlay's iframe, rather than just re-rendering the original overlay, so this solution is obviously not ideal.