Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help With Multiple Images for Products


ashamun

Recommended Posts

Hello all,

 

I have an issue I'm hoping someone can help me with.

 

I'm working on a template site that was purchased from Template Monster.  After we got it, Template Tuning upgraded it from 2.2 to 2.3.  Now I have support for multiple images for products and can upload them just fine in the CMS but I don't think my template supports it.

 

Can anyone help??  If you want to check out the site, it's www.dexslist.com/index.php.

 

Thanks a bunch to everyone in advance.

Link to comment
Share on other sites

I can  not see any upgrade there at all from an old rc2 site  to a 2.3 site??

 

Looks to me like an old stoneage site from a template provider which you are now asking us how to upgrade??

 

Please ask the template provider !!

 

Regards

joli

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

 

Link to comment
Share on other sites

:thumbsup:

 

http://www.templatemonster.com/oscommerce-templates/30290.html

 

Quite sure you will get a lot of support  there

 

multiplie images is standard with any new 2.3.... install  (been out now x 3 years)

 

so why the problem with a template that is x 2 months old ??

 

No idea why it does not support multiple  images shame really

 

Asking  the person who sold you the template  would be a good idea

 

This is an oscommerce forum not a template monster :devil:  forum I do not actually like template monster because they tend to abuse oscommerce in my opinion taking advantage of people selling old templates etc  as is exactly what has happened to you

 

Regards

Joli

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

 

Link to comment
Share on other sites

@@joli1811

 

I know multiple images is standard with 2.3.  After they upgraded it to 2.3, I was able to add multiple images in the admin section and they even show up in the database.  But the product page just isn't showing them.  That's the part I need help with.

Link to comment
Share on other sites

So claim your money back  hope you paid with credit card should be no probelm and install 2.3.4 ( IT IS FREE) which is the only version which is interesting even better go for bs2.3.4 which is responsive

 

Regards

Joli

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

 

Link to comment
Share on other sites

@@joli1811

 

I'll try to reach out to them but they've never really been any help in the past.  The only reason I went to Template Monster is because they had pre-built sites and I don't know how to build one from the ground up.

 

If I go with 2.3.4, I'll have to style it from scratch.  Right?

Link to comment
Share on other sites

Well to be honest I could never recomend a template monster as it is exactly that a MONSTER now wait until tomorrow and watch your thread sure a few other guys will voice there opinion and do not take my words as gold just my opinion

 

Install first a new 2.3.4 and decide first if you want to leap into bootstrap RESPONSIVE  which has not so many addons

 

bootstrap

 

https://github.com/gburton/osCommerce-234-bootstrap

 

or go with the standard 960 grid

 

standard

 

http://www.oscommerce.com/Products

 

now both are free

 

If you need help stying there is a great template maker version available  COMMERCIAL

 

or a great book if you are a do it yourself person COMMERCIAL

 

just look at the links at the top of this site

 

Or ask someone to make your idea reality  in the commercial support section.

 

Really most of this outside template stuff is  bullshit in your example they are seliing you a 5-6 YEAR PAST SELL DATE site

 

most important is that the software behind works which is where most of these pretty templates go ass up look good but do not work

 

so first a decent install and then either change the design / template yourself if you can or ask someone to do if you can not

 

first is important your site and database is clean that is where you put the work and time in

 

getting the  lady (your site) a nice dress / design is just a drop on top so comes later

 

Regards

Joli

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

 

Link to comment
Share on other sites

The part that shows images is catalog/product_info.php

 

either fancy box  up to 2.3.3.4

<?php
    if (tep_not_null($product_info['products_image'])) {
      $pi_query = tep_db_query("select image, htmlcontent from " . TABLE_PRODUCTS_IMAGES . " where products_id = '" . (int)$product_info['products_id'] . "' order by sort_order");

      if (tep_db_num_rows($pi_query) > 0) {
?>

    <div id="piGal" style="float: right;">
      <ul>

<?php
        $pi_counter = 0;
        while ($pi = tep_db_fetch_array($pi_query)) {
          $pi_counter++;

          $pi_entry = '        <li><a href="';

          if (tep_not_null($pi['htmlcontent'])) {
            $pi_entry .= '#piGalimg_' . $pi_counter;
          } else {
            $pi_entry .= tep_href_link(DIR_WS_IMAGES . $pi['image'], '', 'NONSSL', false);
          }

          $pi_entry .= '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $pi['image']) . '</a>';

          if (tep_not_null($pi['htmlcontent'])) {
            $pi_entry .= '<div style="display: none;"><div id="piGalimg_' . $pi_counter . '">' . $pi['htmlcontent'] . '</div></div>';
          }

          $pi_entry .= '</li>';

          echo $pi_entry;
        }
?>

      </ul>
    </div>

<script type="text/javascript">
$('#piGal ul').bxGallery({
  maxwidth: 300,
  maxheight: 200,
  thumbwidth: <?php echo (($pi_counter > 1) ? '75' : '0'); ?>,
  thumbcontainer: 300,
  load_image: 'ext/jquery/bxGallery/spinner.gif'
});
</script>

<?php
      } else {
?>

    <div id="piGal" style="float: right;">
      <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image'], '', 'NONSSL', false) . '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), null, null, 'hspace="5" vspace="5"') . '</a>'; ?>
    </div>

<?php
      }
?>

<script type="text/javascript">
$("#piGal a[rel^='fancybox']").fancybox({
  cyclic: true
});
</script>

<?php
    }
?>

or color box 2.3.4

<?php
    if (tep_not_null($product_info['products_image'])) {
      $photoset_layout = '1';

      $pi_query = tep_db_query("select image, htmlcontent from " . TABLE_PRODUCTS_IMAGES . " where products_id = '" . (int)$product_info['products_id'] . "' order by sort_order");
      $pi_total = tep_db_num_rows($pi_query);

      if ($pi_total > 0) {
        $pi_sub = $pi_total-1;

        while ($pi_sub > 5) {
          $photoset_layout .= 5;
          $pi_sub = $pi_sub-5;
        }

        if ($pi_sub > 0) {
          $photoset_layout .= ($pi_total > 5) ? 5 : $pi_sub;
        }
?>

    <div id="piGal">

<?php
        $pi_counter = 0;
        $pi_html = array();

        while ($pi = tep_db_fetch_array($pi_query)) {
          $pi_counter++;

          if (tep_not_null($pi['htmlcontent'])) {
            $pi_html[] = '<div id="piGalDiv_' . $pi_counter . '">' . $pi['htmlcontent'] . '</div>';
          }

          echo tep_image(DIR_WS_IMAGES . $pi['image'], '', '', '', 'id="piGalImg_' . $pi_counter . '"');
        }
?>

    </div>

<?php
        if ( !empty($pi_html) ) {
          echo '    <div style="display: none;">' . implode('', $pi_html) . '</div>';
        }
      } else {
?>

    <div id="piGal">
      <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name'])); ?>
    </div>

<?php
      }
    }
?>

<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%',
        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>
To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

I'll try to reach out to them but they've never really been any help in the past.  The only reason I went to Template Monster is because they had pre-built sites and I don't know how to build one from the ground up.

 

You had problems in the past and you keep buying from there?

 

Instead of giving your money to outdated and unsupported (as you say) solutions, why not check out the osCommerce partners template section?

 

There are templates and books available

 

Not only that they support the osCommerce project, you'll also get support your self. Related feedback is available here: http://www.oscommerce.com/forums/forum/99-developer-feedback/

Link to comment
Share on other sites

  • 4 weeks later...

Archived

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

×
×
  • Create New...