#388 Essential menu items.

Posted in ‘Technical Support / Bugs’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Adam Melcher on Friday, 18 July 2025 20:41 UTC

Antonio Cornacchia

Hello, I understand that some menu items are required for J2Commerce to function properly. Which ones exactly? Do they need to be top-level items in the main menu?

Best regards

Antonio Cornacchia

Can I change their alias (frontend url)?

Adam Melcher

Antonio,

It's been a while! Hope you are having a good summer.

That is a great question, and hopefully anybody else who reads this can learn from this as well :)


J2 URLs are handled in the same way as other Joomla menu links. Could the checkout and shopping cart technically run without a menu item? Yes - but you would have no control over the front-end URLs or customization in any way (ie, no core method to add a module to a page that doesn't have a menu item.)

With that said...

Depending on how you wish to set up your store, you should always have a menu item for the J2 category page (if using that) or the Joomla category page if using it as an article. You will have more control over the menu settings if using the J2 category (or tag) pages.

The Checkout and Shopping Cart pages should have menu items, as well as the My Profile page.

Where you place them is entirely up to you and will determine the final URL.

When I build my stores, I usually place all menu items in a hidden menu and only use an alias to point back to them - this way I can structure my links the way I want them to be without worrying how they will look in any menu structure. It also makes it easier to manage the store in the future, so you aren't jumping between 10 different menus trying to find the real menu item.

On this site, none of the menu items you see in any of the menus are the actual menu items themselves; rather, they are all menu aliases that point back to the one "holder of truth" (the hidden menu).

This is even more important when using page builders as they make it easy to design and display megamenus. Without having the menu items structured properly somewhere else, many sites find themselves with poor SEO and broken links since the "store" menu item wasn't included in the mega menu (and only the store's subcategory items were).

So... in short: 

Version 4.1 will actually have a checklist that will help create these menu links and disappear once you have them created - but in the meantime, you can place the menu items anywhere and call them whatever you wish. If you create a hidden menu and place the Checkout menu item in the hidden menu, because it is a top level menu item it would appear as https://website.com/checkout (if the menu alias for that item is checkout).

If you placed it as a sub-menu item under a products page menu item titled Shop (which I would not recommend) then the final URL would be https://website.com/shop/checkout

Hope this helps,

 

Adam

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Antonio Cornacchia

Thanks a lot.

Antonio Cornacchia

Adam, in my site if the cart is empty the main J2Commerce menu items (Cart/Checkout) forward both to the main shop category page. If the cart has products, they works fine:

Cart: https://www.squilibri.it/il-tuo-carrello
Checkout: https://www.squilibri.it/cassa
Main products category: https://www.squilibri.it/catalogo

System Task
System Task
The ticket information has been edited by Antonio Cornacchia (antonio.cornacchia@gmail.com).

Adam Melcher

These settings can be set in the configuration area of J2 (Cart tab -> Empty cart redirect URL field).

Adam

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Antonio Cornacchia

Thanks you.

Adam Melcher

My pleasure.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Stay Updated

Subscribe for free and be the first to know about the latest features, updates, and new additions.