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

Render variant shipping category #5882

Conversation

nvandoorn
Copy link
Contributor

@nvandoorn nvandoorn commented Oct 23, 2024

Summary

If a variant does not have a shipping category defined, the form will render with the shipping category from the associated product. If you submit the form, the variant will now have the same shipping category as associated the product.

We fix this by always rendering the form with the shipping category associated with the variant.

Fixes #5675.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

@nvandoorn nvandoorn requested a review from a team as a code owner October 23, 2024 20:43
@github-actions github-actions bot added the changelog:solidus_backend Changes to the solidus_backend gem label Oct 23, 2024
Copy link
Contributor

@MadelineCollier MadelineCollier left a comment

Choose a reason for hiding this comment

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

Looks like a solid change! If you rebase off main your failing specs should re-run without issue now that #5886 is merged :)

@nvandoorn nvandoorn force-pushed the 5675-show-variant-shipping-category-id branch from 74c1a5d to 032c06b Compare October 28, 2024 20:39
@nvandoorn
Copy link
Contributor Author

Thanks @MadelineCollier hope you are well. I've pushed a new revision that's been rebased onto main, however I believe this is still blocked by the "Solidus Installer" step. I've addressed this in another pull request #5884

If a variant does not have a shipping category defined, the form will
render with the shipping category from the associated product. If you
submit the form, the variant will now have the same shipping category as
associated the product.

We fix this by always rendering the form with the shipping category
associated with the variant.

Co-authored-by: An Stewart <[email protected]>
@nvandoorn nvandoorn force-pushed the 5675-show-variant-shipping-category-id branch from 032c06b to b2ed4fa Compare October 29, 2024 21:34
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Nice. Thanks

@MadelineCollier MadelineCollier merged commit b099358 into solidusio:main Oct 30, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_backend Changes to the solidus_backend gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nil variant shipping category not handled properly in form
3 participants