What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
π bundles - should the _stock_ be updated for bundles? or do we use only `spy_availbailtiy` for
Comments
-
reason being, that the checkout pre-condition for Availbility uses
spy_stock - oms_reservation
, not availability0 -
so the Zed\Availability pre-condition doesn't use spy_availabilility π€
0 -
and in our setup the bundle stock is always 0 (because it's a meta product)
0 -
so we can't checkout bundles
0 -
looks like we changed the business logic, previously the bundles wouldn't be part of the order
0 -
A product bundle βAvailabilityβ is the result of the availability of the product inside of it (if you use the Spryker way for the bundles)
0 -
yes, it's just that we modified the logic it seems
0 -
so we can probably write a new checkout pre-condition that checks availability directly
0 -
I guess yes
0 -
what is the difference between the previous and new logic?
0 -
previously the bundle gets converted / splt into it's components at checkout (i think)
0 -
so only components (bundled products) would have the pre-condition check
0 -
ok
0 -
now we want to checkout the bundle itself
0 -
which has stock = 0, and not split the order
0 -
so it means removing your old logic and let the OOTB Spryker logic take over
0 -
really?
0 -
From what you wrote, to me will normally work except if the checkout process has been changed on other steps on your side.
You can check with a fresh install of b2c or b2b demo shop the behavior0 -
i think Spryker will checkout the bundled items by default no? https://documentation.spryker.com/docs/product-bundle#persisting-when-placing-order--end-of-checkout
0 -
(i'm jumping in on this quite late, so not sure what the original behavior may have been)
0 -
so what exactly is your pre-condition is doing currently? Just exploding the bundle into as many cart item as bundled products?
0 -
the pre condition is validating that the bundle is "available"
0 -
where as previously it would have only checked each of the bundled products
0 -
i think my question would be: should bundles have stock of 0?
0 -
the docs seem to say no: https://documentation.spryker.com/docs/product-bundle#stock-calculation
0 -
(bundle availability is updated in our system, but not stock)
0 -
If you use Spryker Bundles, stock at the product concrete level is useless
0 -
yes indeed.
0 -
the stock is build dynamically by the bundled products, same as the availability
0 -
yep
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random