osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

turning off other images for this product

This is a discussion on turning off other images for this product within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; One more question from a noob. I can't seem to find a setting to turn off the 'other images for ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-11-2005, 06:26 PM
Lurker
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lgreitzer
Default turning off other images for this product

One more question from a noob. I can't seem to find a setting to turn off the 'other images for this product' box. Any hints? TIA.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 10-27-2005, 01:32 PM
New Member
 
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Bsnrjones
Default RE: turning off other images for this product

I wish I knew! I have fumbled around in the templates, but not sure which part to remove.

I just have a thumbnail, and a big image. I don't need to show extra images, and just want to turn that box off.

Anyone??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-31-2006, 01:27 PM
Member
 
Join Date: Feb 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
spottedhaggis
Default RE: turning off other images for this product

I did this manually by editing the template and removed the code.

Its surprisingly easy to be honest

load up the following page into notepad.

catalog/templates/yourtemplate/content/product_info.tpl.php

Its easier in dreamweaver, so if you have dreamweaver, load that page into it, change the view to design view, and look for a large clear table near the center, directly under this is the table you need to remove.

For those who do not have or know dreamweaver, open the file in notepad and look for and delet the following lines (based on OSCMAX RC2

<tr>
<td>
<div class="screenshotsHeader">
<div class="screenshotsHeaderText"><?php echo TEXT_OTHER_PRODUCT_IMAGES; ?></div>
</div>
<div class="screenshotsBlock">
<?php include(DIR_WS_MODULES . 'dynamic_mopics.php'); ?>
</div>
</td>
</tr>

---------------------------------------
so it will now look like this

</td>
</tr>
<?php
//// BEGIN: Added for Dynamic MoPics v3.000
?>
<?php
//// END: Added for Dynamic MoPics v3.000
?>
<tr>

and thats all there is too it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-31-2006, 04:12 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 468
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default RE: turning off other images for this product

Um, don't delete the lines, move them to the mopics file where they belong. Then when product_info.tpl.php runs it will go to mopics, and if there is no mopics to display it won't put up anything, but if there are mopics it will put up the box.

Bad coding, goes against style (osc style guide is to display if there is something to display, and do not display if there is nothing to display, unlike IBM's styleguide of "this page intentionally left blank.").

product_info.tpl.php

Code:
                //// BEGIN:  Added for Dynamic MoPics v3.000
?>
<!--      <tr>
        <td>
                                <div class="screenshotsHeader">
                                        <div class="screenshotsHeaderText"><?php
 echo TEXT_OTHER_PRODUCT_IMAGES; ?></div>
                                </div>
                                <div class="screenshotsBlock"> -->
                                        <?php include(DIR_WS_MODULES . 'dynamic_
mopics.php'); ?>
        <!--                    </div>
        </td>
      </tr> -->
<?php
                //// END:  Added for Dynamic MoPics v3.000
?>
modules/dynamic_mopics.php

Code:
        if (mopics_file_exists(DIR_FS_CATALOG . str_replace($search, $replace, D
YNAMIC_MOPICS_PATTERN))) {
//
// moved the mopics box to here from the products info template
//
?>      <tr>
        <td>
                                <div class="screenshotsHeader">
                                        <div class="screenshotsHeaderText"><?php
 echo TEXT_OTHER_PRODUCT_IMAGES; ?></div>
                                </div>
                                <div class="screenshotsBlock">
<?
and

Code:
                // All thumbnails have been found and displayed; clear all of th
e CSS floats
                echo '<div class="clearScreenshots"><hr /></div>';
//
// moved the mopics box from the products template to here
//
?>                                </div>
        </td>
      </tr>
<?
        } else {
                // No extra images found for this product
//              echo '<p class="noScreenshots"><span class="smallText">' . TEXT_
NO_MOPICS . '</span></p>';
        }
?>
Now the code displays NOTHING if there is nothing to display, and mopics if it finds them.
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 04-24-2006, 06:21 PM
Member
 
Join Date: Feb 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
spottedhaggis
Default RE: turning off other images for this product

Thats cool, but you still end up with the "No other images currently available" which is the part I want rid off.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 04-24-2006, 10:16 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,982
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: turning off other images for this product

C'mon, use your noggin! met00 provided such a neat solution. All you need to do is look at the code, the answer is right there ...

Remove this:
Code:
' . TEXT_
NO_MOPICS . '
Or just edit the value for the contstant TEXT_NO_MOPICS to be blank in /includes/languages/english/product_info.php. There is always more than one way to get the job done.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 08-04-2006, 01:35 AM
Member
 
Join Date: Apr 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
clauska
Default Re: RE: turning off other images for this product

Quote:
Originally Posted by met00
Um, don't delete the lines, move them to the mopics file where they belong. Then when product_info.tpl.php runs it will go to mopics, and if there is no mopics to display it won't put up anything, but if there are mopics it will put up the box.

Bad coding, goes against style (osc style guide is to display if there is something to display, and do not display if there is nothing to display, unlike IBM's styleguide of "this page intentionally left blank.").

product_info.tpl.php

Code:
                //// BEGIN:  Added for Dynamic MoPics v3.000
?>
&lt;!--      &lt;tr>
        &lt;td>
                                &lt;div class="screenshotsHeader">
                                        &lt;div class="screenshotsHeaderText">&lt;?php
 echo TEXT_OTHER_PRODUCT_IMAGES; ?>&lt;/div>
                                &lt;/div>
                                &lt;div class="screenshotsBlock"> -->
                                        &lt;?php include(DIR_WS_MODULES . 'dynamic_
mopics.php'); ?>
        &lt;!--                    &lt;/div>
        &lt;/td>
      &lt;/tr> -->
&lt;?php
                //// END:  Added for Dynamic MoPics v3.000
?>
modules/dynamic_mopics.php

Code:
        if (mopics_file_exists(DIR_FS_CATALOG . str_replace($search, $replace, D
YNAMIC_MOPICS_PATTERN))) {
//
// moved the mopics box to here from the products info template
//
?>      &lt;tr>
        &lt;td>
                                &lt;div class="screenshotsHeader">
                                        &lt;div class="screenshotsHeaderText">&lt;?php
 echo TEXT_OTHER_PRODUCT_IMAGES; ?>&lt;/div>
                                &lt;/div>
                                &lt;div class="screenshotsBlock">
&lt;?
and

Code:
                // All thumbnails have been found and displayed; clear all of th
e CSS floats
                echo '&lt;div class="clearScreenshots">&lt;hr />&lt;/div>';
//
// moved the mopics box from the products template to here
//
?>                                &lt;/div>
        &lt;/td>
      &lt;/tr>
&lt;?
        } else {
                // No extra images found for this product
//              echo '&lt;p class="noScreenshots">&lt;span class="smallText">' . TEXT_
NO_MOPICS . '&lt;/span>&lt;/p>';
        }
?>
Now the code displays NOTHING if there is nothing to display, and mopics if it finds them.

Just to be clear you make a comment out in product_info.tpl.php.

And you make a file named dynamic_mopics.php that contains the following code:

Code:
        if (mopics_file_exists(DIR_FS_CATALOG . str_replace($search, $replace, D
YNAMIC_MOPICS_PATTERN))) {
//
// moved the mopics box to here from the products info template
//
?>      &lt;tr>
        &lt;td>
                                &lt;div class="screenshotsHeader">
                                        &lt;div class="screenshotsHeaderText">&lt;?php
 echo TEXT_OTHER_PRODUCT_IMAGES; ?>&lt;/div>
                                &lt;/div>
                                &lt;div class="screenshotsBlock">
&lt;?

// All thumbnails have been found and displayed; clear all of th
e CSS floats
                echo '&lt;div class="clearScreenshots">&lt;hr />&lt;/div>';
//
// moved the mopics box from the products template to here
//
?>                                &lt;/div>
        &lt;/td>
      &lt;/tr>
&lt;?
        } else {
                // No extra images found for this product
//              echo '&lt;p class="noScreenshots">&lt;span class="smallText">' . TEXT_
NO_MOPICS . '&lt;/span>&lt;/p>';
        }
?>
Is this correct?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 09-27-2006, 11:25 AM
Member
 
Join Date: Aug 2003
Posts: 38
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
FlipC
Default RE: Re: RE: turning off other images for this product

Answer to last questions is NO.
Unfortuantely some can code but cant write isntructions. So here you go.

Open file- tempaltes/your-tempalte/content/product_info.tpl.php

Remove the following code: (lines 124-137 for me)

Code:
//// BEGIN:  Added for Dynamic MoPics v3.000
?>
&lt;!--      &lt;tr>
        &lt;td>
                                &lt;div class="screenshotsHeader">
                                        &lt;div class="screenshotsHeaderText">&lt;?php
 echo TEXT_OTHER_PRODUCT_IMAGES; ?>&lt;/div>
                                &lt;/div>
                                &lt;div class="screenshotsBlock"> -->
                                        &lt;?php include(DIR_WS_MODULES . 'dynamic_
mopics.php'); ?>
        &lt;!--                    &lt;/div>
        &lt;/td>
      &lt;/tr> -->
&lt;?php
                //// END:  Added for Dynamic MoPics v3.000
?>
Save and upload.


Open file- includes/modules/dynamic_mopics.php
Find the following code: (line 42 for me)

Code:
if (mopics_file_exists(DIR_FS_CATALOG . str_replace($search, $replace, DYNAMIC_MOPICS_PATTERN))) {
Insert the following code below that:
Code:
//// moved the mopics box to here from the products info template
//
?>      
        &lt;tr>
        &lt;td>
         &lt;div class="screenshotsHeader">
         &lt;div class="screenshotsHeaderText">
&lt;?php
 echo TEXT_OTHER_PRODUCT_IMAGES; 
 ?>     
            &lt;/div>
            &lt;/div>
           &lt;div class="screenshotsBlock">
NEXT search for (in same file)
Code:
TEXT_NO_MOPICS
(line 112 at bottom for me)
Just delete it.

Save and upload.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to FlipC For This Useful Post:
caw (07-12-2007)
  #9  
Old 10-09-2006, 07:29 PM
New Member
 
Join Date: Jan 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
learoypc
Default RE: Re: RE: turning off other images for this product

If your not going to ever use it, I'm with spottedhaggis.

Fast fix and easy to do.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Missing Product Images driwashsolutions osCMax v2 Customization/Mods 0 12-08-2006 03:13 PM
PRODUCT IMAGES jschafer52 osCMax v2 Customization/Mods 1 07-11-2006 06:46 PM
Other images for this product box? [wicked] osCMax v2 Features Discussion 1 08-17-2005 07:36 PM
Turning off the background images mcdanie1 osCommerce 2.2 Modification Help 1 09-30-2003 10:02 AM
Product images not showing? Picman osCommerce 2.2 Modification Help 2 06-12-2003 03:01 PM


All times are GMT -8. The time now is 12:43 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax