Jump to content



Latest News: (loading..)

* * * * * 1 votes

Modifying Sub Category Image & Text Links


  • Please log in to reply
93 replies to this topic

#81   bktrain

bktrain
  • Members
  • 2,104 posts
  • Real Name:Brian
  • Gender:Male
  • Location:On the brink of insanity

Posted 02 August 2009 - 03:40 PM

View Postsctsang, on Aug 2 2009, 02:07 AM, said:

When we have removed sub-category text and/or image links, visitor would get a blank center column if he or she clicks the category name.
There should not be an empty space. Can you give a link so I can see what you have?
Remember to backup database, files and pictures.

I have a problem for your solution
I reject your reality and substitute my own
My mind not only wanders, it sometimes leaves completely
The problem with the gene pool is that there is no lifeguard
Everyone’s entitled to my opinion


Links
Security
SSL Help
Basics for design
Basics for design V2.3+
How Do I ...?

#82   sctsang

sctsang
  • Members
  • 21 posts
  • Real Name:S.C.Tsang

Posted 02 August 2009 - 06:14 PM

View Postbktrain, on Aug 2 2009, 11:40 PM, said:

There should not be an empty space. Can you give a link so I can see what you have?

You're right. The default installation of osCommerce comes with "New Products for Month" box in the center column so there should not be an empty space in the center column. However, as with many people, I have removed "New Products for Month" box. Should have told you about that earlier :blush:  

I've made a fresh installation of osCommerce at www.saiwah.com/catalog and did the following quick modifications.

1. Sub-category image & text links removed
2. New Products of Month box removed
3. Modern Template for RC2a v1.0 installed for the good looking menu.

With this template installed, sub-category menu pops up whenever there is mouse over those Categories with sub-category. The problem is that the central part of the store remains empty upon clicking "Hardware" etc . So in my opinion, those buttons should be inactive.

Hope these clarify my concerns. Thank you

Regards,
Mr. Tsang

#83   bktrain

bktrain
  • Members
  • 2,104 posts
  • Real Name:Brian
  • Gender:Male
  • Location:On the brink of insanity

Posted 02 August 2009 - 06:44 PM

View Postsctsang, on Aug 2 2009, 01:14 PM, said:

You're right. The default installation of osCommerce comes with "New Products for Month" box in the center column so there should not be an empty space in the center column. However, as with many people, I have removed "New Products for Month" box. Should have told you about that earlier :blush:  

I've made a fresh installation of osCommerce at www.saiwah.com/catalog and did the following quick modifications.

1. Sub-category image & text links removed
2. New Products of Month box removed
3. Modern Template for RC2a v1.0 installed for the good looking menu.

With this template installed, sub-category menu pops up whenever there is mouse over those Categories with sub-category. The problem is that the central part of the store remains empty upon clicking "Hardware" etc . So in my opinion, those buttons should be inactive.

Hope these clarify my concerns. Thank you

Regards,
Mr. Tsang
You may want to look into whatever contribution you added for the menu on the left. See if you can remove the link from the top level categories.

The reason why you have an empty space is because you removed everything from the center accept for the heading Categories and categories image on the right. Couple that with the length or your right and left columns you have all that empty space.
Remember to backup database, files and pictures.

I have a problem for your solution
I reject your reality and substitute my own
My mind not only wanders, it sometimes leaves completely
The problem with the gene pool is that there is no lifeguard
Everyone’s entitled to my opinion


Links
Security
SSL Help
Basics for design
Basics for design V2.3+
How Do I ...?

#84   timo28

timo28
  • Members
  • 32 posts
  • Real Name:David Timpson

Posted 24 March 2010 - 11:46 AM

Hi all,
this thread is very helpful,
I am having a related problem. All my sub cat images are appearing twice

see here http://favouriteflies.com/index.php/cPath/51

anyone know how I can sort this out?

Regards

Dave

#85   bktrain

bktrain
  • Members
  • 2,104 posts
  • Real Name:Brian
  • Gender:Male
  • Location:On the brink of insanity

Posted 08 April 2010 - 04:22 AM

View Posttimo28, on 24 March 2010 - 11:46 AM, said:

Hi all,
this thread is very helpful,
I am having a related problem. All my sub cat images are appearing twice

see here http://favouriteflies.com/index.php/cPath/51

anyone know how I can sort this out?

Regards

Dave
What were you trying to do? Did yo make any modifications to your index page?
Remember to backup database, files and pictures.

I have a problem for your solution
I reject your reality and substitute my own
My mind not only wanders, it sometimes leaves completely
The problem with the gene pool is that there is no lifeguard
Everyone’s entitled to my opinion


Links
Security
SSL Help
Basics for design
Basics for design V2.3+
How Do I ...?

#86   bktrain

bktrain
  • Members
  • 2,104 posts
  • Real Name:Brian
  • Gender:Male
  • Location:On the brink of insanity

Posted 15 February 2011 - 05:51 PM

I have put this tip into a contribution for osCommerce 2.3.1.

Install is quick and easy. All options are changed in the admin.

Hope you find it useful.

You can download it here.  SubCategory Links

Edited by bktrain, 15 February 2011 - 05:51 PM.

Remember to backup database, files and pictures.

I have a problem for your solution
I reject your reality and substitute my own
My mind not only wanders, it sometimes leaves completely
The problem with the gene pool is that there is no lifeguard
Everyone’s entitled to my opinion


Links
Security
SSL Help
Basics for design
Basics for design V2.3+
How Do I ...?

#87   w3coy

w3coy
  • Members
  • 12 posts
  • Real Name:Chris
  • Gender:Male

Posted 21 February 2011 - 08:35 AM

Hi BkTrain,

Really nice contrib. Been really helpful to me.

I would like to ask if there is a way to create alternate category page display instead of the category links and boxes like;

1. Show a Large Category image or place holder script
2. list all products under a main category

It would be pretty nice way to have different page look and feel.

Any pointers?

Thanks

#88   bktrain

bktrain
  • Members
  • 2,104 posts
  • Real Name:Brian
  • Gender:Male
  • Location:On the brink of insanity

Posted 22 February 2011 - 06:44 PM

View Postw3coy, on 21 February 2011 - 08:35 AM, said:

Hi BkTrain,

Really nice contrib. Been really helpful to me.

I would like to ask if there is a way to create alternate category page display instead of the category links and boxes like;

1. Show a Large Category image or place holder script
2. list all products under a main category

It would be pretty nice way to have different page look and feel.

Any pointers?

Thanks
Not sure I follow your question.

What is it you're trying to do?
Remember to backup database, files and pictures.

I have a problem for your solution
I reject your reality and substitute my own
My mind not only wanders, it sometimes leaves completely
The problem with the gene pool is that there is no lifeguard
Everyone’s entitled to my opinion


Links
Security
SSL Help
Basics for design
Basics for design V2.3+
How Do I ...?

#89   Hoog

Hoog
  • Members
  • 16 posts
  • Real Name:James Hoog
  • Gender:Male
  • Location:UK

Posted 30 April 2012 - 11:16 AM

View Postbktrain, on 22 February 2011 - 06:44 PM, said:

Not sure I follow your question.

What is it you're trying to do?

HI Brian,

Many thanks for all the advice you provide to newbies like myself. I have an OSC 2.3 store witha template loaded top. I'm trying to remove the subcategory images and text but when i have followed the instructions at the beginning of the thread and altered the index.php file and set the number of categories to list per rown to zero i get about 20 lines of the following plus the images/text still show after these messages. Any ideas?

Warning: Division by zero in /home/xxxxxx/public_html/oscom/index.php on line 73

Warning: Division by zero in /home/xxxxxx/public_html/oscom/index.php on line 77

Warning: Division by zero in /home/xxxxxx/public_html/oscom/index.php on line 77

Warning: Division by zero in /home/xxxxxxx/public_html/oscom/index.php on line 73

Warning: Division by zero in /home/xxxxxx/public_html/oscom/index.php on line 77

Warning: Division by zero in /home/xxxxxx/public_html/oscom/index.php on line 77

Warning: Division by zero in /home/xxxxxxx/public_html/oscom/index.php on line 73

#90   bktrain

bktrain
  • Members
  • 2,104 posts
  • Real Name:Brian
  • Gender:Male
  • Location:On the brink of insanity

Posted 30 April 2012 - 07:24 PM

View PostHoog, on 30 April 2012 - 11:16 AM, said:

HI Brian,

Many thanks for all the advice you provide to newbies like myself. I have an OSC 2.3 store witha template loaded top. I'm trying to remove the subcategory images and text but when i have followed the instructions at the beginning of the thread and altered the index.php file and set the number of categories to list per rown to zero i get about 20 lines of the following plus the images/text still show after these messages. Any ideas?

Warning: Division by zero in /home/xxxxxx/public_html/oscom/index.php on line 73

Warning: Division by zero in /home/xxxxxx/public_html/oscom/index.php on line 77

Warning: Division by zero in /home/xxxxxx/public_html/oscom/index.php on line 77

Warning: Division by zero in /home/xxxxxxx/public_html/oscom/index.php on line 73

Warning: Division by zero in /home/xxxxxx/public_html/oscom/index.php on line 77

Warning: Division by zero in /home/xxxxxx/public_html/oscom/index.php on line 77

Warning: Division by zero in /home/xxxxxxx/public_html/oscom/index.php on line 73

View Postbktrain, on 15 February 2011 - 05:51 PM, said:

I have put this tip into a contribution for osCommerce 2.3.1.

Install is quick and easy. All options are changed in the admin.

Hope you find it useful.

You can download it here. SubCategory Links

See if that helps first.

If you're still having problems let me know.

Brian
Remember to backup database, files and pictures.

I have a problem for your solution
I reject your reality and substitute my own
My mind not only wanders, it sometimes leaves completely
The problem with the gene pool is that there is no lifeguard
Everyone’s entitled to my opinion


Links
Security
SSL Help
Basics for design
Basics for design V2.3+
How Do I ...?

#91   naps1saps

naps1saps
  • Members
  • 57 posts
  • Real Name:Greg Deeth
  • Gender:Male
  • Location:Seattle, WA

Posted 19 February 2013 - 11:58 AM

Personally i used this code to remove the broken images when there was no file specified:
echo '	 <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">';
if((file_exists(DIR_WS_IMAGES . $categories['categories_image'])) && ($categories['categories_image'] != "")) {
echo tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />';
}
echo $categories['categories_name'] . '</a></td>' . "\n";

Edited by naps1saps, 19 February 2013 - 11:59 AM.


#92   dhooper

dhooper
  • Members
  • 62 posts
  • Real Name:Diana Hooper
  • Gender:Female
  • Location:Logsden, OR

Posted 20 May 2013 - 02:43 AM

Is it possible to have both sub-category images/links available with products are listed in the main category?

This page http://essentialsoflife.net/essential-oils-catalog/index.php/personal-care-products-c-22 is a category with products in it, but there are also 7 sub-categories that don't show on the page that I want to show.  The product list table is also not showing correctly here.  Where do I fix that?

All the pages that do not have products like http://essentialsoflife.net/essential-oils-catalog/index.php/therapeutic-grade-essential-oils-c-1 show the sub-categories fine.

All the pages that do not have sub-categories like http://essentialsoflife.net/essential-oils-catalog/index.php/aromatherapy-massage-oil-c-3 have the table showing correctly.

I know, I just want it all! *smile*
Diana

#93   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,398 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 20 May 2013 - 04:49 AM

View Postdhooper, on 20 May 2013 - 02:43 AM, said:

This page http://essentialsoflife.net/essential-oils-catalog/index.php/personal-care-products-c-22 is a category with products in it, but there are also 7 sub-categories that don't show on the page that I want to show.  The product list table is also not showing correctly here.  Where do I fix that?

Since you use a template I would suggest you contact the template provider about that

The category/products display behaviour is as it is supposed to be: A given category can have either products or subcategories, not both. In case of both, products have priority over subcategories.

This could be changed by modifying index.php, didn't do that my self. The default behaviour makes a good sense

A better solution would be, to create a couple a "new products" modules - one for each of the subcategories you have, set each to pick products from a specific subcategory only and display them all on that category page

#94   dhooper

dhooper
  • Members
  • 62 posts
  • Real Name:Diana Hooper
  • Gender:Female
  • Location:Logsden, OR

Posted Yesterday, 01:28 PM

I will try that - thank you! :)
Diana