Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author kevin heath

    (@ypraise)

    Hi

    thanks for your message. Unfortunatley you are using a premium theme so I am unable to help you as I don’t have access to download it.

    If you send me details and admin log in to your site I’ll try and take a quick look at where you’ve put the code to see if there is a clash somewhere.

    you can send log in details to [email protected] if you need help.

    thanks
    kevin

    Thread Starter whitelies

    (@whitelies)

    Hi,

    I realized it is the product categories instead of the post categories.

    Will it still works?

    Plugin Author kevin heath

    (@ypraise)

    Hi

    Yes it should still work. Provided you paste the code in the correct place – and assuming that product categories is not a custom taxonomy it should work.

    If the top description is showing then it should be possible to display the bottom description.

    Kevin

    Thread Starter whitelies

    (@whitelies)

    I will send you my login to you email now.

    I do hope you will fixed it and treat my account will privacy.

    Plugin Author kevin heath

    (@ypraise)

    Hi

    For others following this.

    The site uses woocommerce which uses custom taxonomies for categories.

    CategoryTinymce does not support custom taxonomies.

    Kevin

    Hi Kevin,

    Isn’t there a way to get it to work with woocommerce?
    This is exactly what I was looking for and was really disappointed when I read your latest post here..
    I am looking forward to your reply!

    Erik

    Just wanted to let you know that I’d also really like to see WooCommerce support. I’d pay for a version of this plugin with that functionality.

    I would definately pay too..
    bottom description not working with my theme either.
    @whitelies how did you manage to fix this issue ?

    Plugin Author kevin heath

    (@ypraise)

    This is an issue with the way that woocommerce has its custom taxonomies.

    At some stage in the future I will make the plugin woocommerce compatible but it may be a few weeks – or even a few months.

    I am very busy at the moment and have no time to commit to updating this plugin.

    Kevin

    Plugin Author kevin heath

    (@ypraise)

    I’ll be doing an update of the plugin later with the new read me file. In the mean time here is how you get the bottom description to display on a woocommerce product page:

    Woocommerce integration:
    The top category description is called as normal. To add the bottom description to a product archive add the following to the archive-product.php file. I would strongly recommend you add the file in the child folder in your theme file rather than directly changing the file in the woocommerce plugin file.
    Read how to do this in woocommerce if you don’t already know.
    I add the code after the

    do_action( 'woocommerce_after_shop_loop' );
    			?>

    The code to call bottom description in woocommerce:

    <div class="bottagdesc">
    <?php
    if ( is_product_category() ) {
    global $wp_query;
            $q_obj = $wp_query->get_queried_object();
            $cat_id = $q_obj->term_id;
    $cat_data = get_option("category_$cat_id");
    if (isset($cat_data['bottomdescription'])){
    echo do_shortcode($cat_data['bottomdescription']);
    }
             } 
    
    ?>
    </div>
    Plugin Author kevin heath

    (@ypraise)

    sorry please update that code above to

    <div class="bottagdesc">
    <?php
    if ( is_product_category()) {
    global $wp_query;
            $q_obj = $wp_query->get_queried_object();
            $cat_id = $q_obj->term_id;
    
    $tag_data = get_option("tag_$cat_id");
    if (isset($tag_data['bottomdescription'])){
    echo do_shortcode($tag_data['bottomdescription']);
             }
    }
    
    ?>
    </div>

    I was calling the wrong category type in the old code. This will call the woocommerce product category.

    Kevin

    Plugin Author kevin heath

    (@ypraise)

    Also don’t forget if you are using a non woocommerce compatible theme then you need to add the code to your woocommerce.php file in your theme and not the product-archive.php file as this file does not work in non-compatible themes.

    see the documentation on theme integration at woocommerce for the details.

    Kevin

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Bottom Description Not Working on Legenda Theme’ is closed to new replies.