osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

[HELP] Need some help with small adjustment things.

This is a discussion on [HELP] Need some help with small adjustment things. within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; My store is almost done, but there are still some things i don't like but i can't seem to figure ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-26-2005, 11:57 AM
New Member
 
Join Date: Apr 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Squirrel
Default [HELP] Need some help with small adjustment things.

My store is almost done, but there are still some things i don't like but i can't seem to figure out myself. So i'll hope someone will gimme a little hand on these ones

1 ) I wanna get rid of the product image on the top ( The one with the circle around it )



2 ) The number 8 just under the image is the quantity, but why doesn't is say quatity ? It's very unclear for the moment. who knows that that's the quantity ? I wanna add text to it like "8 On Stock" or something like that.

Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 04-27-2005, 10:01 AM
Member
 
Join Date: Dec 2004
Posts: 75
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 4
bdneuman is on a distinguished road
Default Re: [HELP] Need some help with small adjustment things.

Quote:
Originally Posted by Squirrel
My store is almost done, but there are still some things i don't like but i can't seem to figure out myself. So i'll hope someone will gimme a little hand on these ones

1 ) I wanna get rid of the product image on the top ( The one with the circle around it )



2 ) The number 8 just under the image is the quantity, but why doesn't is say quatity ? It's very unclear for the moment. who knows that that's the quantity ? I wanna add text to it like "8 On Stock" or something like that.

Thanks in advance
For the upper right image (I removed this, too), go to catalog/templates/your_template_folder/contents/index_products.tpl.php and look for this code:

Code:
// Get the right image for the top-right
    $image = DIR_WS_IMAGES . 'table_background_list.gif';
    if (isset($HTTP_GET_VARS['manufacturers_id'])) {
      $image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");
      $image = tep_db_fetch_array($image);
      $image = $image['manufacturers_image'];
    } elseif ($current_category_id) {
      $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
      $image = tep_db_fetch_array($image);
      $image = $image['categories_image'];
    }
?>
            <td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
          </tr>
And change it to this:

Code:
// Get the right image for the top-right
/*  Don't do the query
    $image = DIR_WS_IMAGES . 'table_background_list.gif';
    if (isset($HTTP_GET_VARS['manufacturers_id'])) {
      $image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");
      $image = tep_db_fetch_array($image);
      $image = $image['manufacturers_image'];
    } elseif ($current_category_id) {
      $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
      $image = tep_db_fetch_array($image);
      $image = $image['categories_image'];
    }
*/
?>
<!--  removed image            <td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> -->
          </tr>
As for the quantity, look in either catalog/modules/product_listing_col.php or product_listing.php (looks like you're using listing by columns). You should find this code:

Code:
          case 'PRODUCT_LIST_QUANTITY':
            $lc_align = 'right';
            $lc_text = ' ' . $listing[$x]['products_quantity'] . ' <br>';
            break;
You could modify it like this:

Code:
          case 'PRODUCT_LIST_QUANTITY':
            $lc_align = 'right';
            $lc_text = ' ' . $listing[$x]['products_quantity'] . ' in stock<br>';
            break;
__________________
Brian Neuman
Webmaster
www.honeybeadjewelry.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 04-27-2005, 10:59 AM
New Member
 
Join Date: Apr 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Squirrel
Default

Thank you so much Really preciate it.

It's a nice looking store you got there, are u hosting it yourself to ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 04-27-2005, 01:16 PM
Member
 
Join Date: Dec 2004
Posts: 75
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 4
bdneuman is on a distinguished road
Default

Quote:
Originally Posted by Squirrel
Thank you so much Really preciate it.

It's a nice looking store you got there, are u hosting it yourself to ?
No - I use Startlogic for host. Thanks for the compliments - I've poured much time and effort into it, mostly because I'm learning as I go...
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
Various small problems, well sort of small spottedhaggis osCMax v2 Installation issues 2 03-23-2006 09:53 AM
A few things I need help with... Anonymous osCMax v1.7 General Mods Discussion 1 07-08-2004 07:50 PM
SPEED things up? dragon5 osCommerce 2.2 Modification Help 3 07-05-2004 08:06 AM
Need help on several things... laonux osCommerce 2.2 Modification Help 4 08-04-2003 06:16 PM
How do I modify these two things? laonux osCommerce 2.2 Modification Help 3 06-29-2003 11:30 AM


All times are GMT -8. The time now is 07:53 PM.


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