magento / community-features

Magento Features Development is an Initiative to Allows Community Memebers Join to Development of Magento Features
46 stars 18 forks source link

Extending quote item with extension attributes - problem with load/save of attributes #152

Open bartoszkubicki opened 5 years ago

bartoszkubicki commented 5 years ago

Summary (*)

Recently, I was trying to extend quote item with extension attributes. I needed it inside cart and checkout. So there are actually two ways for loading and persisting extension attributes along extended model.

Finally, to perform crud operations on cart and checkout, with main logic in subtotals I ended up with plugins for three classes and override 5 methods - quote items are not loaded in any consistent way.

Examples (*)

Hard to provide - generally module doesn't seem to follow general guidelines from Magento.

Proposed solution

Clean up crud operations for quote and quote item, so service contract are used more widely on frontend, so we are not relying on implementations, but on contracts.

bartoszkubicki commented 5 years ago

Move from here

BogdanA-Rezolve commented 1 year ago

Still actual issue. Do we have any progress?