Home Forums WoodMart support forum Cart badge after update

Cart badge after update

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #144350

    rahmankhah
    Participant

    Hello.
    Thanks for your great work and support with the new updates.
    After installing, I got an issue on mobile navigation cart badge which is disappear and when I checked I realized that the display att. set to none and even changed to block the location is not right. Check the attached image-1.

    Also, there is a suggestion on back-end theme dashboard which this feature was before update 4. Thats useful on mobile screens. check the attached image-2.

    #144396

    rahmankhah
    Participant

    Also, on mobile menu after new update I realized that the login disappeared on iPhone while showing on Android phones. Have a look on these two attached images.

    #144452

    Artem Temos
    Keymaster

    Hello,

    Try to add the following PHP code snippet to the child theme functions.php file

    function woodmart_sticky_toolbar_cart_template() {
            if ( ! woodmart_woocommerce_installed() || ( ! is_user_logged_in() && woodmart_get_opt( 'login_prices' ) ) ) {
                return;
            }
            $settings = whb_get_settings();
            $opener   = false;
            $classes  = '';
            if ( isset( $settings['cart']['position'] ) ) {
                $opener = $settings['cart']['position'] == 'side';
            }
            if ( $opener ) {
                $classes .= ' cart-widget-opener';
            }
            ?>
            <div class="woodmart-shopping-cart woodmart-cart-design-5 woodmart-cart-alt wd-tools-element<?php echo esc_attr( $classes ); ?>" title="<?php echo esc_attr__( 'My cart', 'woodmart' ); ?>">
                <a href="<?php echo esc_url( wc_get_cart_url() ); ?>">
                    <span class="woodmart-cart-icon wd-tools-element">
                        <?php woodmart_cart_count(); ?>
                    </span>
                    <span class="woodmart-toolbar-label">
                        <?php esc_html_e( 'Cart', 'woodmart' ); ?>
                    </span>
                </a>
            </div>
            <?php
        }

    As for the my account link, we tested both on android and ios and see that the link is there.

    Regards

    #145376

    rahmankhah
    Participant

    Thanks for the solution on cart icon. It’s working now.
    However, the login menu still not showing on ios for me.

    #145456

    Artem Temos
    Keymaster

    Try to add the following code snippet to the Custom CSS area in Theme Settings.

    .browser-Safari .menu-item-register {
        visibility: visible; }
    
    .browser-Safari .menu-item-register.sub-menu-dropdown {
        visibility: hidden; }

    This issue will also be fixed in the next theme update.

    Regards

    #145810

    rahmankhah
    Participant

    That’s helped.
    Many thanks.

    #145833

    Artem Temos
    Keymaster

    You are welcome.

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Cart badge after update’ is closed to new replies.