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 121 to 140 of 149
24 Feb 2013, 12:04 AM
#121
olcs avatar

olcs

New Zenner

Join Date:
Dec 2011
Posts:
92
Plugin Contributions:
0

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

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

5 Jul 2013, 12:42 PM
#122
redspinnaker avatar

redspinnaker

New Zenner

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

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

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?

5 Jul 2013, 2:24 PM
#123
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

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.

7 Jul 2013, 3:29 PM
#124
redspinnaker avatar

redspinnaker

New Zenner

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

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

gjh42:

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?

8 Jul 2013, 3:18 AM
#125
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

If that is the only shared file, then yes, that would be the one to merge. The CLG mods in that file are minor.

6 Jan 2014, 12:18 AM
#126
coins2012 avatar

coins2012

New Zenner

Join Date:
Jan 2012
Posts:
89
Plugin Contributions:
0

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

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

25 Nov 2014, 4:28 AM
#127
rauf_denktash avatar

rauf_denktash

New Zenner

Join Date:
Nov 2014
Location:
Penkridge
Posts:
9
Plugin Contributions:
0

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

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

25 Nov 2014, 4:37 AM
#128
rauf_denktash avatar

rauf_denktash

New Zenner

Join Date:
Nov 2014
Location:
Penkridge
Posts:
9
Plugin Contributions:
0

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

BTW all links to pages using this plug in that I have clicked have failed to open. Ironic really.

8 Mar 2015, 9:47 PM
#129
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

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

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.

29 Jun 2015, 9:39 PM
#130
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

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

HeathenMagic:

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.

Live and learn... the Zen way.

29 Jun 2015, 9:49 PM
#131
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

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

Just uploaded the CKEditor again and the edit now works but the rest of the problem is still valid. Any pointers much appreciated.

Live and learn... the Zen way.

30 Jun 2015, 12:00 PM
#132
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

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

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:

<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>'; 

with this one

<div id="indexProductListCatDescription" class="content"><?php echo $current_categories_description;  ?></div>
[B]<?php[/B]
}

 if ($current_categories_description_sub != '') {
 echo '<a id="descSubLink" href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $cPath) . '#descSub" >' . CATEGORIES_SUB_TEXT . '</a>'; 

Live and learn... the Zen way.

30 Jun 2015, 4:42 PM
#133
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

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

can you tell me the name of this file so I can see the rest of the code? Thank you.

30 Jun 2015, 5:29 PM
#134
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

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

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

Live and learn... the Zen way.

2 Nov 2016, 5:27 AM
#135
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

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

mydanilo:

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:

<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>';

> with this one
> 
> ```
<div id="indexProductListCatDescription" class="content"><?php echo $current_categories_description;  ?></div>
[B]<?php[/B]
}

 if ($current_categories_description_sub != '') {
 echo '<a id="descSubLink" href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $cPath) . '#descSub" >' . CATEGORIES_SUB_TEXT . '</a>'; 

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.php?main_page=index&cPath=53_54&pg=store

22 Mar 2017, 12:05 AM
#136
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

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

5 Apr 2017, 3:50 PM
#137
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

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

shags38:

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

require($body_code); ?>

and insert right after

<!--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 -->

Then create an EZ page with the title SEO and put whatever text you want on this EZ page. Works a treat.

Live and learn... the Zen way.

5 Apr 2017, 10:47 PM
#138
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

mydanilo:

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

require($body_code); ?>

> and insert right after
> 
>  ```php
<!--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 -->

Then create an EZ page with the title SEO and put whatever text you want on this EZ page. Works a treat.

Hi mydanilo - many thanks for your response and taking the time and effort to provide a solution - my faith in the Zen community is restored :smile:

I will try it out soon,
cheers,
Mike

20 Apr 2017, 5:06 PM
#139
bramf avatar

bramf

New Zenner

Join Date:
Apr 2017
Location:
Netherlands
Posts:
20
Plugin Contributions:
0

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

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.

26 Apr 2017, 3:17 PM
#140
ntestinfo11 avatar

ntestinfo11

New Zenner

Join Date:
Mar 2011
Posts:
39
Plugin Contributions:
0

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

bramf:

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

$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);

To This

$group = array('products_description', 'coupon_desc', 'file_contents', 'categories_description'[B], 'categories_description_sub'[/B], 'message_html', 'banners_html_text', 'pages_html_text', 'comments', 'products_options_comment');

$sanitizer->addSimpleSanitization('PRODUCT_DESC_REGEX', $group);