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

Added unavailable message to prevent over-checkout of Accessories #12787

Merged
merged 3 commits into from
Apr 6, 2023

Conversation

Godmartinz
Copy link
Collaborator

Description

It seems it was possible to checkout if available quantity for an accessory was 0 or below. This applies a redirect and an unavailable message
image

This fixes Accessories, I will be checking other categories and pushing accordingly.

Fixes #12778

Type of change

Please delete options that are not relevant.

  • [ x] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • PHP version:
  • MySQL version
  • Webserver version
  • OS version

Checklist:

@what-the-diff
Copy link

what-the-diff bot commented Apr 5, 2023

PR Summary

  • Added a new message to the language file
    A new message has been incorporated into the language file to enhance user experience.
  • Checked accessory availability before checkout
    The system now verifies if an accessory is available for checkout before processing the transaction, improving overall user experience and inventory management.

@Godmartinz Godmartinz changed the title adds unavailable message to overcheckout adds unavailable message to prevent over-checkout Apr 5, 2023
@Godmartinz Godmartinz changed the title adds unavailable message to prevent over-checkout adds unavailable message to prevent over-checkout of Accessories Apr 5, 2023
@snipe snipe changed the title adds unavailable message to prevent over-checkout of Accessories Added unavailable message to prevent over-checkout of Accessories Apr 6, 2023
@snipe snipe merged commit 383d48f into snipe:develop Apr 6, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create elements even if no stock
2 participants