Author Topic: Lightbox from category product listing  (Read 14075 times)

Dragonrider

  • Beginner
  • *
  • Posts: 14
    • Wharfedale Festival of Performing Arts
Re: Lightbox from category product listing
« Reply #15 on: January 02, 2010, 11:26:00 am »
This thread worked for me even though it's in VM1.0 read only forums, it worked fine on my 1.1.4 version.

Have a look if you wish: http://steadhallfirearms.co.uk (Just remember to let the page fully load please before clicking the images, Ta).

salazar44

  • Beginner
  • *
  • Posts: 7
Re: Lightbox from category product listing
« Reply #16 on: January 02, 2010, 22:43:19 pm »
i wish i can see a sample of what you are trying to achieve

ArhoN

  • Beginner
  • *
  • Posts: 10
Re: Lightbox from category product listing
« Reply #17 on: August 23, 2010, 15:24:22 pm »
@Gragonrider

I followed the instructions at your link but I cannot understand where to put : "then echo the $product_image var inside the same template."

I am trying to add <?php echo $product_image; // product image ?>
 at the browse_notables.tpl which i use but there is no lightbox at the browse page.

As I see you have managed to use lightbox at the browse page I would appreciate your help.3
Thanx.

ps I tried all the other suggestions but didn't work for me.

saag_dreams@yahoo.com

  • Beginner
  • *
  • Posts: 4
Re: Lightbox from category product listing
« Reply #18 on: January 09, 2012, 00:20:43 am »
thanks man,, really great job,, you helped me a lot.. thanks a lot....


can u just tell me how to hover if i want...

i have a page which works when hovers ,, but doesnt works in flat product list...
here is the hover code of mine browse page...

</script>
 <div class="browseProductContainer">

  <div style="float:left;width:90%" >
     <a href="<?php echo $product_full_image ?>" onClick="changePage('<?php echo $product_flypage ?>');return false;" class="preview" title="<?php echo $product_name ?>">
        <?php echo ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" border="0" title="" alt=""' ) ?>
       </a>
       <h2>
  <a href="<?php echo $product_flypage ?>"><?php echo $product_name ?></a>
  </h2>
  <div><?php echo $VM_LANG->_('PHPSHOP_CART_SKU') ?>:
     <?php echo $product_sku ?></div><br />
  <p ><?php echo $product_price ?></p>
  </div>
 
  <br style="clear:both;" />



now mine code.. in browse listable,, according to you and i thankyou for that,,,




$data[$row][] = '<a href="'.$product['product_flypage'].'" title="'.$product['product_name'].'">'.$product['product_name'].'</a>';
   if( _SHOW_PRICES && $auth['show_prices'] ) {
         $data[$row][] = $product['product_price'];
      }
      $data[$row][] = '<a href="'.$product['product_full_image'].'" title="'.$product['product_name'].'" target="_blank" rel="lightbox">'
                  . ps_product::image_tag( $product['product_thumb_image'] )
.'</a>';
   


i have the js files for hover which works in category browse,, but i want to show them in browse_ listable page..,. got stucked..
please help me,, i think you are too good.

cpicoli

  • Beginner
  • *
  • Posts: 1
Re: Lightbox from category product listing
« Reply #19 on: January 12, 2012, 21:47:00 pm »
Hello,

I made the changes described above and it worked just right! Thank you!

Now I need to do the same thing in the module "latest products" that in my home but I could not make it work ... By clicking on the image instead of opening the lightbox it opens a new home.

Anyone done this? Can you help?

Regards,

Cristian