Skip to content

Comments

[storefront] feature: custom pricing for saleable item attributes#30

Merged
metalalive merged 3 commits intomasterfrom
storefront-dev/product-attribute-pricing
Feb 4, 2025
Merged

[storefront] feature: custom pricing for saleable item attributes#30
metalalive merged 3 commits intomasterfrom
storefront-dev/product-attribute-pricing

Conversation

@metalalive
Copy link
Owner

refactor: remove needless product type

  • from now on, there is only one product, saleable item, no package exists
  • remove product-type field from web endpoint and model schema
  • for price adjustment between different combination of saleable items, consider coupon feature (TODO)

- from now on, there is only one product, saleable item, no package
  exists
- remove product-type field from web endpoint and model schema
- for price adjustment between different combination of saleable items,
  consider coupon feature (TODO)

Signed-off-by: T.H. <7197142+metalalive@users.noreply.github.com>
@metalalive metalalive self-assigned this Jan 25, 2025
- new columns for mapping specific attribute value to extra change amount
  to `StoreProductAvailable`
- TODO, refactor model `StoreProductAvailable`, provide translation functions
  between the model and `EditProductReqBody`
- note SQLAlchemy checks row count affected by default for update
  statement, and database backend may skip the update if it finds the updating
  row is as the same as the persisted row, this happenes to mariaDB in case
  of string columns like `VARCHAR` or `LONGTEXT`, such mechanism may cause
  row count mismatch between actual updated rows and expected-to-update rows.
- the new content to update is checked in app sevrer before constructing
  update statement , in order to avoid the issue above

Signed-off-by: T.H. <7197142+metalalive@users.noreply.github.com>
Signed-off-by: T.H. <7197142+metalalive@users.noreply.github.com>
@metalalive metalalive merged commit 741abef into master Feb 4, 2025
2 checks passed
metalalive added a commit that referenced this pull request Feb 11, 2025
- remove them at model, usecase, adapter layers
- this project no longer supports product type , see relevant change in [PR31](#31) and [PR30](#30)
agiledev624 added a commit to agiledev624/ecommerce-backend that referenced this pull request Jul 17, 2025
- remove them at model, usecase, adapter layers
- this project no longer supports product type , see relevant change in [PR31](metalalive/e_commerce#31) and [PR30](metalalive/e_commerce#30)
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.

1 participant