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.
Printable View
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?
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
This is what I have and it's not working for me.
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.Code:<?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);
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
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
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.
/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?
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.
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!
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.
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.
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.
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.ph...roducts_id=701
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.
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.
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
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
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
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
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.
A really great enhancement to this would be if when you clicked on the more link the area expanded to show you the rest of the content rather than take you to the bottom of the page. it could then display a less link or similar so that it could be collapsed again.
Unfortunately I do not have the skills to do anything like this, but would be really interested if anyone has achieved this...:D
Compatibility with column_layout_grid_2_3_1?
Short Description works well in my 1.5.1 cart. But after installing clg, product listing pages no longer show "more info . ." nor the second description below the listings.
Any ideas please?
You would have to merge the short description code in product_listing.php into the CLG version of the file. (The CLG version has a lot of changes from stock, so it would be easiest to merge in that direction.) There might be short description code in other files shared with CLG, I don't know.
Thanks gjh42 - especially the tip abt direction to merge :)
Though I see that Short Description for Categories does not have a product_listing.php, but both plugins do share a common file; that being,
includes/templates/YOUR_TEMPLATE/templates/tpl_index_product_list.php
May be the latter file is the one to to merge?
If that is the only shared file, then yes, that would be the one to merge. The CLG mods in that file are minor.
Things were working fine but now I don't the see the 'Moore Info....' link at the Categories Description and the Category Description after subcategories doesn't appear, even though when I go to my admin I see the Categories Descriptions are split into two and the box is filled with info.
Any help would be appreciated, here is the link to the site http://www.aydincoins.com/buy-gold
thank you
I can definitely say that having followed the instructions successfully and to the letter that nothing, and I mean nothing, has happened.
How are you supposed to apply the second description? Where is there anything new in any page, admin or front end? I would love this to work as my particular requirements leave the product listings looking pretty bare with just a title.
Actually after browsing more of this thread, I know now how totally screwed up this plug in is. I will be deleting all mods forthwith until I find one that a newbie like me can use without messing all my good work up.
Cheers
BTW all links to pages using this plug in that I have clicked have failed to open. Ironic really.
Hi there,
Just tried the 1.5.4 version - thanks for making the update available by the way! I think my issue is due to having Ultimate Urls. I get this instead of the more info link:-
} if ($current_categories_description_sub != '') { echo '' . CATEGORIES_SUB_TEXT . ''; ?>
I am certain I installed everything, the catalogue side is more or less unmodified files anyway so any merging was easy to do.
Thanks for any help with this.
} if ($current_categories_description_sub != '') { echo '' . CATEGORIES_SUB_TEXT . ''; ?>
Same here too. Did you find a solution?
Also want to add that the CKEditor in admin does not display the two text sections as it should. It's just all gray. If I use the text edit, both text areas display properly.
Just uploaded the CKEditor again and the edit now works but the rest of the problem is still valid. Any pointers much appreciated.
Problem solved. There was a typo on line 37 that made the line of code appear in the text above category images. Replace this code:
with this oneCode:<div id="indexProductListCatDescription" class="content"><?php echo $current_categories_description; ?></div>
}
if ($current_categories_description_sub != '') {
echo '<a id="descSubLink" href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $cPath) . '#descSub" >' . CATEGORIES_SUB_TEXT . '</a>';
Code:<div id="indexProductListCatDescription" class="content"><?php echo $current_categories_description; ?></div>
<?php
}
if ($current_categories_description_sub != '') {
echo '<a id="descSubLink" href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $cPath) . '#descSub" >' . CATEGORIES_SUB_TEXT . '</a>';
can you tell me the name of this file so I can see the rest of the code? Thank you.
Sorry forgot to put the file name where the changes need to be made. Here it is:
\includes\templates\YOUR_TEMPLATE\templates\tpl_index_product_list.php
Hi, thanks for making such a wonderful mod. I was having this same problem on ZC version 1.5.4.
I changed the code as discussed, and the problem was solved, but the link: "more info.... " is now showing twice simultaneously in the subcategory page.
moreover, the "more info" link does not jumps to the proper place where the second description exists. it just jumps to somewhat lower place in the page. It would be better if clicking the more info link should jump to the start of the second description.
Any help available will be highly appreciated.
An example for the problem can be seen here: http://shopping.muteyaar.org/index.p...53_54&pg=store
is there a way that this mod could be applied to the 'main page' (index) such that it sits under new,featured,specials categories display on main page?
cheers, Mike
Not sure if you are still looking but you can do it by adding this code to the tpl_main_page.php in your templates common folder:
Around line 245 find
and insert right afterPHP Code:
require($body_code); ?>
Then create an EZ page with the title SEO and put whatever text you want on this EZ page. Works a treat.PHP Code:
<!--bof- SEO Ezpage text -->
<div id="seo_content">
<?php
if ($this_is_home_page) {
$page_query = $db->Execute("SELECT pages_html_text FROM zen_ezpages WHERE pages_title='SEO'");
$seo_text = $page_query->fields['pages_html_text'];
echo $seo_text;
} ?>
</div>
<!--eof- SEO Ezpage text -->
I installed the module in 1.55 shop, but when I add e.g. a table it is showing html code instead of the table.
It seems that when the category text is saved some of the characters are replaced. my shop is using ckeditor.
Anyone has a solution for me? In some previous pages I see people describing the same issue, but I do not understand solution.
Change this code here.
admin/includes/init_includes/init_sanitize.php
Line #214
From
To ThisCode:$group = array('products_description', 'coupon_desc', 'file_contents', 'categories_description', 'message_html', 'banners_html_text', 'pages_html_text', 'comments', 'products_options_comment');
$sanitizer->addSimpleSanitization('PRODUCT_DESC_REGEX', $group);
Code:$group = array('products_description', 'coupon_desc', 'file_contents', 'categories_description', 'categories_description_sub', 'message_html', 'banners_html_text', 'pages_html_text', 'comments', 'products_options_comment');
$sanitizer->addSimpleSanitization('PRODUCT_DESC_REGEX', $group);
An even better way, which touches no core files, is to add this file to the plugin's files:
/admin/includes/extra_datafiles/sanitizer_categories_sub.php
Code:<?php
$sanitizer = AdminRequestSanitizer::getInstance();
$group = array(
'categories_description_sub' => array('sanitizerType' => 'PRODUCT_DESC_REGEX', 'method' => 'post'),
);
$sanitizer->addComplexSanitization($group);
A new update has been submitted for this module to include:
Updated for Zen Cart 1.5.5e.
Added admin sanitize file (see below) to work with CKEditor per drByte.
Created new files for classic_responsive template.
Will post again once module has been approved.
ENJOY!!
https://www.zen-cart.com/downloads.php?do=file&id=355
New update has been approved and ready for download
Hello! Please help me. I have a problem with categories (after installing ZenCart 1.5.5e module) - an endless loading when go to categories. I checked logs and noticed this error: PHP Parse error: syntax error, unexpected '}' in /home/pitbulldogbreeds/public_html/includes/templates/yourstore/templates/tpl_index_categories.php on line 130. can you help me, please?
Hello - does anyone have this mod working in v1.5.7b (or 1.5.6 even) ?? - have used this for years and would like to continue with it in 1.5.7b
cheers,
Mike
The more accurate question might be... Would anybody try to make it work with 1.5.7b? One might consider cloning the way the product description works on the all products page (the ...) and incorporate it into the category description.
Seems like that would be far superior to making the customer look in two places for the category information.
One way with jQuery would be https://www.viralpatel.net/dynamical...e-link-jquery/ which uses the more...
If you just wanted to "see" the first paragraph and not the others until an event, you'd wrap all but the first in a div with display:none and toggle it on with a click on the div.
My point. If you are going to spend time, spend it finding current methods. Bandaids hurt when they get ripped off.
Everything you said makes sense dbltoe and you know I value your opinions.
a couple of things I would offer as comments :smile:
The plugin had over 3900 downloads so it seems it is possible there are many zenners out there using this plugin that have yet to move on from v1.5.5 - like me very, very recently. .... unless of course you meant why would anyone try to make the current plugin work with 1.5.7b rather than start afresh - in which case I agree, if it cannot be readily modified then absolutely correct.Quote:
Would anybody try to make it work with 1.5.7b?
The information provided in the primary category description was always enough to give the customers an accurate overview of what the category was about / contained without boring them to death or making the content too long (particularly for mobile view). The additional content at the bottom of each page of the category listings was just that, additional - some may have read it, most will not have - women shopping for jewelry shop by images first and foremost and text is secondary other than when they get the to the product page and even then they skim.Quote:
Seems like that would be far superior to making the customer look in two places for the category information.
I used the additional text in the extra box for the crawlers primarily - extra content (content is king, right?)
I think this one would work - I would need to figure a way to implement it without breaking my site which would be a mammoth task for me :smile: , not to say that I wouldn't try - additionally the more Jscripts on the site the worse the performance becomes with Core Web Vitals and Lighthouse performance scores, something I'm desperately trying to improve to get ahead of my competitors (maybe this script loads last in <body> - not sure, haven't checked it out yet so cannot be sure it would affect those scores). And, yes I am trying to improve html and css to current standards, gradually - as well as adding more content on the site (a wholistic approach) - I do listen most of the time.Quote:
One way with jQuery would be https://www.viralpatel.net/dynamical...e-link-jquery/ which uses the more...
I will take a good look at that Vital Patel page soon and try to digest the detail and see if I think I can use it without too much risk.
Again many thanks for the info,
cheers,Mike
Hi, does anyone know if this plugin works with latest version of zen cart v1.5.8a?
Looking to upgrade, but would like to continue having this plugin
...or an alternative plugin / method that has the same function.
Thanks
I'm going to take a big guess and say that the plugin will require changes to run under Zen Cart 1.5.8. I don't have any clients that currently use this, so I can't be much of an aid.