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

Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

๐Ÿ‘‹ bundles - should the stock be updated for bundles? or do we use only spy_availbailtiy for this?

Welcome!

It looks like you're new here. Sign in or register to get started.
ยซ1

Comments

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    reason being, that the checkout pre-condition for Availbility uses spy_stock - oms_reservation, not availability

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    so the Zed\Availability pre-condition doesn't use spy_availabilility ๐Ÿค”

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    edited June 2020

    and in our setup the bundle stock is always 0 (because it's a meta product)

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    so we can't checkout bundles

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    looks like we changed the business logic, previously the bundles wouldn't be part of the order

  • Lead Product Manager Posts: 130 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    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)

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    yes, it's just that we modified the logic it seems

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    so we can probably write a new checkout pre-condition that checks availability directly

  • Lead Product Manager Posts: 130 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    I guess yes

  • Lead Product Manager Posts: 130 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    what is the difference between the previous and new logic?

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    edited June 2020

    previously the bundle gets converted / splt into it's components at checkout (i think)

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    so only components (bundled products) would have the pre-condition check

  • Lead Product Manager Posts: 130 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    ok

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    now we want to checkout the bundle itself

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    edited June 2020

    which has stock = 0, and not split the order

  • Lead Product Manager Posts: 130 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    so it means removing your old logic and let the OOTB Spryker logic take over

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    really?

  • Lead Product Manager Posts: 130 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    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 behavior

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    edited June 2020
  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    (i'm jumping in on this quite late, so not sure what the original behavior may have been)

  • Lead Product Manager Posts: 130 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    so what exactly is your pre-condition is doing currently? Just exploding the bundle into as many cart item as bundled products?

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    edited June 2020

    the pre condition is validating that the bundle is "available"

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    where as previously it would have only checked each of the bundled products

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    i think my question would be: should bundles have stock of 0?

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    edited June 2020

    (bundle availability is updated in our system, but not stock)

  • Lead Product Manager Posts: 130 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    If you use Spryker Bundles, stock at the product concrete level is useless

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    yes indeed.

  • Lead Product Manager Posts: 130 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    the stock is build dynamically by the bundled products, same as the availability

  • Posts: 538 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    yep

Welcome!

It looks like you're new here. Sign in or register to get started.