Calling Developers!
We are reenergizing our code contribution process! Learn More

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..

Hello Community. A couple of questions about Carts. Some of our users are leaving carts open on our

Options
U01UHQGJDML
U01UHQGJDML Posts: 14 🧑🏻‍🚀 - Cadet
edited November 2021 in Help

Hello Community. A couple of questions about Carts. Some of our users are leaving carts open on our store and this is generating a good amount of product reserves on our availability making it impossible for other users to purchase that inventory. (Some carts sometimes may take a day or tow to be concluded)

  1. Is there a way we can setup a cart expiration time, in a configuration, in order for carts over that time to be deleted and reserves return to stock?
  2. Could we make carts do no generate that reserve into spryker availability , meaning only affecting availability at order purchase?

Comments

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet
    Options

    What you mean with let the carts open? If I remember correctly, items in the basket would not be reserved for customer. If customer makes the checkout and chose prepayment, the items will be reserved in the payment pending state by default. You could add a timeout or remove the reservation. this will be handled in the oms xml files under config/zed/oms/XXXXX,xml

  • UKEP86J66
    UKEP86J66 Posts: 208 🧑🏻‍🚀 - Cadet
    Options

    Yes that is my understanding too - there is no reservation in the cart context (customer context) but there is reservation on orders that have been placed (backoffice context)

  • UKEP86J66
    UKEP86J66 Posts: 208 🧑🏻‍🚀 - Cadet
    Options

    However I would be interested if Spryker has a cart reservation feature that I am not aware of 💡

  • U02K6JVF26M
    U02K6JVF26M Posts: 24 🧑🏻‍🚀 - Cadet
    Options

    hi i found that there is already CronJob exists which clears the guest cart after certain time through cronjob /spryker-b2c/config/Zed/cronjobs/jenkins.php $jobs[] = [
    'name' => 'clean-expired-guest-cart',
    'command' => '$PHP_BIN vendor/bin/console quote:delete-expired-guest-quotes',
    'schedule' => '30 1 * * *',
    'enable' => true,
    'stores' => $allStores,
    ];

  • U02K6JVF26M
    U02K6JVF26M Posts: 24 🧑🏻‍🚀 - Cadet
    Options

    you can clone this for all users binding condition on the timebase to clear out the cart after some hour as per your need