Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Contributor responsivemenu

    (@responsivemenu)

    Hey Vitago,

    I expect this is due to the fact that I use a custom walker now for the menu.

    I will see if I can take a look at the walker class I created and see if there is anything missing in there.

    I will add it to the beta version and let you know so you can test it out.

    All the best

    Thread Starter Wp-user865966

    (@vitago)

    Hello again,

    Thanks for an incredible fast answer.
    But yes, please let me know when you have a version I can test.

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Hi Vitago,

    I had a play with your script and my plugin quickly and I found it seemed to work if you change the bottom 3 lines from:

    echo $menu_item;
    $social = ob_get_clean();
    return $menu . $social;

    to:

    $social = ob_get_clean();
    return $menu_item . $menu . $social;

    Can you just check doing it that way quickly and let me know if it works.

    All the best

    Thread Starter Wp-user865966

    (@vitago)

    Just checked, and there is two issues:

    – The cart is now the first entry in the menu (Instead of the last)
    – It is unfortunately still not showing on the mobile menu.

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Hi Vitago,

    If you want it to be the last item then simply put the $menu_item variable after the $menu variable.

    Ive just tested it again and it works for me here. Can you provide a site URL for me to check?

    All the best

    Thread Starter Wp-user865966

    (@vitago)

    Hi again,

    Yeah, my bad. The positioning works.

    Here is a link to the site: https:// kiselgaarden .dk

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Hi Vitago,

    Can you explain exactly what it is you are expecting to see on that site and what you are not seeing as I can see some “cart-menu” links added to my plugin but Im not sure what I am specifically looking for.

    If you can give me step by step instructions it will help out massively.

    All the best

    Thread Starter Wp-user865966

    (@vitago)

    Hi again,

    Let me explain.

    On the PC menu (The normal menu, you see on laptops, pc) there is this link: “0 varer – DKK0,00”. This is the output of the code i pasted here: https://pastebin.com/8curwu9G
    This works as expected. See this screenshot: https://imgur.com/0bG7JWK

    The problem appears, as soon as I go to the mobile menu.
    Then the link “0 varer – DKK0,00” is gone.
    See this screenshot: https://imgur.com/FynNgDK
    As you can see, the “0 varer – DKK0,00” is missing.
    Note: There is a link called “Kurv”(Cart), which is a temporarily link i added myself.

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Hey vitago,

    Just to confirm you have updated the script to the one I said with the return statement and not the echo.

    I’m confused as it is working for me here. Can you try a simple version of the script to see if it works, for example:

    add_filter('wp_nav_menu_items','responsive_menu_test', 10, 2);
    
    function responsive_menu_test($menu, $args) {
      return 'before' . $menu . 'after';
    }

    That way I can tell if its something inside the actual script or my plugin on your site.

    All the best

    Thread Starter Wp-user865966

    (@vitago)

    Yes, the function is updted to use:

    $social = ob_get_clean();
    	return $menu . $menu_item . $social;

    The simple version you made, is working. You should be able to see it on the site.
    So it seems like it is something in the script, right?

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Hey Vitago,

    Yes but the script works on your normal menu so Im lost as to why its not working with that woocommerce script.

    I guess you could go through it line by line and see where it breaks, it maybe to do with the output buffering.

    The only other thing I can think of is to change the priority number of the function, try updating the number 100 to 1000 or higher.

    Its a long shot but its all I can think of at this moment.

    Thread Starter Wp-user865966

    (@vitago)

    Hi again,

    Thanks for all the help ??

    I’ll try going through the script, to see if I can find the error.

    Again, thank you so much for your help. Really nice to see developers trying to help out!

    Great plugin and 5 star support ??

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Hey Vitago,

    Thanks for the kind words – let me know how you get on and if you need any further guidance with it!

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Hey Vitago,

    Did you get anywhere with this?

    Thread Starter Wp-user865966

    (@vitago)

    Hi again!

    Nope, tried searching and searching, tried making a few more simple menu items, they worked great. Couldn’t find the issue with the particular script I used.

    So what did I do? Made a plain old simple cart menu ??

    I would like to say thank you for all the help/support. Tbh I don’t think it’s your plugin that’s the issue, but rather the script itself.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Woocoomerce cart not working with this plugin’ is closed to new replies.