Skip to content

Conversation

@gibkigonzo
Copy link
Contributor

Related Issues

closes #4359

Short Description and Why It's Useful

Screenshots of Visual Changes before/after (if There Are Any)

Which Environment This Relates To

Check your case. In case of any doubts please read about Release Cycle

  • Test version (https://test.storefrontcloud.io) - this is a new feature or improvement for Vue Storefront. I've created branch from develop branch and want to merge it back to develop
  • RC version (https://next.storefrontcloud.io) - this is a stabilisation fix for Release Candidate of Vue Storefront. I've created branch from release branch and want to merge it back to release
  • Stable version (https://demo.storefrontcloud.io) - this is an important fix for current stable version. I've created branch from hotfix or master branch and want to merge it back to hotfix

Upgrade Notes and Changelog

  • No upgrade steps required (100% backward compatibility and no breaking changes)
  • I've updated the Upgrade notes and Changelog on how to port existing Vue Storefront sites with this new feature

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change

Contribution and Currently Important Rules Acceptance

@vercel
Copy link

vercel bot commented May 20, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/shopware-pwa/vue-storefront/n3wf1qbo7
✅ Preview: https://vue-storefront-git-fork-gibkigonzo-bugfix-4359.shopware-pwa.now.sh

@vercel vercel bot temporarily deployed to preview May 20, 2020 07:21 Inactive
@gibkigonzo gibkigonzo linked an issue May 20, 2020 that may be closed by this pull request
5 tasks
@vercel vercel bot temporarily deployed to preview May 20, 2020 08:29 Inactive
@vercel vercel bot temporarily deployed to preview May 20, 2020 08:33 Inactive
@vercel vercel bot temporarily deployed to preview May 20, 2020 08:39 Inactive
checkParentRedirection(product, parentProduct)
} else {
throw new Error(`Product query returned empty result product visibility = ${product.visibility}`)
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The redirect itself seems to work fine. However, I'm thinking whether it would be good to decouple this setting from the visibility configuration.

Having them uncoupled would allow showing a child product on category page, but the link would take you to the parent product.

But this is just my thought. I'm not sure how may shops would actually find this useful.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This action is called only on PDP. So with that you can still show simple product on category page and after going on PDP you will be redirected.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also coupled it with visibility because we should check this only when its needed. Right now we are making request for every simple product. With this change it will be done only when you want to get on PDP where simple product shouldn't be visible

@gibkigonzo gibkigonzo requested a review from mdanilowicz May 21, 2020 11:04
@vercel vercel bot temporarily deployed to preview May 21, 2020 11:43 Inactive
@gibkigonzo gibkigonzo merged commit f6956b7 into vuestorefront:hotfix/v1.11.4 May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redirect from child product to configurable parent is broken

3 participants