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?

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

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

Β«1

Comments

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

    which versions of tax and shipment do you have?

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

    spryker/tax 5.8.4 Tax module

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

    spryker/shipment 7.0.0 Shipment module

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

    looks good, please confirm that you:
    1. did generated transfer objects and
    2. have requestedDeliveryDateproperty defined for your ShipmentTransfer
    ?

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

    I generated

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

    and I have that

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

    so in the getGeneratorRules, DataBuilderDefinition

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

    it fails for this definition, which I am not sure which transfer it is

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

    leads? we just launched today internally and we have this zed twig errors everywhere

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

    we need to be able to change stuff in zed interface and this prevents us from it

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

    you might have an issue with another property. I can help you to figure out which one. Do you have xDebug working for your project?

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

    lmc

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited September 2019

    I would suggest to put a β€œconditional” breakpoint in PHPStorm, DataBuilderDefinition.php (65) and find out what exactly is missing. I can show how

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

    getting xdebug to run, but the error says Undefined index: type, so type must be missing

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

    the reason for this error is: one property is defined in databuilder.xml but not defined in transfer.xml

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited September 2019

    you just need to find out which property of what transfer is missing and add it as a quick fix

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

    ok, my xdebug does not work atm

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

    the definition O previously posted does not help?

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

    It doesn’t help me to understand what’s missing, yes.

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

    the best would be to configure xdebug and figure out what’s missing

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited September 2019

    you can try to debug it by printing out the info and β€œdie/exit” if the β€œtype” is not defined in the array, but configuring xdebug is for sure a good time investment

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited September 2019
    array(3) {
      'name' =>
      string(6) "amount"
      'dataBuilderRule' =>
      string(15) "randomNumber(1)"
      'bundles' =>
      array(1) {
        [0] =>
        string(30) "ShipmentMethod.databuilder.xml"
      }
    }
    
  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    does this mean it's ShipmentMethod?

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

    @UK7TM6CQJ, exactly, looks like it is! ShipmentMethod.amount

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

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

    I see that for the transfer name β€œItem”

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited September 2019

    can you find <property name="amount" within the transfer object definitions in your project (for the Item transfer)?

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

    The quick solution in your case, would be to define that property
    <property name="amount" type="int" />
    for the transfer called Item somewhere on the project level. And try generation again