Zen Cart Logo
Forums / All Other Contributions/Addons / Short Description for Categories... have a description above & below product listings

Short Description for Categories... have a description above & below product listings

Views: 35,201

Results 101 to 120 of 149
24 Oct 2010, 6:06 AM
#101
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Short Description for Categories... have a description above & below product listings

bumba000:

The mod is somehow responsible for altering what's entered into the db. It changes a <br /> into <br />

I am using plain text editor.

I have tried the html bug fix for 1.3.9g with no luck. Everything else like category descriptions, product descriptions, ez pages and more all work fine with html code this is the only thing doing it.

I understand that I can put the html into the db myself but I would much rather it worked properly.

Please let me know where to look. Where could this be taking place?

Thanks,
John
If you must have the fix immediately without delay, you can add the appropriate text-input field name to the whitelist as discussed in that bugfix thread.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Oct 2010, 6:55 AM
#102
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

Thanks for the quick reply, but it doesn't seem to be working.

this is what I see in the cat edit source <textarea name="categories_description_sub[1]

so in the whitelist array I add , 'categories_description_sub[1]' then save and upload, same problem.

am I doing something wrong?

24 Oct 2010, 11:02 AM
#103
kidsstuff avatar

kidsstuff

New Zenner

Join Date:
Oct 2010
Posts:
44
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

It's working for me with 1.39g if I add 'categories_description_sub' to the string in the extra_white_list.php.See it in action here:
http://childrenstore.co.uk/kids-clothing-c-5.html

24 Oct 2010, 3:14 PM
#104
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

This is what I have and it's not working for me.

<?php
$global_xss_whitelist = isset($global_xss_whitelist) ? $global_xss_whitelist : array();
$my_whitelist  = array('file_contents', 'banners_html_text', 'pages_title', 'message_html', 'manufacturers_name', 'symbol_left', 'symbol_right', 'query_string', 'categories_description_sub');
$global_xss_whitelist = array_merge($my_whitelist, $global_xss_whitelist);
```I copied what Ajeh had posted in the bug fix, it looks like there's an end php missing but there's no mention of it. With or without an end php in the extra white list file it doesn't fix the problem with sub description. Nothing else (i.e. ezpages, define pages, cat desc, . . .) is having this problem, just the sub  desc.

Also, if I add the html to the db and then load that cat edit in the admin it breaks the good stuff just entered into the db.

Thanks,
        John
24 Oct 2010, 4:51 PM
#105
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

Not sure what I'm doing differently now but I've added the , 'categories_description_sub' to the extra whitelist again and it's now working.

Thanks All,
John

3 Jun 2011, 7:24 PM
#106
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

Does this mod work for zc 1.3.9h? Are there still any bugfix edits I need to make? It hasn't been updated since 2007.

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

4 Jun 2011, 7:14 PM
#107
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

**/admin/categories.php ** is one of the core overrides in this mod, and when I compare it with WinMerge, it appears that nearly the entire file is different from 1.3.9h, so it's not possible to be careful with the edits. I have other mods installed that affect the categories editor, and I think this is going to break them.

I haven't looked at the other files.

Is there any other mod out there that will do this and has been updated more recently?

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

4 Jun 2011, 8:30 PM
#108
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

Nevermind, figured it out. WinMerge settings were wrong. Works great!

But it does take some knowhow to apply the mod in the files right. A couple curly braces were missing in the template override files.

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

3 Jul 2011, 2:44 AM
#109
sparrowce avatar

sparrowce

Zen Follower

Join Date:
Feb 2011
Posts:
207
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

I just installed the Short Description for Categories, used winmerge to compare/merge into files I'd already modified, ran the SQL, and it appeared ok, except in my Admin area, I can click on the categories and the products will show, but when I click into an individual product to edit it, the page is blank. I've gone back through and checked the changes but not sure what I've missed or done wrong. Any idea which page would be the best place to start? Thank you!

3 Jul 2011, 4:46 AM
#110
sparrowce avatar

sparrowce

Zen Follower

Join Date:
Feb 2011
Posts:
207
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

Update, it is the includes\modules\product\collect_info.php file. I have tried it as is straight from the download but it blanks out the product page in admin, so I've set it back to the older collect_info.php for now, but would like to use this if possible, thank you.

3 Jul 2011, 5:59 AM
#111
sparrowce avatar

sparrowce

Zen Follower

Join Date:
Feb 2011
Posts:
207
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

Using the collect_info.php from v 1.1 solved the issue, and it's no longer blank and I am able to edit the product and enter a short description in the listings. However, it doesn't seem to be holding the description, when I enter it into a product, it doesn't show up in the listing, the long description still shows, and when I check to make sure it's in the product info, the entry is blank so I add it again, save it and it's not there when I go back to check. Any ideas at all? This is a very important feature, and am in much need of it or another solution, thank you again.

3 Jul 2011, 5:18 PM
#112
sparrowce avatar

sparrowce

Zen Follower

Join Date:
Feb 2011
Posts:
207
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

UPDATE: dropped back to V 1.1 files and now the description is saving - though it is still not showing up in the product listing. Am I understanding wrongly what this module does? I am needing to get a short description to show up on the row/product listings, but the long one to show up when one clicks into the product for more info. Also, the Weight is now showing double on the right column of the product listing. If I change the number in the Product Listing on weight (currently says 3), I'll get one weight, but 2 item names or images - have tried lots of different settings including changing the short description but right now I have the short description disabled at 0, as every other setting gives me double of something else and I can go into that listing setting and fix it but then it throws the next thing into double, so I do not know what I've done wrong and very much need help, thank you.

24 Jul 2011, 8:35 AM
#113
raquelann1971 avatar

raquelann1971

New Zenner

Join Date:
Jul 2010
Posts:
11
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

Hi. I have installed this addon and now I have the description of my products listed twice. It is listed as it should be, and then again below the listing again. :unsure: Can anyone help me with finding out what went wrong. I have added an exaple link below:
http://www.oddsnsods.com.au/index.php?main_page=product_info&cPath=8_41_62&products_id=701

24 Jul 2011, 3:29 PM
#114
richardmusic avatar

richardmusic

New Zenner

Join Date:
Jul 2011
Posts:
3
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

Hi there

I really hope that someone can help me. I have been trying to install short descriptions for categories with no luck but most importantly now I cannot log into my admin area, it is coming up with HTTP error 500 whenever I go to my admin URL.

All I did was copy accross the various files in the package, I carefully kept a copy of the old files in case it went wrong. I did not change the database first and this may be why it threw up an error when I tested. So I then went back to remove all the files I have added and restore all the original files, which I have checked and re-chacked and I think I have done ok.

Now however, the front end of the site is working fine but I get this error on when trying to access my admin area. I have looked in the debug logs and this is what it says:

[24-Jul-2011 16:58:17] PHP Warning: require(includes/init_includes/init_file_db_names.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /homepages/40/d338914878/htdocs/woodburningstovesandflues/includes/autoload_func.php on line 48
[24-Jul-2011 16:58:17] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/init_includes/init_file_db_names.php' (include_path='.:/usr/lib/php5') in /homepages/40/d338914878/htdocs/woodburningstovesandflues/includes/autoload_func.php on line 48

Anyone who could help me with this I would be so grateful to as at the moment I am looking at having to start the whole site again from scratch!!

Many thanks

Richard.

8 Aug 2011, 5:48 PM
#115
richardmusic avatar

richardmusic

New Zenner

Join Date:
Jul 2011
Posts:
3
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

Just to let you know that I have sorted the problem out - I mistakenly had moved a file when uninstalling the mod, which stopped the whole thing working.

Don't be put off by my post the mod is great and I've got it working well now.

26 May 2012, 10:57 AM
#116
palagio avatar

palagio

New Zenner

Join Date:
Jan 2011
Posts:
43
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

I uploaded your mod to our site and when I edit the
Categories Description Below Categories

and then publish, the description shows on my site with code in the text? The only way for me to get rid of this is to write the descriptions in plain text?
Please see the below description for our Furniture category:
http://www.clicknorder.co.uk/furniture-c-99.html

where i have bolded the keyword furniture in the editor it now displays on the page as

'In this section you will find a tremendous range of <span style="font-weight: bold;">furniture</span>'

Can you please advise how or what i need to do to fix this?

Thanks in advance

26 May 2012, 11:46 AM
#117
palagio avatar

palagio

New Zenner

Join Date:
Jan 2011
Posts:
43
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

I just found the files uploaded in this thread by Mauryg for vers 1.3.8

We are on vers 1.3.9 so I reuploaded the files mauryg posted on our test site first and then ran the sql patch in admin and got this error
1060 Duplicate column name 'categories_description_sub'
in:
[ALTER TABLE cno_categories_description ADD categories_description_sub TEXT NOT NULL;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I then checked on our test site and the description below the category is now no longer showing, only the one above. This was working with the previous mod files although I was unable to format the text in the below descriptions as the HTMLarea would not edit correctly and I was only able to enter the below descriptions in plain text.
Can anyone advise as to what I am doing wrong?
Which files am I supposed to use to upload this mod?
The
'Short Description for Categories' files uploaded by Jade originally
or the 'Short Description for Categories 1.2b' uploaded by mauryg for vers.3.8?
Thanks in advance

21 Jun 2012, 11:48 AM
#118
palagio avatar

palagio

New Zenner

Join Date:
Jan 2011
Posts:
43
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

We have also tried installing CKeditor and when i try to edit the description below it still produces code on the site page

Can anyone advise and help with this as would really like to get working correctly so that we can format the descirptions below and make this easier for the customer to be able to read

thanks in advance

4 Nov 2012, 8:28 PM
#119
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Short Description for Categories... have a description above & below product listings

I have your mod working well - thanks for your useful add-on.

Q. Can the same thing be modified for product pages ? If so can you please provide some advice as to how to do it ?

cheers,
Mike

5 Nov 2012, 5:05 PM
#120
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Short Description for Categories... have a description above & below product listings

There is a mod for extra descriptions in the product page: http://www.zen-cart.com/downloads.php?do=file&id=168
Unfortunately, it was last updated for v1.3.8 and is unlikely to work as is in v1.5.x. It will need some SQL changes and possibly admin files brought up to date.