Jump to content



Latest News: (loading..)

- - - - -

Adding Category Descriptions to osC v.2.3.1


  • Please log in to reply
21 replies to this topic

#1   Eaviator

Eaviator
  • Members
  • 55 posts
  • Real Name:Doug Burt
  • Gender:Male
  • Location:West Vancouver, BC ~ Lotus Land Liver ~

Posted 28 June 2011 - 11:17 PM

Greetings Gang,

I'm looking for an add-on that will allow me to insert descriptions and images into categories, for a generic description of what the category has in it rather than just into the products themselves. I'm using a brand new installation of osCommercev2.3.1, but unfortunately the add-on I thought would work, didn't. I did try to contact the writer but couldn't get any help on it. The actual add-on I tried to use was "Category Description v1.06". Please does anyone have any idea's that may help.

Thanks a bunch in advance gang, you're great...

Edited by Eaviator, 28 June 2011 - 11:18 PM.


#2   Jack_mcs

Jack_mcs
  • Members
  • 25,319 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 28 June 2011 - 11:43 PM

Header Tags SEO has that option built-in. Assuming the Categories Description contribution still works (I haven't looked at it in quite a while), you could still use it but would have to convert it to work with 2.3.

#3   Eaviator

Eaviator
  • Members
  • 55 posts
  • Real Name:Doug Burt
  • Gender:Male
  • Location:West Vancouver, BC ~ Lotus Land Liver ~

Posted 30 June 2011 - 06:44 PM

Hi Jack,

Much appreciate your comments here. I've been trying to locate someone who's familiar enough with modifying codes to be able to help modify the install for contribution Category Descriptions v.1.06 into for the osC.v.2.3.1 code.

Obviously the contribution is designed for v.2.2, and certain items in the code weren't able to be found on one single page, that is the index.php page. Everything else was literally a breeze, all indicated coding changes were made as per the contribution's included installation text. Unfortunately for me, I'm not far enough into php yet to make the necessary code changes myself, it'd be done by now if I could.

I've saved the modified files as per the original instructions, but because I don't know enough yet about php I'm unable to get any further at this point. Unfortunately my client is breathing down my neck wanting what he wants, generic category description's and possibly a single generic image for each of the categories. Any suggestions...

Thanks, I really do appreciate any and all help available out there...

Cheers,
DougB

#4   burt

burt

    Code Monkey

  • Community Team
  • 7,764 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 30 June 2011 - 06:47 PM

Question; It's for a client...and you can't do it.  

Answer; You subcontract someone who can do it.
Dummies guide to designing osCommerce 2.3 Click Me

Or maybe a ready made theme for your shop ??

Warning: My posts may contain Horsemeat.

#5   Eaviator

Eaviator
  • Members
  • 55 posts
  • Real Name:Doug Burt
  • Gender:Male
  • Location:West Vancouver, BC ~ Lotus Land Liver ~

Posted 30 June 2011 - 07:40 PM

and how my friend am I ever supposed to learn .php by not actually doing it myself, instead of always referring it to someone else who's there already. I will find a way, properly and maybe by learning the hard way, but I will learn it trust me...but thanks Burt, your response has been noted...

#6   burt

burt

    Code Monkey

  • Community Team
  • 7,764 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 30 June 2011 - 07:49 PM

You should know enough *before* taking on a client.  I'm being too blunt probably, I apologise.
Dummies guide to designing osCommerce 2.3 Click Me

Or maybe a ready made theme for your shop ??

Warning: My posts may contain Horsemeat.

#7   Eaviator

Eaviator
  • Members
  • 55 posts
  • Real Name:Doug Burt
  • Gender:Male
  • Location:West Vancouver, BC ~ Lotus Land Liver ~

Posted 30 June 2011 - 08:34 PM

Sorry burt but your answer smacked with superiority, it wasn't called for IMHO, but that shouldn't concern you, afterall it's only my opinion. I came here to learn more about the osCommerce program. I'm fairly conversant with php generally however, having studied it at our local university for quite some time but haven't had occasion to use or practice it to any great extent within the context of this particular program or contribution's. In order to further myself more quickly I turned to this forum and it's reader's for help.

My client wanted a bare bones install, which I'm well capable of doing him for him and I've also modified the layout and other coding to some extent, but he's asked for more than I bargained for now because of some newer requirements. In finding this out I looked for reasonable contributions, rather than starting from scratch and re-inventing the wheel and found the contribution mentioned, trying to install it as written. When I ran into difficulties I was hoping that these forum's were for those of us trying to learn more about the intricacies of this program in particular and those reading it would try and help, I'm terribly sorry if I've misjudged. Other program forums supporter's usually just want to help when a difficulty arises, taking pride in their program in order to show it is far better than many other's which are available. There are other's however here burt that do care about it obviously and to them I say "Thanks", resoundingly! Your insight and attitude' are great!

#8   burt

burt

    Code Monkey

  • Community Team
  • 7,764 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 30 June 2011 - 08:54 PM

You haven't really misjudged the forum as a whole.  I'm just being my usual self, as I tend to take umbrage at fellow developers who display a lack of knowledge, whether that lack is in general PHP or in specific osCommerce.  It's not fair on the client, on yourself or on your fellow dev's in my opinion.  

It's different for regular shop owners, as they cannot be expected to know as much as a developer should.  Mind you, it's not possible for any dev to know everything, which is why the php site exists and all the other helpful places dotted around the net.

Anyway, we'll differ, I suspect I am in a minority of one  >_<
Again, I apologise if I upset you.

Edited by burt, 30 June 2011 - 08:55 PM.

Dummies guide to designing osCommerce 2.3 Click Me

Or maybe a ready made theme for your shop ??

Warning: My posts may contain Horsemeat.

#9   Eaviator

Eaviator
  • Members
  • 55 posts
  • Real Name:Doug Burt
  • Gender:Male
  • Location:West Vancouver, BC ~ Lotus Land Liver ~

Posted 30 June 2011 - 10:39 PM

I'm glad to hear that my perceptions re: the other's in this group aren't off the mark. As for you, and your usual umbrage at "other's who ought to know better in your opinion", please try and control yourself. I'm no stranger whatsoever to .php, just to this programs build and the codes particular to this one contribution. If I want to sit down and go over the entire program in order to further my knowledge and possibly that of the entire community by adding helpful hints or code, that would be one thing, to ask for help within a given thread is totally another but you already knew that anyways.

To just be contrary for the sake of being difficult is off-putting to say the least, especially where new members to the osCommerce forums family are concerned. As for me being upset...no, not at all, I'm used to people with small amounts of knowledge in specialized fields trying to compensate by trying to show themselves as seemingly far superior, only showing their overall ignorance of the human condition and their significant lack of compassion whatever the case. If we'd spent as much time working on the issue I located in this contribution as we have insulting each other, it'd be done with and there would be a new contribution for version 2.3.1 to add to the list. With that attitude I'm surprised you are a Community Sponsor...you should be ashamed instead because other's actually care about what this program can do and are proud of their and other's contributions to it.

If you're not, perhaps it's time you took a break and let someone else who actually still does care take a shot at it. But that's only my opinion...

#10   osc-oliver

osc-oliver
  • Members
  • 4 posts
  • Real Name:Oliver
  • Gender:Male
  • Location:Zurich, Switzerland

Posted 01 July 2011 - 06:45 PM

Today I have ported the add-on "Category Description" to OSCommerce 2.3.1.
http://addons.oscommerce.com/info/2343
If you have problems or a cool way to use or enhance it, send me a PM!

@burt: this is open source - try to be helpful, with comments or code.

#11   Eaviator

Eaviator
  • Members
  • 55 posts
  • Real Name:Doug Burt
  • Gender:Male
  • Location:West Vancouver, BC ~ Lotus Land Liver ~

Posted 01 July 2011 - 09:02 PM

Oliver,

Thanks buddy, the contribution looks great. Nice job and thank you for helping out here, it's really appreciated. I'll go through the code and see if there's anything else I can add for you, but so far it's looking great! The only thing I can really think of to really put this contribution over the top is adding generic image for the category, instead of letting it pull it from the product images. Thanks Oliver!

DougB

#12   bowsera

bowsera
  • Members
  • 12 posts
  • Real Name:Aaron

Posted 02 July 2011 - 12:43 PM

View PostEaviator, on 01 July 2011 - 09:02 PM, said:

Oliver,

Thanks buddy, the contribution looks great. Nice job and thank you for helping out here, it's really appreciated. I'll go through the code and see if there's anything else I can add for you, but so far it's looking great! The only thing I can really think of to really put this contribution over the top is adding generic image for the category, instead of letting it pull it from the product images. Thanks Oliver!

DougB


Thanks to Oliver for the contribution i almost missed the solution reading through all the off topic conversation.  This is exactly what i was looking for

#13   Eaviator

Eaviator
  • Members
  • 55 posts
  • Real Name:Doug Burt
  • Gender:Male
  • Location:West Vancouver, BC ~ Lotus Land Liver ~

Posted 02 July 2011 - 06:39 PM

Aaron,

Oliver did a fantastic job didn't he, the contribution work's great. Top notch...

#14   JDRoc

JDRoc
  • Members
  • 2 posts
  • Real Name:John Denning

Posted 27 July 2011 - 04:20 AM

I as well wanted to give Kudos to Oliver for this contribution. Simple and elegant, which is exactly what OSC needs. Easy install, and works great.

My ONLY suggestion Oliver, is to allow it to interact with any wysiwyg editor that may be installed for the admin. It would be a big benefit to allow end-users (our clients) to set category descs just as easily as product descs, without needing any html knowledge. I know this may be pointless due to some of the other more elaborate contributions that include category descs among other things, but for those of us just looking for this one feature, your contribution is perfect. I wouldn't let it drop off the map.

Thank you again.

#15   Eaviator

Eaviator
  • Members
  • 55 posts
  • Real Name:Doug Burt
  • Gender:Male
  • Location:West Vancouver, BC ~ Lotus Land Liver ~

Posted 27 July 2011 - 05:08 AM

The Category Description v.1.8 add-on could possibly be changed so that this could be done in the Admin Cpanel, as an add-on selection to the Categories/Products - Products section. I think it should be fairly easy to add it to the admin section and then let your client configure it from there. Is your client able to access and use the Admin Cpanel OK already, John? Would that be what you're looking for as far as a better add-on goes?

Cheers,
DougB

#16   JDRoc

JDRoc
  • Members
  • 2 posts
  • Real Name:John Denning

Posted 27 July 2011 - 12:07 PM

Yes, my clients are typically able to at least handle a wysiwyg editor, currently I am using the CKeditor so that they can do basic text formatting when they enter/edit products.  They manage the catalog via the osc admin panel, and I do any custom/advanced editing or settings management for them, if needed, just to be on the safe side.  

The Category Descriptions is a great contribution, but if it could be linked with the wysiwyg editor in admin, it would be one more thing the end-client could have direct control over, and I think appropriate in this sense, as it maintains consistency with product descriptions.

But again, not necessary or a request, just a 'wishlist suggestion'.

Thanks again.

#17   EttuBrutus

EttuBrutus
  • Members
  • 12 posts

Posted 02 August 2011 - 11:27 PM

First off, Thank you for the contribution!!

I have installed 1.08 and am having an error when trying to edit existing categories. I am able to add them just fine and Have been able to add ckeditor to the new category section. It works great. But when trying to edit an existing category the "work panel" on the right hand side of the page goes away and I am just left with a list of categories and the active/inactive toggle.

I would really appreciate someone providing me an idea to resolve this as I have not been able to solve it my self as of yet.

Thank you in advance.

#18   jhaugen

jhaugen
  • Members
  • 24 posts
  • Real Name:Jerry Haugen

Posted 15 July 2012 - 09:03 AM

I have categories with very long descriptions and very short product lists.  How could the installation procedure for v1.08 be modified so that the product list would appear before the description?

#19   cefyn

cefyn
  • Members
  • 39 posts
  • Real Name:kevin radley
  • Location:north wales and london

Posted 22 July 2012 - 10:55 AM

I've just installed this on 2.3.1,and it is a great contribution.I think I may have misunderstood something in the install instructions though,and would be grateful if someone could point me in the right direction.In the catalog,category image and description are showing at the top of the page,as they should,where the category has only products in it.But if the category has subcategories then the category image and description shows at the bottom of the page under the subcategory images.
The only other add on I have on the index page is modular front page ,and I can't see that that's interfering with anything.Any ideas anyone?Thanks.

#20   cefyn

cefyn
  • Members
  • 39 posts
  • Real Name:kevin radley
  • Location:north wales and london

Posted 23 July 2012 - 01:56 PM

This works ok if you put the first edit of index.php in at line 41,like this.

<h1><?php echo $category['categories_name']; ?></h1>

    <table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="productListing-data">
<?php
    echo $categories_desc['categories_description'];
?>
    </td>
    <td class="pageHeading" align="center"

>
<?php
    if (tep_not_null($category['categories_image']) && (file_exists(DIR_WS_IMAGES . $category['categories_image'])) ) {
  echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
    }
?>
    </td>
  </tr>
    </table>