New Landing How can we help? Themeforest Theme Support Neighborhood Woocommerce archive description and pagination

Viewing 14 posts - 31 through 44 (of 44 total)
  • #84810
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You said never that I am editing archive-description in the Theme folder: (wp-content/themes/neighborhood/woocommerce/archive-description.php). How can i edit this file?

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #84813
    lobbybros
    Member
    Post count: 52

    I can send you the file if you like and then load it on our ftp once it is ready (but tomorrow, because here it is 8 pm italian time)

    #84819
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Its ok.
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #84995
    lobbybros
    Member
    Post count: 52

    As promised, here is the php file (wp-content/themes/neighborhood/woocommerce/archive-product.php).

    #84996
    lobbybros
    Member
    Post count: 52

    Sorry but it won’t allow me to send you the php file through here… where can i send it to you?
    (wp-content/themes/neighborhood/woocommerce/archive-product.php)

    #85012
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please compress as zip and attach.
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #85025
    lobbybros
    Member
    Post count: 52

    Here we go!

    #85085
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please remove that one code and use this one code:

    <?php 
    if(!is_product_category()){
    $shop_page = get_post( woocommerce_get_page_id( 'shop' ) );
    echo '<div class="page-description">' . apply_filters( 'the_content', $shop_page->post_content ) . '</div>';
    }else{ 
    do_action( 'woocommerce_archive_description' );
    echo '<div class="page-description">' . $category->description . '</div>';
    
    }
    ?>

    Thanks

    #85190
    lobbybros
    Member
    Post count: 52

    Thks for yr fast reply!
    Still nothing on the product categories…second page is still not showing description.

    #85229
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am very sorry that all of these could not help. Check this one also and let me know.

    <?php 
    if(!is_product_category()){
    $shop_page = get_post( woocommerce_get_page_id( 'shop' ) );
    echo '<div class="page-description">' . apply_filters( 'the_content', $shop_page->post_content ) . '</div>';
    }else{ 
    do_action( 'woocommerce_archive_description' );
    global $category;
    $cat_id=$category->term_id;
    $prod_term=get_term($cat_id,'product_cat');
    $description=$prod_term->description;
    echo '<div class="page-description">' . $description . '</div>';
    
    }
    ?>

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #85239
    lobbybros
    Member
    Post count: 52

    Same problem as before… ๐Ÿ™ Sorry if this is becoming frustrating for you!

    #85261
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved it by using given below of code :

    <?php 
    if(!is_product_category()){
    $shop_page = get_post( woocommerce_get_page_id( 'shop' ) );
    echo '<div class="page-description">' . apply_filters( 'the_content', $shop_page->post_content ) . '</div>';
    }else{ 
    
    $cat_id = get_queried_object_id();
    $prod_term=get_term($cat_id,'product_cat');
    $description=$prod_term->description;
    echo '<div class="page-description">' . $description . '</div>';
    
    }
    ?>

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #85725
    lobbybros
    Member
    Post count: 52

    Works perfectly!!! Thks!

    #85731
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great! Thanks Mohammad

    – Kyle

Viewing 14 posts - 31 through 44 (of 44 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register