Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Archived

This topic is now archived and is closed to further replies.

MountainMan

Addding product name to colorbox popup in product_info

Recommended Posts

I have reviewed the archived discussions of similar questions, but have not found my solution.    Am trying to implement the code below found in some of those other discussions, but it does not appear to have any effect whatsoever on the popup.  Seems like it should be the solution I need...any suggestions why it wont work?

Am using modified and somewhat upgraded BS Gold.

 

<script type="text/javascript">
$(function() {
 $('#piGal').css({
   'visibility': 'hidden'
 });
 $('#piGal').photosetGrid({
   layout: '<?php echo $photoset_layout; ?>',
   width: '250px',
   highresLinks: true,
   rel: 'pigallery',
   onComplete: function() {
  $('#piGal').css({ 'visibility': 'visible'});
  $('#piGal a').colorbox({
    maxHeight: '90%',
    maxWidth: '90%',
       title: '<?php echo $product_info['products_name']; ?>',
    rel: 'pigallery'
  });
  $('#piGal img').each(function() {
    var imgid = $(this).attr('id').substring(9);
    if ( $('#piGalDiv_' + imgid).length ) {
	  $(this).parent().colorbox({ inline: true, href: "#piGalDiv_" + imgid });
    }
  });
   }
 });
});
</script>

Share this post


Link to post
Share on other sites

×