Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x]: Product tab not available in menu when not enabled for current site #3735

Closed
bartdigitalpulse opened this issue Oct 21, 2024 · 3 comments

Comments

@bartdigitalpulse
Copy link

What happened?

Description

I have a multisite setup. 2 sitegroups, one for a standard frontend site and another group for the shop. The first site group with the primary site doesn't have products enabled. Only the 3 sites in the shop sitegroup.

The products tab in the menu isn't visible. If I want to see the products tab I need to go to orders and switch the site to one of the shop sites. A bit cumbersome.

Attached screens.

Image
Image

Steps to reproduce

  1. Don't have products enabled for the primary site
  2. Current active site in the CP doesn't have products
  3. Product tab is not visible in the menu on the left

Expected behavior

Always show menu when for a least one site products are enabled

Actual behavior

Menu only visible when current CP site is one with products enabled

Craft CMS version

Craft Pro 5.4.8

Craft Commerce version

5.2.0

PHP version

8.2.22

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Copy link

linear bot commented Oct 21, 2024

@lukeholder lukeholder self-assigned this Oct 23, 2024
@lukeholder
Copy link
Member

@bartdigitalpulse , thanks for reporting. This has been fixed for the next release.

To get the fix early, change your craftcms/commerce requirement in composer.json to:

"require": {
  "craftcms/commerce": "5.x-dev#53d4a16be6580b889a1d9cc06055fe5aab009803 as 5.2.0",
  "...": "..."
}

Then run composer update.

We will update this ticket once the release is out.

@nfourtythree
Copy link
Contributor

Hi @bartdigitalpulse

Commerce 5.2.1 has now been released with this fix included.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants