Skip to content

Issue #2689911 by andypost: Use a lazy builder in the AddToCartFormatter#358

Closed
andypost wants to merge 3 commits intodrupalcommerce:8.x-2.xfrom
andypost:2689911-lazy-cart-formatter
Closed

Issue #2689911 by andypost: Use a lazy builder in the AddToCartFormatter#358
andypost wants to merge 3 commits intodrupalcommerce:8.x-2.xfrom
andypost:2689911-lazy-cart-formatter

Conversation

@andypost
Copy link
Copy Markdown

That's it

@andypost
Copy link
Copy Markdown
Author

@andypost andypost force-pushed the 2689911-lazy-cart-formatter branch from 4bb8dd1 to 5551fe6 Compare March 20, 2016 03:21
@bojanz
Copy link
Copy Markdown
Contributor

bojanz commented Mar 20, 2016

This looks good. However, commerce_cart shouldn't be aware of commerce_product, only the opposite. Since the code in CartLazyBuilders is product specific, it makes more sense for it to live in commerce_product as ProductLazyBuilders (this also allows you to remove the $product_type_id parameter, which is misnamed since it actually gives you the entity type id -> 'commerce_product')

@andypost
Copy link
Copy Markdown
Author

Thanx for pointer, I got missed the point of mapping, will update latter

@andypost
Copy link
Copy Markdown
Author

Looks ready, should I add a patch to d.o issue or how to proceed?

@andypost andypost closed this Mar 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants