[Support request] Replace cart in nav bar

Home Forums Support [Support request] Replace cart in nav bar

Home Forums Support Replace cart in nav bar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #355371
    nictic

    I would like the cart to have a dropdown that displays the cart items and total etc so I was thinking of replacing the default with Menu Cart Pro. How would I go about replacing the GP cart with the Menu Cart shortcode [ wpmenucart ] or perhaps using the php shortcode <?php echo do_shortcode('[wpmenucart]'); ?> ?

    #355508
    Tom
    Lead Developer
    Lead Developer

    You could just turn off the GP cart item, then do this:

    add_action( 'generate_inside_navigation', 'tu_wpmenucart' );
    function tu_wpmenucart() {
        ?>
        <div class="menu-cart">
            <?php echo do_shortcode('[wpmenucart]'); ?>
        </div>
        <?php
    }
    #355546
    nictic

    There are some display issues, Would you be able to take a look please? Can I mail you the link?

    #355575
    Tom
    Lead Developer
    Lead Developer

    Sure, just mention this topic: https://generatepress.com/contact/

    #355578
    nictic

    Done, thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.