How could be possible to integrate the basket information on the uber menu ? i leave the url and i have not found how could be done thanks
Hello @Borislav.VD,
Thanks for writing in!
All things you’ve stated can be done with only Ubermenu.
For products on mega submenu, you can do this by adding Woocommerce product shortcodes that suits your needs in UberMenu custom content text area. Here are some resources to help you get started.
For the dedicated page, you can target specific pages using UberMenu’s Menu Swapper. See resource below:
Do you mean deleting each menu item on shop page?
No need to delete anything. I suggest you create a new shop page menu and make the current one on the screenshot image as guide list for creating the new menu.
Hope this helps.
Yes but the key question is how could be possible to make work properly the woocommerce widget that appears with 0.00euros / 0 items. in fact this widget is completely different respect all the demos . How could be possible to make it work properly. Which is the shortcode that appears in the menu right now ? thanks
Hi Borislav.VD,
You can do that in X theme. First, you will have to create a new menu in WordPress with the menu items you would like to have on the Shop page. Let’s assume this menu has the name “Custom Menu”, then you will have to assign this menu as “One Page Navigation” option for your Shop page as in this screenshot:
Finally, please add this snippet to functions.php file in your child theme directory:
function x_woocommerce_navbar_menu_item( $items, $args ) {
if ( X_WOOCOMMERCE_IS_ACTIVE && x_get_option( 'x_woocommerce_header_menu_enable' ) == '1' ) {
if ( $args->menu == 'Custom Menu' ) {
$items .= '<li class="menu-item current-menu-parent x-menu-item x-menu-item-woocommerce">'
. '<a href="' . x_get_cart_link() . '" class="x-btn-navbar-woocommerce">'
. x_woocommerce_navbar_cart()
. '</a>'
. '</li>';
}
}
return $items;
}
add_filter( 'wp_nav_menu_items', 'x_woocommerce_navbar_menu_item', 9999, 2 );
Now, the “Cart” menu item will only appear on Custom Menu which is only assigned to Shop page on your website.
Thanks.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.