This topic contains 19 replies, has 3 voices, and was last updated by Tom Tom 2 weeks, 1 day ago.

Problem in product category sidebar

  • Hello

    When you are in my shop, and you click on a category in the sidebar, canned-food for example, all of the products show on the page when it should just be the 2 that are in canned-food. The same thing happens whichever category you click on. The strange thing is if you refresh the page only the products in that category show.

    Can you help?

    Tom
    This reply has been marked as private.
    This reply has been marked as private.
    Tom
    This reply has been marked as private.

    Looks like work, thanks a lot.

    If you can please help me with another issue, the breadcrumbs are not workin properly, when you are in the shop page appears blog instead shop, and in product page have a blank space there.

    Tom

    Hi,

    Override file: https://www.dropbox.com/s/qpng7kil73n2z80/breadcrumb.php?dl=0
    Path: /wp-content/themes/animer/woocommerce/global/breadcrumb.php

    Hope it can help you.

    Best regards,
    Tom

    Hi,

    After overrided the file, the breadcrumbs in product page works fine, but in the shop page when in a categorie of products the breadcrumbs is not showed.

    Is there any configuraction i need to do?

    one more question.

    Is it possible put an icon to login and logout beside the cart shop icon in top bar?

    Tom

    Hi,

    You are setting home is Shop page, in our design, breadcrumbs will being without.
    I have just confixed for your site, you can check.

    Best regards,
    Tommy

    Tom

    Paste function at end file: /wp-content\themes\animer-theme\includes\theme-functions.php

    function animer_tiny_account($icon = false, $user = false, $redirect = false) {
    $login_url = '#';
    $register_url = '#';
    $profile_url = '#';

    if (class_exists('WooCommerce')) { /* Active woocommerce */
    $myaccount_page_id = get_option('woocommerce_myaccount_page_id');
    if ($myaccount_page_id) {
    $login_url = get_permalink($myaccount_page_id);
    $register_url = $login_url;
    $profile_url = $login_url;
    }
    } else {
    $login_url = wp_login_url();
    $register_url = wp_registration_url();
    $profile_url = admin_url('profile.php');
    }

    $result = '<ul class="lt-menus-account">';
    if (!is_user_logged_in() && !$user) {
    global $lt_opt;
    $login_ajax = (!isset($lt_opt['login_ajax']) || $lt_opt['login_ajax'] == 1) ? '1' : '0';
    $span = $icon ? '<span class="pe7-icon pe-7s-user"></span>' : '';
    $login_title = esc_html__('Login or Register', 'animer-theme');
    $result .= '<li class="menu-item color">' . $span . '<span class="lt-login-title">' . $login_title . '</span>';
    } else {
    if(!$redirect) {
    global $wp;
    $redirect = home_url(add_query_arg(array(),$wp->request));
    }
    $logout_url = wp_logout_url($redirect);

    $span1 = $icon ? '<span class="pe7-icon pe-7s-user"></span>' : '';
    $span2 = $icon ? '<span class="pe7-icon pe-7s-back"></span>' : '';
    $acc_title = esc_html__('My Account', 'animer-theme');
    $logout_title = esc_html__('Logout', 'animer-theme');
    $result .=
    '<li class="menu-item">' . $span1 . $acc_title . '' .
    '<li class="menu-item">' . $span2 . $logout_title . '';
    }

    return $result . '';
    }

    This is function for login, register, profile and logout. paste : echo animer_tiny_account(true); in place you want display (wp-content\themes\animer-theme\headers\top-bar.php in <div class=”right-text right”>…</div>).

    Best regards,
    Tom

    • This reply was modified 3 months, 3 weeks ago by Tom Tom.

    There is no way to use shop page as home , and continue showing breadcrumbs?

    And shop page stoped to work.

    Thanks for attention.

    Tom

    In Our design, Home page don’t have breadcumbs, Home page only display special product, banners, slide, info important …

    If it has breadcumbs, would it display Home > ???

    Wish you sympathize

    Best regards,

    In my case shop needs be the home, but i understood your point.

    Just in the login in top bar i followed the instructions, the login and logout are showed, but do nothing.

    Tom

    Hi,

    May be tag html a not use in forum
    You need go to link make code: https://www.dropbox.com/s/qvlt73r4e6unojb/ace_tiny_account.txt?dl=0

    Best regards,
    Tom

    Hi

    Thanks a lot for the suport, look like the problems are solved by now.

    I have edited the breadcrumb.php and now works for my case.

    If i can make a sugestion, if is possible put one button similar to the cart in top bar for login instead just a link.

You must be logged in to reply to this topic.