Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Best add-on for lightbox and multiple product images


WebDev22

Recommended Posts

Posted

What would be the best add-on(s) for giving our site lightbox and multiple product images? We're using v2.2 RC2a. Other add-ons installed include Header Tags SEO and Ultimate SEO URLs.

Posted

What would be the best add-on(s) for giving our site lightbox and multiple product images? We're using v2.2 RC2a. Other add-ons installed include Header Tags SEO and Ultimate SEO URLs.

 

 

Hi,

 

I use Ultrapics on all my sites and works like a charm. Give it a try, after backing up all you files and database before tackling any add-on!

 

Barbara

Posted

Roll your own. Very simple.

 

Amend admin/categories.php to add as many extra images as you wish. Amend product_info.php to call them and display via whichever lightbox type script you wish, (personally, I use jquery fancybox).

 

Doing it this way, rather than using an already made contribution is a good way to learn a bit about PHP, a bit about osCommerce and a bit about javascript. Or follow the advice of the previous poster if you prefer to remain relatively clueless.

Posted

Roll your own. Very simple.

 

Amend admin/categories.php to add as many extra images as you wish. Amend product_info.php to call them and display via whichever lightbox type script you wish, (personally, I use jquery fancybox).

 

Doing it this way, rather than using an already made contribution is a good way to learn a bit about PHP, a bit about osCommerce and a bit about javascript. Or follow the advice of the previous poster if you prefer to remain relatively clueless.

 

Burt, do you think the person in question would know how to do that? I gave the contribution (as they asked for one) that is not tough to install and would work within the hour.

 

Barbara

Posted
Burt, do you think the person in question would know how to do that?

 

Yes.

 

I gave the contribution (as they asked for one) that is not tough to install and would work within the hour.

 

Barbara

 

Once a person starts to build their own codebase, they realise that it is actually fairly easy and that an immense amount of satisfaction is derived from not having to rely on someone elses mangled codebase. Of course it is obvious that a person on Day 1 of osCommerce would find it difficult to build an order_total or shipping module, but an easy modification like adding extra images is very possible. And once the first one is out of the way, the next is made so much easier.

Posted

Once a person starts to build their own codebase, they realise that it is actually fairly easy and that an immense amount of satisfaction is derived from not having to rely on someone elses mangled codebase. Of course it is obvious that a person on Day 1 of osCommerce would find it difficult to build an order_total or shipping module, but an easy modification like adding extra images is very possible. And once the first one is out of the way, the next is made so much easier.

I get your point, but wear so many hats. Immediate efficiency is of supreme importance. At this point, I just need to get it set up and checked off my list.

Posted

Roll your own. Very simple.

 

Amend admin/categories.php to add as many extra images as you wish. Amend product_info.php to call them and display via whichever lightbox type script you wish, (personally, I use jquery fancybox).

 

Doing it this way, rather than using an already made contribution is a good way to learn a bit about PHP, a bit about osCommerce and a bit about javascript. Or follow the advice of the previous poster if you prefer to remain relatively clueless.

 

I get the point here, and I have had snippets of personal satisfaction in recoding something to meet my needs, but I am one of those persons who is a shop owner that does osC coding as he can, given background/training, etc. Rather than a coder that runs an osC Shop.

 

My day is filled with a bunch of things necessary for civilized life, and I squeeze in running my shop and coding as I can. I take advantage of and rely on the add ons. Most of my work is monkey see monkey do, because I often don't grasp exactly what's going on with the code itself.

 

But now and then I see what the the code is doing, and that is personally satisfying. And practical for later application.

 

But I will likely never be a well skilled coder, my life (and wife) :-" keep me busy with other stuff. So I will continue to use add ons, and once in a great while, maybe, just maybe figure out how to do what I want all by my self.

 

Onward and upward....

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Posted

I guess I tend to look at things like this from a coder POV, rather than a shopkeep POV. Point taken guys :)

 

The other thing about being able to code, even a little bit, is that it keeps you away from paying coders to help - always a good thing for a business run on a budget!

Posted

I guess I tend to look at things like this from a coder POV, rather than a shopkeep POV. Point taken guys :)

 

The other thing about being able to code, even a little bit, is that it keeps you away from paying coders to help - always a good thing for a business run on a budget!

 

I am sure there are a lot of folks in the more shop keeper than coder catetory here in the forums and we rely on the "experts" to keep us on track. Thank you much for all you and the others do that help us out. :)

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Posted

Hi,

 

I use Ultrapics on all my sites and works like a charm. Give it a try, after backing up all you files and database before tackling any add-on!

 

Barbara

Hi Barbra is there a screen shot of Ultrapic anywhere.

Thanks

Posted

What would be the best add-on(s) for giving our site lightbox and multiple product images? We're using v2.2 RC2a. Other add-ons installed include Header Tags SEO and Ultimate SEO URLs.

 

Hi,

Only my opinion

 

the best, simplest and very good is the

http://addons.oscommerce.com/info/7008

 

from spooks but not sure if it works with the easy populate????

 

I now use the ultra pics again with the update from Mr Fimble

 

http://addons.oscommerce.com/info/6167

 

John

To improve is to change; to be perfect is to change often.

 

  • 4 months later...
Posted

Third post down - Burt. His suggestion to roll your own is the approach I would like to take.

 

Been trying to search for the approach to amend categories.php, product info and so on. Is there a plan of attack posted for this?

 

Tony

  • 6 months later...
Posted

I'm back at it again and need to roll out a lightbox for another store. This time I'm considering taking Burt's approach.

Posted

I'm taking Burt's advice and am working on manually integrating Fancybox for my popup images, but I'm having some trouble figuring out what code needs to be stripped away. Here is the original code with the existing Javascript popup window:

<script language="javascript"><!--
document.write('<?php echo '<a id="single_image" href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>

Posted

It's getting there. I've got it to where when you click on the "Click to enlarge" feature, it resizes the window and opens the image in an HTML file, but need some help in figuring out how to get it to open the image file. Here's the code on the product_info.php page:

 

<script language="javascript"><!--
document.write('<?php echo '<a id="example2" href="' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>

Posted

I just realized I was trying to use a CSS property that wasn't defined where I thought. I've since pasted it into the CSS file and it works. Thanks, Burt, for the inspiration.

Archived

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

×
×
  • Create New...