Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Listing


Guest

Recommended Posts

Hi all-

 

I am trying to get my normal product listings to look like the product listing that you get in products_new.php. I am wondering if anyone knows how to mess around with this.

 

Thanks alot,

Daniel

Link to comment
Share on other sites

hey noob-

 

I am trying to have my products listed in rows, liek on the products_new.php page ... not listed in columns like in the new products box...

 

any ideas?

 

-daniel

Link to comment
Share on other sites

no.... the default lists in rows, but also has other columns like price, weight, buy now... I am looking for the product on the left hand side, with the product information on the right of the product... one listed per line.

 

-dan

Link to comment
Share on other sites

In your Admin area, go to "configuration/product listing". These are all the columns that get displayed when your products are listed, like product name, price, quantity, weight etc. You can turn them on and off from there...

Link to comment
Share on other sites

there is a contrib for displaying in columns...

 

has anyone had any luck with displaying category names as image headers? I know there is a hack that displays the sub cat name Products in ..... blah blah but I am looking into something a little more slick!

 

I am looking at always having the main (top) cat on display whilst in that cat any ideas anyone?

 

Andrew

Link to comment
Share on other sites

hey noob... I've modded my files a bit to fit the site I just created... check out www.tabourecords.com/catalog... something along those lines what you mean? I've modded to display one item per row with whichever options I wanted (i.e. price, category, etc). PM me if you want more info or if you'd like me to send you the files.

Link to comment
Share on other sites

ok 1st to answer PVK's question

 

the spaces are in the script in index.php

 

here u can use this its from one of thge contribs

 

ull be changing the value "cellpadding=" in the <td> fields

 

*************************
***** BEGIN STAGE 1 *****
********* OPEN **********
*** catalog/index.php ***
******** LOCATE *********
*************************

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
   </table></td>
<!-- body_text //-->

*****************
*** CHANGE TO ***
*****************

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
   </table></td>
<!-- body_text //-->

**************
*** LOCATE ***
**************

<!-- body_text_eof //-->
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </table></td>
 </tr>
</table>
<!-- body_eof //-->

***************
***CHANGE TO***
***************

<!-- body_text_eof //-->
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </table></td>
 </tr>
</table>
<!-- body_eof //-->

**********************
*** CLOSE AND SAVE ***
*** END OF STAGE 1 ***
**********************

***************************************************
*** ADDITIONAL CHANGE TO catalog/index.php ONLY ***
***               LOCATE THIS CODE              ***
***************************************************

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
<?php
   if (isset($cPath) && strpos('_', $cPath)) {
// check to see if there are deeper categories within the current category
     $category_links = array_reverse($cPath_array);
     for($i=0, $n=sizeof($category_links); $i<$n; $i++) {
       $categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'");
       $categories = tep_db_fetch_array($categories_query);
       if ($categories['total'] < 1) {
         // do nothing, go through the loop
       } else {
         $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
         break; // we've found the deepest category the customer is in
       }
     }

**************************
***   CHANGE TO THIS   ***
**************************

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
<?php
   if (isset($cPath) && strpos('_', $cPath)) {
// check to see if there are deeper categories within the current category
     $category_links = array_reverse($cPath_array);
     for($i=0, $n=sizeof($category_links); $i<$n; $i++) {
       $categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'");
       $categories = tep_db_fetch_array($categories_query);
       if ($categories['total'] < 1) {
         // do nothing, go through the loop
       } else {
         $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
         break; // we've found the deepest category the customer is in
       }
     }

******************************
***   THE CHANGE IS THIS   ***
******************************


<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>


*****************
*** TO THIS   ***
*****************

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>

Checkout my osc contrib here!

You can also checkout the site im working on by clicking the card button!

Link to comment
Share on other sites

and now to answer the flash question

all u have to do is use the html script that ur prog gives u

the script i used for my page is

<p align="center">
<object CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="350" HEIGHT="150" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0">
 <param NAME="MOVIE" VALUE="banner.swf">
 <param NAME="PLAY" VALUE="true">
 <param NAME="LOOP" VALUE="true">
 <param NAME="WMODE" VALUE="opaque">
 <param NAME="QUALITY" VALUE="high">
 <EMBED SRC="banner.swf" WIDTH="350" HEIGHT="150" PLAY="true" LOOP="true" WMODE="opaque" QUALITY="high"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED></object>
</p>

 

u can check it out here

 

feel free to pm me

Checkout my osc contrib here!

You can also checkout the site im working on by clicking the card button!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...