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

which feature in Spryker expands the sales order items so that there is one per unit? e.g. 5x SKU-12

UKGT7RC7P
UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

which feature in Spryker expands the sales order items so that there is one per unit? e.g. 5x SKU-1234 becomes 5 items in the sales order, not 1 item with quantity 5

Comments

  • It’s SalesQuantity module

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    thanks πŸ™‚

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited May 2020

    if our line items were being exploded into indivual units, but the sum price (i.e. product price X 4) was being persisted in each exploded sales order item

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    would that signify anything to you?

  • Helen Laktionova
    Helen Laktionova Sprykee Posts: 33 πŸ§‘πŸ»β€πŸš€ - Cadet

    I believe that if you are importing orders - you need to merge (nonslit) items via the import process

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    no, this happens on checkout?

  • Helen Laktionova
    Helen Laktionova Sprykee Posts: 33 πŸ§‘πŸ»β€πŸš€ - Cadet

    In this case I am not sure that I can understand your question πŸ™‚

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    when the order is placed, the quote transfer is converted to a sales order

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    at which point the items are (in our configuration at least) exploded into individual sales items based on their quantity

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    but the price of each sales item is set to the sum of the total (e.g. 5) instead of for 1

  • Helen Laktionova
    Helen Laktionova Sprykee Posts: 33 πŸ§‘πŸ»β€πŸš€ - Cadet

    Price for split and non split items will be calculated accordingly

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    hm, i'm sure the problem is with our config somewhere

  • Helen Laktionova
    Helen Laktionova Sprykee Posts: 33 πŸ§‘πŸ»β€πŸš€ - Cadet

    Please check price calculation plugins on project level.

  • Helen Laktionova
    Helen Laktionova Sprykee Posts: 33 πŸ§‘πŸ»β€πŸš€ - Cadet

    Or just debug πŸ™‚

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    yep, setting up a test ...

  • UL93DTXT2
    UL93DTXT2 Posts: 4 πŸ§‘πŸ»β€πŸš€ - Cadet
    SalesOrderExpanderPlugin
    

    in CheckoutDepenpendencyProvider getCheckoutPreSaveHooks() ?

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    no, nothing.

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    it might even be Spryker default behavior?

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    in SalesOrderSaver:

            $itemTransfer->setSumGrossPrice($itemTransfer->getSumGrossPrice() ?? $itemTransfer->getUnitGrossPrice());
    
  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    where UnitGrossPrice is the one we want

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    but it says its deprecated

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited May 2020

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    is what it looks like currently

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    our fix was to override the order saver, but it seems there must be another way

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    anyway home time πŸ™‚

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    thanks for the suggestions

  • UL93DTXT2
    UL93DTXT2 Posts: 4 πŸ§‘πŸ»β€πŸš€ - Cadet

    hmmm, no idea, have a good WE and good luck!