Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1234505

    Hello

    How can we delete the Woocommerce cart which is in the menu?
    The reason I want it deleted is that it stays in French when I select English; which returns me to the basket page in French.
    I am thinking of replacing it with a sub menu acert the “Cart” page which works very well.

    thank you in advance

    #1235204

    Hey,

    Please add following code to bottom of Functions.php file of your child theme in Appearance > Editor

    add_action('init', 'ec_move_cart_dropdown', 5);
    function ec_move_cart_dropdown() {
    	remove_action( 'init', 'avia_woocommerce_cart_placement', 10);
    }

    Best regards,
    Yigit

    • This reply was modified 4 years, 4 months ago by Yigit. Reason: fixed function name
    #1235487

    Hi
    I have tried the code shown, it does not work.
    He moves the language flags up one line, but nothing has changed for the basket !!

    #1235502

    Hi,

    Could you please post a screenshot and show the changes you would like to make? You can upload your screenshots on imgur.com or Dropbox public folder and post the links here :)

    Code I posted above should have removed mini cart from header. I tested before posting but I might have misunderstood you request :)

    Best regards,
    Yigit

    #1235769

    Hello

    My site is currently in 2 languages ​​(French and English).
    Woocommerce works in French and English.
    The basket icon in the menu allows you to view the number of items there is in it and to display a mini cart with a mini list of items, their mini photos as well as 2 buttons “See the Cart” and ” Order”.
    In French, this mini cart is in French but when I am in English, it remains in French.
    Not knowing how to solve the language problem, the solution I found would be to remove the cart icon from the menu and add a cart item in the menu, with a “Cart” submenu with a link to the Cart page and another “Order” with a link to the Order page. It works very well in both languages. But you must remove the icon of the mini Cart by default in the menu.

    So there are 2 solutions
    1) Fix the mini basket translation problem
    or
    2) Remove the mini basket icon from the menu and replace it with a “Cart” menu item with “View Cart” and “Order” submenu.
    To remove the mini cart icon from the menu, the ideal would be to add the option “disable mini cart from the header” in the Enfold options of the store.

    Thank you in advance for your assistance

    #1236804

    Hi,

    Thank you for the info. Temporarily, you can add this snippet in the functions.php file to remove the mini cart icon from the header.

    remove_action( 'init', 'avia_woocommerce_cart_placement', 10);
    

    We’ll forward the request to our channel.

    Best regards,
    Ismael

    #1236914

    Hello
    The code works fine.
    The code provided by Yigit did not work because the called function did not match the existing function.
    Thank you for your help

    #1237085

    Hi Xorex_92,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

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