Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Categories Images Box support thread


kymation

Recommended Posts

Your error is a well-known session bug in osCommerce. See post #6 in <a href="http://www.oscommerce.com/forums/topic/346007-first-post-here-please-help-me/page__p__1444591entry1444591">this thread</a>.

 

I see nothing wrong with the code that you posted. Is that still giving you an error, even without the added code? If it is, something is wrong with your editor, or you are using FTP in Binary mode. Either one can cause file corruption.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

  • Replies 204
  • Created
  • Last Reply

Top Posters In This Topic

Hi Jim,

 

I'll update that then,

 

Really appreciate you looking into the categories image box problem.

 

I used Dreamweaver's FTP upload, and I don't think that has ever been an issue.

 

Please let me know if you think of something that might re-solve that issue I've got.

 

Again, it was some simple fix, that's all I can remember.

 

Jason

Link to comment
Share on other sites

Hi Jim,

 

I'm wondering...

 

In the admin section, where you upload your categories images, there are two separate uploading parts.

 

On mine, BOTH say "Category Image:" next to the "Choose File" button (I think that button would be labeled "Browse" on a PC )

 

Should one of these upload tools say "Categories Images Box Image" ?

 

 

Did I find something here that may lead to a fix?

 

Jason

Link to comment
Share on other sites

That is definitely wrong. It's probably only the text part that's incorrect or your database would not contian the image name that you say is there. It should still be fixed to avoid confusion.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

  • 1 month later...

Hello,

 

How do we change the text color with also changing the infobox color?

 

I'm just wanting to change the colors of the text under the categories images, and not the infoboxes.

 

do I have to modify something in the categories images php file in the modules directory?

 

I tried adding a text color change to the stylesheet under the categories images box section, with no success

 

Thank you,

 

Jason

Link to comment
Share on other sites

My previous post should have been written as "How do we change the text color without also changing the infobox color?"

 

Figured it out, here is the solution if anyone needs to do the same.

 

Change your categories_images.php file found in the modules directory from:

 

// Show the products name if selected in Admin
           if (CATEGORIES_IMAGES_BOX_SHOW_NAME == 'True') {
             if ($space_above == true) {
               $info_box_text .= "<br>\n";
             }
             $info_box_text .= $category['name'];
             $space_above = true;
           } //if (CATEGORIES_IMAGES_BOX_SHOW_NAME

 

To this: (insert whichever colour you may need)

 

// Show the products name if selected in Admin
           if (CATEGORIES_IMAGES_BOX_SHOW_NAME == 'True') {
             if ($space_above == true) {
               $info_box_text .= "<br>\n<font color=#302226>";
             }
             $info_box_text .= $category['name'];
             $space_above = true;
           } //if (CATEGORIES_IMAGES_BOX_SHOW_NAME

 

Take care,

 

Jason

Edited by rustyclockwork
Link to comment
Share on other sites

  • 3 weeks later...

The stylesheet in this package is the stock osCommerce stylesheet with one new class for the new box, added at the very end. Make certain that you're looking at the catalog/stylesheet.css and not the one for the demo.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

  • 2 weeks later...

Hi Jim,

 

 

I just installed this on a clients website and noticed that no images are being displayed on the index page. I see from previous posts this issue has been discussed but I don't see a resolution. Has a fix been found ?

 

 

 

 

Chris

Link to comment
Share on other sites

Many people have asked this question. I always answer with "Did you upload any images for it to use?" and they disappear without another comment.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Hi Jim

 

I sort have figured it out, although the way it is set up in the Admin>catalog is confusing. During the category creation process, it has a separate place for the image as shown in the screen shot. However, I figured out how to use it. Thank you for your reply.

 

screenshot.jpg

 

 

 

 

Chris

Link to comment
Share on other sites

I don't know how to make it less confusing. 4.2 in the instructions tells you how to do this. There's also a screenshot of the Admin page. Maybe you can suggest an improvement?

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Hi Jim,

 

 

Is it necessary to have both image upload fields once this contribution is installed ? I mean, would someone choose to have a different image for the category and the index page ?

 

 

 

Chris

Link to comment
Share on other sites

Yes, this was a requested feature. Of all of the stores I have installed this on, I believe that only one has the same images in both places.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

I'm wondering if this addon could be modified to do what I need or if anyone has any ideas:

 

I need to show a banner image across the top of the product listing whenever a category from the menu is selected...very much like what is here, but image only and on the product pages.

 

Anyone have ideas? :)

 

thanks!

Link to comment
Share on other sites

That's not what this Addon was intended to do. I'm not aware of anything that is, but it shouldn't be all that hard to do.

 

Regards

Jim

 

Hi Jim -- Yes, of course you're right :)

 

It was actually surprisingly easy to accomplish what I needed.... one line inserted 4 times in index.php.

 

<IMG SRC="/images/category_banners/<?php echo $cPath ?>.jpg">

 

I simply have an image for every category/subcategory that is saved with its correct cPath variable and it works perfectly. Not elegant, but very effective.

Edited by mattvirus
Link to comment
Share on other sites

  • 5 weeks later...

Hi Jim

 

Cheers for the great contribution.

This might be a bit of an odd request but a community member "acbatchelor"

Posted this on the 8th Aug 08 in this forum...

 

Thanks for this contribution, it is exactly what i need except for one thing. I would like to add this grid to the subcatagories also. On the top catagories, the grid is there but when you click one of the catagories it takes you to the subcatagories in the regular format. If you can tell me how to add this contribution to the subcatagories i would be grateful. I know the subcatagories is about the same without this grid but i want it to keep the same look, and it works better with the design of my site.

 

Have you any clue as to how this was achieved as I am trying to do the same thing?

appreciate any help.

Cheers Chad

Link to comment
Share on other sites

  • 3 weeks later...

Congratulations, you've found a bug. Change Line 72 of that file to:

		  $width = (floor (100 / CATEGORIES_IMAGES_BOX_COLUMNS) );

Sorry for the inconvenience. That's what I get for trying to reuse code and forgetting to change all of the constants.

 

Regards

Jim

 

i keep getting this Warning: Division by zero in /home/goddess7/public_html/includes/modules/product_listing.php on line 121 it shows up on some pages when i choose from categories. i also have some sort of broken image onmy home page can you please tell me how to get rid of this. i would like to have a image or banner going across the top of the page. i some how lost my header and my footer text can you tell me how to fix this too? it shows up in the admin like its there but when i go to the home page it is not there. i would like to get rid of the pink and black images so that the new categories can go there how do i do that? and can i use Simple Multiple Images (Unlimited) with Fancy Popups with this install? thank you or any one else who can help me in advance

Link to comment
Share on other sites

This topic is here to support the Categories Images Box Addon. It's not for general support. Start a new topic in the appropriate support forum for your questions. I also suggest one question per post, if you really want answers.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

This topic is here to support the Categories Images Box Addon. It's not for general support. Start a new topic in the appropriate support forum for your questions. I also suggest one question per post, if you really want answers.

 

Regards

Jim

 

it this addon compatible with Simple Multiple Images (Unlimited) with Fancy Popups contribution?

Link to comment
Share on other sites

This Addon adds its own images to use in the box, so it should be safe to use with any of the multiple images addons.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

  • 4 weeks later...

Hi, I have installed this contribution on my new store and I thought all was well, however just by chance I saw my home page on my sons laptop using Internet Explorer, I only use firefox, and the categories boxes were not showing. They are showing in Firefox. Can someone please tell me why?

 

I have 2 sites I am currently working on which are classgifts.co.uk and topclassfurniture.co.uk and this is happening with both stores. If someone could look at these via both firefox and IE it would be much appreciated.

 

Thanks, Michael

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...