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

I have those properties in tax and shipment, any other ideas?

2Β»

Comments

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    I searched for item initially in the first place

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    I do not have any <property name="amount" without the type in

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    and definetly no item.xml

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    I don't get it, the only place where that shows up is vendor/spryker/shipment/tests/_data/shipment_method.databuilder.xml

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet
    <property name="amount" dataBuilderRule="randomNumber(1)" />
    
  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    yes, the property β€œamount” most likely is defined in another Spryker module, that you either don’t have or it’s not up-to-date. This issue is known in Spryker already and will be fixed. For now you can just define it, as I mentioned above - and this will fix the issue. Do you know how to expand transfer objects?

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    found it, it's not in /src, but ion one of the packages 😞

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    this mofo vendor/spryker/shipment/src/Spryker/Shared/Shipment/Transfer/shipment.transfer.xml needs the <property name="amount" type="int" /> into the <transfer name="Item">

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    @UK7TM6CQJ there is no defined place for <transfer name="Item">. Every separate module can extend/re-define it

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    if you search for <transfer name="Item"> in your project (including vendor/spryker) you’ll find lots of places.

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    we do not have that on project level, but anyway

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    do you have <transfer name="Item"> in your src dir?

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    nope

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    realised it's the shipment one from the error

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    alright! Then just add one