Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Listing Products


lisalovlee33

Recommended Posts

Posted

In the process of setting up a new store. Have a specific question.

I've seen some OScommerce sites that list their products in one column, such as this:

http://www.oscommerce.co.nz/fruit/default....91612626b6151dc

Also, can I have a brief description on the product, below the product name, like:

Pumpkin

Description on pumpkin 1

Desc. on pumpkin 2

 

Right now, it is in this format:

http://attitudeinternet.com/shop/

 

Thanks in advance :P

Posted
In the process of setting up a new store. Have a specific question.

I've seen some OScommerce sites that list their products in one column, such as this:

http://www.oscommerce.co.nz/fruit/default....91612626b6151dc

What you are describing is the default behavior of osC for the categories. If there is no sub-category, it displays the way it does on the demo site. If there are subs, then it displays those. Click the subs will then display like the above again. The demo site is not displaying the new products module.

 

Now if you would like the new products module on your main page to display like the categories, it shouldn't be too difficult to mod the code to output the same way.

Posted

Thanks for the response. I'm still a bit confused. From what I see at present, the products(with the BUY NOW notice) & categories are listed in rows with 3 columns in each row. I don't really care about how the categories are listed, but would prefer to see the products (with BUY NOW notice) being listed as a single vertical column, with the option of adding a brief descrciption below the Product name. I'm sorry for the confusion.

Posted

ah ok. Well in admin you can order and add/remove columns for the search display. Once you get it a bit closer to how you want it, think I can help you add a piece of the description.

Posted

Thanks so much again. Actually, I've entered most of my data. And was hoping to change the look of the product display to the way I mentioned, which is listed in a single column going downwards, as the example below:

http://www.hightechlighting.com/index.php/cPath/21_26_22.

I was browsing this and wiki sites for some tips but all I found was how to modify this for the new_product box, which tells you how to do this for the new_products box by using the following:

http://wiki.oscommerce.com/docsCatBoxSpecNewProdCol with the following comments:

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

::::::::::

This changes the number of columns in the "New Products Box" listed on the index.php page.

 

/catalog/includes/modules/new_products.php

 

At about line 36 change the number "2" here to however many columns you want.

 

$col ++;

if ($col > 2) {

$col = 0;

$row ++;

}

}

0 = 1 column

1 = 2 columns

2 = 3 columns

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

::::::::

But my intention was actually have this look for the products that are under each category (in fact, was going to remove the new_products box altoghether).

 

To be honest, this will be my first attempt at fixing something. So I did a search of files under the web directory that may contain the string $col ++;

I was hoping it will return the relevant file for me to make a change for the products display, but nothing came back. I also tried to look for the file meant for displaying products, and came back with nothing. I am trying to learn this, but looking at index.php, doesnt really tell me much.

Is there a big brother file that tells me what other files the program is referencing? Which one is this? I'm trying to figure out how this all piece together, and I assume there's a file that tells me so???

 

Is this a simple fix like above or much more is involved? Can you help? Please.

Posted

The code that generated the product listing is in include/modules/product_listing.php

This piece of code is called for the normal catalog listing (via index.php) as well as by advanced_search_results.php.

 

To get your products displayed in columns you should install a contribution that does this, I believe there are different ones, this is one that should do this:

http://www.oscommerce.com/community/contri...product+listing

 

and you might also want to add a short description field for display in the listing see this contribution:

http://www.oscommerce.com/community/contri...product+listing

 

HTH

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

  • 2 weeks later...
  • 3 months later...
Posted

Lisa,

 

Did you try the contribution? Did it work? I would like to try the file because I want to change my product listing behavior, but I am afraid of messing up the whole site. I am new to osc.

 

:(

Archived

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

×
×
  • Create New...