Zen Cart Logo
Forums / General Questions / Lightbox

Lightbox

Views: 725

Results 1 to 3 of 3
11 May 2011, 6:59 PM
#1
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Lightbox

Just looking for a few opinions or advice here.

Question 1: How much lightbox effects are to many?

Reason: I want to get rid of messageStack & put it in a simple lightbox but I also have the images in a lightbox and the login in a lightbox.

Question 2: Will this have any affect on the way zc functions?

Thanks for your advice/opinion in advance!

12 May 2011, 1:19 AM
#2
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Lightbox

Well I added the lightbox effect to messageStack & I don't think it is used enough to annoy potential shoppers/browsers.

I have tested in all areas - only issue I found is when **Display Cart After Adding Product **value=false and you add product to cart (product_info page) - at this point I think the customer should go to cart.

I tried an if statement to block lightbox, it still added product to cart but did not take them to it.

this is the if statement I tried:

<?php

	if ($current_page_base == 'product_info'){
  //do nothing
}  else {
  // Display all header alerts via messageStack:
  if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
  }
  if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
  echo htmlspecialchars(urldecode($_GET['error_message']));
  }
  if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
   echo htmlspecialchars($_GET['info_message']);
} else {

}
}
?>

Just FYI, open to suggestions!

17 Aug 2011, 3:15 PM
#3
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Lightbox

may i ask how and where you implemented the lightbox code please?