1 / 8
Mar 2012

I'm experimenting using a different lightbox (so the site maintains a consistant look), but would like to keep the shopping cart.



I've removed all the e-junkie javascript from my site, so the cart opens in my lightbox. The problem is that the cart displays the 'go back' button rather than the 'continue shopping' button.



Would it be possible to add a Get key/value to the url to force the 'continue shopping' button (or even a remove it option, forcing use of the modal close button). I could then add the Get key/value dynamically (this would then force it if javascript is enabled, but fall back to the default cart option if not).

  • created

    Feb '12
  • last reply

    Mar '12
  • 7

    replies

  • 1.5k

    views

  • 2

    users

  • 2

    links

Because ours is a centrally-managed service shared in common among all our merchants, it's not possible to modify how it works for one seller without applying the same modification to all other sellers, aside from the user-specific settings provided in Seller Admin of course.



The "Go Back" behavior is intended to cover cases where the seller is unable to use our standard javascript-enhanced cart button codes (which would display the cart as a lightbox inside the seller's page) nor even retain the target= attribute of our non-JS button codes (which would open the cart in a popup window/tab), so in that case the button works like an ordinary link, taking the buyer away from the seller's page to our cart in the same window; since there's no way for our cart to determine what URL the buyer should be returned to, we can only provide a Go Back button that works like the browser's Back button, stepping back in their browser history.



You may want to consider using our box.js cart script for non-cart lightbox-display needs in the rest of your site; this can be done like so:



<a href="javascript:EJEJC_show('/url/goes/here.html', 'i', false);">Link text here</a>

OK, I was hoping something along the lines of the following add to cart button code:

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



where:

true = 'continue shopping' button;

false = no 'continue shopping' button;

if cart_close is not present = behaviour the same as it is now;



This would give a bit of extra flexibility in the use of the cart, and would not affect any current users.

Unfortunately we don't have any provision for that. The Continue Shopping button either hides our lightbox overlay (standard cart) or closes the cart popup window/tab (when the cart opens in "fallback" mode), so we would have no way to make a button in our cart hide your nonstandard lightbox.

I know I'm labouring the point. So here goes...



The cart javascript function 'showContinueShopping()' determines whether to show a 'go back' button (history.back()), or a 'continue shopping' button (closeWindow()).



When I display the cart in my own choice of lightbox, the first time it will display the 'continue shopping' button with the javascript closeWindow() property. From then on it will display the 'go back' button with the javascript closeWindow() property.



I was hoping you could add the option for your customers to force the cart to use the 'continue shopping' button or force the cart to not display either of the 'go back' or 'continue shopping' buttons. This could be done using the above 'cart_close=false' url parameter. If it's in the 'add to cart' button url, the cart detects the parameter is present (and set to false) and doesn't display either the 'go back' or 'continue shopping' buttons; so cart users will use the close button on the lightbox to continue. If the parameter is not there, the cart behaves as it does now and nobody has to modify or change their existing code; you've just provided a useful (to me anyway) feature.



I do now realise that forcing the 'continue shopping' will not work as I wish, but the option to not display either of the 'go back' or 'continue shopping' buttons would be a useful feature for customers who want to use their own lightbox with the e-junkie cart.



I know you provide ways to customise the cart with jQuery, which sort of acknowledges that your customers do understand some code and do want to modify the cart appearance. If you're still reading this far, I have now finished labouring my point.



p.s. an official mini-cart would be great too.

sorry...



3rd paragraph should read '... From then on it will display the 'go back' button with the javascript history.back() property.

I'll pass your suggestion along to Development, and we'll at least add it to the wishlist for consideration as a possible new feature at some point in the future.