Results 1 to 4 of 4

[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 ...

      
  1. #1
    New Member
    Join Date
    Apr 2005
    Posts
    12
    Rep Power
    0


    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

  2. #2
    Member
    Join Date
    Dec 2004
    Posts
    75
    Rep Power
    8


    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

  3. #3
    New Member
    Join Date
    Apr 2005
    Posts
    12
    Rep Power
    0


    Default

    Thank you so much Really preciate it.

    It's a nice looking store you got there, are u hosting it yourself to ?

  4. #4
    Member
    Join Date
    Dec 2004
    Posts
    75
    Rep Power
    8


    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...
    Brian Neuman
    Webmaster
    www.honeybeadjewelry.com

Similar Threads

  1. Various small problems, well sort of small
    By spottedhaggis in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 03-23-2006, 09:53 AM
  2. A few things I need help with...
    By Anonymous in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 07-08-2004, 07:50 PM
  3. SPEED things up?
    By dragon5 in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 07-05-2004, 08:06 AM
  4. Need help on several things...
    By laonux in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 08-04-2003, 06:16 PM
  5. How do I modify these two things?
    By laonux in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 06-29-2003, 11:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •