Describe your bug or feature request.

loadEnabled does not return the variations if the default translation is unpublished. This happens because the access check in loadEnabled() is checking for the default translation variations instead of fetching the translated ones

If a bug, provide steps to reproduce it from a clean install.

  1. Add product and variation translations.
  2. Unpublish the default language product.
  3. Navigate to the translated product page while anonymous.
  4. The page will open but will not render the add to cart form.

CommentFileSizeAuthor
loadenabled-issue.png1.1 MBmhawwari

Issue fork commerce-3568932

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mhawwari created an issue. See original summary.

mhawwari’s picture

Assigned: mhawwari » Unassigned
Status: Active » Needs review
mhawwari’s picture

Title: loadEnabled does not return variations when default product is unpublished » loadEnabled() does not return variations when default product translation is unpublished