Enable Mobile Bottom Panel on Cart Page - by Benz

Solved4 replies2 participantsUpdated by Benz

XStore documentationXStore mobile panel (bottom bar on phones)
  • Avatar: Benz
    Benz
    Participant

    Dear XStore Support Team,

    I’ve noticed that the mobile bottom panel (et-mobile-panel-wrapper) is hidden by default on both the cart and checkout pages in the XStore theme.

    However, I would like the mobile panel to appear on the cart page only, while keeping it hidden on the checkout page.

    Could you please advise the best way to enable the mobile panel on the cart page? I’m happy to apply a code snippet or use a child theme override if needed.

    Thank you in advance for your support!

    Best regards,

    4 Answers

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Benz
    Please, check next reply -> https://www.8theme.com/topic/the-mobile-panel-sometimes-disappear-when-i-move-to-another-page/#post-442103.
    Kind regards, Jack Richardson
    The 8theme’s team

    Avatar: Benz
    Benz
    Participant

    Thank you very much for your prompt reply.

    The following code will display only cart page. is this correct?

    add_action( 'init', function () {
        if ( apply_filters( 'xstore_theme_amp', false ) ) {
            return;
        }
    
        add_action( 'after_page_wrapper', function() {
            if (
                defined('ET_CORE_DIR') &&
                get_query_var('et_is-cart-page-elementor-shortcode', false)
            ) {
                require( ET_CORE_DIR . 'app/models/customizer/templates/mobile-panel/mobile-panel.php' );
            }
        }, 1 );
    });

    please advise

    Avatar: Benz
    Benz
    Participant

    it works now . Thanks

    Avatar: Benz
    Benz
    Participant

    Thanks for the support! My topic “Enable Mobile Bottom Panel on Cart Page” has been successfully resolved.

The issue related to '‘Enable Mobile Bottom Panel on Cart Page’' has been successfully resolved, and the topic is now closed for further responses