Results 1 to 6 of 6

Help help help = Category listing output

This is a discussion on Help help help = Category listing output within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I posted this at the official site and didn't get an answer. I've looked in every database and nearly every ...

      
  1. #1
    Anonymous
    Guest


    Default Help help help = Category listing output

    I posted this at the official site and didn't get an answer. I've looked in every database and nearly every php file. I've read the documentation and searched both boards.

    All I want to do is change the look of the output when you click on a category link. It has alternating color rows; it shouldn't be so hard to find. Why is it not a box file? If I were to create a box file for it, once I find the code, where would I include it on the index file?

    It has to be on the index because it's querying through it. Please please, someone please tell me where to find the code for the output of the categories.

  2. #2
    Anonymous
    Guest


    Default

    The one file you missed - stylesheet.css

  3. #3
    Anonymous
    Guest


    Default

    Right right. I see all the pretty colors, the odd and even thing, but what is calling to that and from where exactly in the page?

    I want to squish the boxes so that three products are displayed side by side with the words underneath them. I'll know what to do when I get there, but where is the code for that?

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    There is a mod for this already at oscommerce.com. You should check it out. Here is the link:

    http://www.oscommerce.com/downloads....ons,166/type,3
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    Anonymous
    Guest


    Default

    Heck yeah! Wonderful. Thank you.

    I'm not sure what version I have because it came from my host, but for future reference, I had to make hacks to it. I do have Buy Now enabled and Images on.

    Line 29 - 35
    Switched
    Code:
    $listing_values['products_name'] = $listing_values['products_name'];
        $lc_text= '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id']) . '">' . $listing_values['products_name'] . '</a><br>';
        if ($listing_values['specials_new_products_price']) {
                 $lc_text .= ' <s>' .  $currencies->display_price($listing_values['products_price'], $listing_values['products_tax_class_id']) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing_values['specials_new_products_price'], $listing_values['products_tax_class_id']) . '</span> ';
                } else {
                  $lc_text .= ' ' . $currencies->display_price($listing_values['products_price'], $listing_values['products_tax_class_id']) . ' ';
                }
    TO

    Code:
    $listing_values['products_name'] = $listing_values['products_name'];
        $lc_text= '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id']) . '">' . $listing_values['products_name'] . '</a><br>';
        if ($listing_values['specials_new_products_price']) {
                 $lc_text .= ' <s>' .  $currencies->display_price($listing_values['products_price'], $listing_values['products_tax_class_id']) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing_values['specials_new_products_price'], $listing_values['products_tax_class_id']) . '</span> ';
                } else {
                  $lc_text .= ' ' . $currencies->display_price($listing_values['products_price'], $listing_values['products_tax_class_id']) . ' ';
                }

  6. #6
    Anonymous
    Guest


    Default

    Carp. Make that

    FROM
    Code:
        $listing_values['products_name'] = tep_get_products_name($listing_values['products_id']);
        $lc_text= '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id']) . '">' . $listing_values['products_name'] . '</a><br>';
        if ($listing_values['specials_new_products_price']) {
                  $lc_text .= ' <s>' .  $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing_values['specials_new_products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</span> ';
                } else {
                  $lc_text .= ' ' . $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . ' ';
                }
    TO

    Code:
    $listing_values['products_name'] = $listing_values['products_name'];
        $lc_text= '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id']) . '">' . $listing_values['products_name'] . '</a><br>';
        if ($listing_values['specials_new_products_price']) {
                 $lc_text .= ' <s>' .  $currencies->display_price($listing_values['products_price'], $listing_values['products_tax_class_id']) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing_values['specials_new_products_price'], $listing_values['products_tax_class_id']) . '</span> ';
                } else {
                  $lc_text .= ' ' . $currencies->display_price($listing_values['products_price'], $listing_values['products_tax_class_id']) . ' ';
                }

Similar Threads

  1. How to change number of columns inside category listing
    By shirster in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 05-17-2006, 03:45 AM
  2. error output in printable catalog?
    By doumawis in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 02-28-2005, 01:54 AM
  3. I want to show products in category listing
    By misbell in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 01-27-2005, 07:33 PM
  4. Creating "list price" listing category
    By southwestseas in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 06-30-2004, 07:57 PM
  5. Change in result output ... How ?
    By aliharis2004 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 01-19-2004, 06:15 PM

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
  •