Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Catergories instead of new products


Gtechosting

Recommended Posts

Hello All,

 

On the main page where it says:-

 

"New Products For August"

 

i want to change it so that it shows all my catergories, is this possible??

 

Thanks!

 

yep, there is a contrib called categories on front page or something similar. Works like a treat, see on my hollywood page (link in profile)

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

dunno lol wish i knew what to do.

Make sure you download the full version of contributions not just a latest update as there might not be all the instructions and files included. I've looked at my download which included a readme.txt

 

Here it is

SIMPLE INSTALL Step 1.
=======================================================
Copy the included file (catalog/includes/modules/main_categories.php) into its correct directory.



Step 2.
=======================================================
One small modification to the index file.
In Catalog/index.php find this:
-------------------------------------------------------

	 <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
	 <td class="pageHeading" align="right"></td>
      </tr>
    </table>
 </td>
     </tr>
     <tr>
 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
         </tr>
         <tr>
           <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
         </tr>

=======================================================
Replace with this.
-------------------------------------------------------

	 <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
	 <td class="pageHeading" align="right"></td>
      </tr>
    </table>
 </td>
     </tr>
     <tr>
 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
         </tr>
         <tr>
           <td><?php include(DIR_WS_MODULES . FILENAME_MAIN_CATEGORIES); ?></td>
         </tr>


        	 
Step 3.
=======================================================
Include in catalog/includes/filenames.php
-------------------------------------------------------

 define('FILENAME_MAIN_CATEGORIES', 'main_categories.php');


 
Finish.

You should have these instructions with the download

 

Hope it helps.

 

Ruth

Link to comment
Share on other sites

does anyone have any idea how to make this work? i have done exactly what the instructions said.... but i cant see the catergories on the index.php

I recommend going through the steps again. This was one of the simplest contributions I used. It uses the image from the top right corner of your catagory page as its image.

 

Ruth

Link to comment
Share on other sites

Hi Ruth,

 

I just went through it all again, i definitely did it all right but still nothing.

 

It is working.. but not on the index page, its doing it when i click on a product and then select its catergory from the history tree....

 

would you take a look if i gave u ftp access ruth? or anyone...?

Link to comment
Share on other sites

Hi sarafina,

 

Im not sure, however i would say that this doesnt sound like a good idea? unless you only have a small amount of products, maybe if you dont have any categories and u just add products without categories then this contrib that im using may display all products with there being no categories to choose from, but im new to all this so could be wrong.

 

Good Luck!

Link to comment
Share on other sites

Is there a contribution similar to this where instead of categories you can display all products? (not just new)

 

Sandrine,

just use an all products contribution to create a new page, and take the code from the body section to paste in into index.php, way down were the default section starts.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Hi Ruth,

 

I just went through it all again, i definitely did it all right but still nothing.

 

It is working.. but not on the index page, its doing it when i click on a product and then select its catergory from the history tree....

 

would you take a look if i gave u ftp access ruth? or anyone...?

 

Gareth, still issues? I looked at your page, if you remove all default osC text, your new main categories will show up at the top.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Hi sarafina,

 

Im not sure, however i would say that this doesnt sound like a good idea? unless you only have a small amount of products, maybe if you dont have any categories and u just add products without categories then this contrib that im using may display all products with there being no categories to choose from, but im new to all this so could be wrong.

 

Good Luck!

 

 

Hello Monika,

 

I installed the the All Products v.4.1 with images successfully however it gave a list of all the products. Is there anything I can do to change it so it mirrors the category contribution more. What I mean by that is, show a picture of the product in a table or something with descriptions.

 

See this example. I have very few products so I want people to be able to simple click on the product image/description within a table (rather than a list).

 

Will the feature products contribution do this? I'm going to try it and see.

Contributions installed: Purchase without Account / STS/ All Products/ Header Tags Controller

Link to comment
Share on other sites

Hello Monika,

 

I installed the the All Products v.4.1 with images successfully however it gave a list of all the products. Is there anything I can do to change it so it mirrors the category contribution more. What I mean by that is, show a picture of the product in a table or something with descriptions.

 

See this example. I have very few products so I want people to be able to simple click on the product image/description within a table (rather than a list).

 

Will the feature products contribution do this? I'm going to try it and see.

 

this guy needs to remove all languages not used in admin, as people having a different browser language than english only see an error page when calling his site. I hacked myself in.

 

Well if you select all products with the all products contribution, just use the code form the category page contribution to show it in columns. Not sure where the problem is, you only have to fill in your values for the article instead for the category.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Is there a way to limit how many categories are displayed?  I want to list my main categories which I figure would be 9 and the rest of the minor categories im gonna leave the default box on the left for customers to chose from

 

 

I tried this and this is what I got.

 

1054 - Unknown column 'c.categories_status' in 'where clause'

 

select c.categories_id, cd.categories_name, c.parent_id, c.categories_image from categories c, categories_description cd where c.categories_id = cd.categories_id AND c.categories_status=1 and cd.language_id='1' order by sort_order, cd.categories_name

 

[TEP STOP]

Link to comment
Share on other sites

I tried this and this is what I got.

 

1054 - Unknown column 'c.categories_status' in 'where clause'

 

select c.categories_id, cd.categories_name, c.parent_id, c.categories_image from categories c, categories_description cd where c.categories_id = cd.categories_id AND c.categories_status=1 and cd.language_id='1' order by sort_order, cd.categories_name

 

[TEP STOP]

 

Nevermind I had it below Define Text.

Link to comment
Share on other sites

  • 2 years later...

Hi all,

 

I added this categories on front page contribution and works well except when you click on the category, the link goes to a blank page. can any one help please?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...