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

[FEATURE] JS changes available BE variant stock #488

Merged
merged 1 commit into from
May 30, 2024

Conversation

rintisch
Copy link
Collaborator

@rintisch rintisch commented May 3, 2024

With activated stock handling for BE variants
the JavaScript which changes the prices does
also change change the available stock.

Requirements:

  • This requires that the select view contains
    a data atrribute 'data-available-stock' with
    the stock for the BE variant.
  • Furthermore some HTML has to be present which will be used to insert the available stock.

Both changes will be made in a commit in
EXT:cart_products.

!!!
This commit changes also the buggy behaviour that
reselecting "Please choose..." from the select
field shows the price of the last chosen item.
Instead a   will be inserted (to display
no price while avoiding 'jumping' layout.

Fixes: #487

With activated stock handling for BE variants
the JavaScript which changes the prices does
also change change the available stock.

Requirements:
-This requires that the select view contains
a data atrribute 'data-available-stock' with
the stock for the BE variant.
- Furthermore some HTML has to be present which
will be used to insert the available stock.

Both changes will be made in a commit in
EXT:cart_products.

!!!
This commit changes also the buggy behaviour that
reselecting "Please choose..." from the select
field shows the price of the last chosen item.
Instead a ` ` will be inserted (to display
no price while avoiding 'jumping' layout.

Fixes: extcode#487
@rintisch rintisch force-pushed the task/show-stock-of-be-variants branch from 21cda83 to 76fa5e0 Compare May 26, 2024 11:58
@extcode extcode merged commit 1073110 into extcode:main May 30, 2024
9 checks passed
@rintisch rintisch deleted the task/show-stock-of-be-variants branch June 11, 2024 05:36
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.

[FEATURE] Extend JS for BE variants to change available stock
2 participants