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'm looking at generated order transfer and many (if not all) methods related to shipment are marked
I'm looking at generated order transfer and many (if not all) methods related to shipment are marked as deprecated, what should I use instead?
Comments
-
giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐ง๐ปโ๐ - Cadet
Shipment is now MultiShipment and u have to use shipment at item level...
in QuoteTranfer i mean.. in OrderTransfer maybe is the same. just check it
0 -
cool
0 -
followup question
0 -
does spryker plan to add some kind of shipmentaggregatorinterface now?
0 -
giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐ง๐ปโ๐ - Cadet
what do u mean precisely?
Spryker already has a service to identify unique shipment delivery etc... what is your goal?0 -
what service do you mean exactly?
0 -
my goal is to get shipment carrier, method, etc for order, preferably once if all items are sent in the same package
0 -
giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐ง๐ปโ๐ - Cadet
ok.. understand..
\Spryker\Zed\Shipment\Business\ShipmentFacadeInterface::hydrateOrderShipment
maybe do just what u need.. and the the rest u have to write your business logic in OMS State Machine to read the shipment informations and maybe trigger some notification or what else u need at this point..0 -
well, it seems like hydrator uses addShipmentMethod when order is not multishipment, which is marked as deprecated, which takes this back to first question, is there a replacement for deprecated order transfer methods related to shipment?
0 -
giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐ง๐ปโ๐ - Cadet
This service take care if order is a multiShipmentOrder or not.. in the case is no multishipmentorder then the shipment info will be also set at order level (deprecated method) and for it there is no replacement and i think will be so for long time... (about me)...
but u can also ignore it, becasue the Shipment will be also set for each item transfer and u can work only with them...
0 -
yeah, I will probably just take shipment from first order item
0 -
giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐ง๐ปโ๐ - Cadet
yain.. there is method in spryker that give u the shipment back according if all items have the same shipment or not... i would not just read from first items.. what is if in the future do u have multi shipment? then your business logic failed.
0 -
what method do you mean?
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K ๐ Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random