Page 14 of 15 FirstFirst ... 412131415 LastLast
Results 131 to 140 of 149
  1. #131
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

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

    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.

  2. #132
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

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

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

    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>';
    Live and learn... the Zen way.

  3. #133
    Join Date
    Sep 2008
    Location
    WA
    Posts
    555
    Plugin Contributions
    0

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

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

  4. #134
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

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

    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.

  5. #135
    Join Date
    Oct 2007
    Posts
    134
    Plugin Contributions
    0

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

    Quote Originally Posted by mydanilo View Post
    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:
    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

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

  6. #136
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

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

    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

  7. #137
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

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

    Quote Originally Posted by shags38 View Post
    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
    PHP Code:
    require($body_code); ?> 
    and insert right after

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

  8. #138
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

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

    Quote Originally Posted by mydanilo View Post
    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
    PHP Code:
    require($body_code); ?> 
    and insert right after

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

    I will try it out soon,
    cheers,
    Mike

  9. #139
    Join Date
    Apr 2017
    Location
    Netherlands
    Posts
    20
    Plugin Contributions
    0

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

    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.

  10. #140
    Join Date
    Mar 2011
    Posts
    33
    Plugin Contributions
    0

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

    Quote Originally Posted by bramf View Post
    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
    Code:
    $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
    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);

 

 
Page 14 of 15 FirstFirst ... 412131415 LastLast

Similar Threads

  1. v139h Short Description problems - no description on product list page
    By jgold723 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 24 Oct 2014, 05:52 AM
  2. Short Description mod - bigger textbox for Product Add page?
    By christopherw in forum Addon Templates
    Replies: 9
    Last Post: 1 Nov 2010, 12:07 AM
  3. Short Product Description for category page
    By hockey2112 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 9 Aug 2010, 11:35 PM
  4. Products Listing - Add Model below title, above description
    By margecc in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Jun 2008, 07:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR