Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The child node "product_family_provider" at path "leaphly_cart" must be configured. #7

Open
ftassi opened this issue Nov 9, 2013 · 10 comments

Comments

@ftassi
Copy link

ftassi commented Nov 9, 2013

What about the product_family_provider? I can't find any ref about it in the documentation, Am I missing something?

@liuggio
Copy link
Member

liuggio commented Nov 9, 2013

Hi Francesco,
yes we have to improve doc :)
the objective of family_provider is to provide the family of a product, so given a request it could identify the kind of the product, and then retrieve the correct handler.

For example in the sandbox is used here: https://github.com/leaphly/leaphly-sandbox/blob/master/src/Acme/CartBundle/Resources/config/mongodb.xml#L19

The family provider must extend this interface https://github.com/leaphly/CartBundle/blob/master/Provider/ProductFamilyProviderInterface.php

and a simple one is here: https://github.com/leaphly/CartBundle/blob/master/Provider/ClassNameProductFamilyProvider.php

What it does:
Image you are using doctrine with inheritance, so given a product id you could have different classes so
it looks for the product id, than it does a query, and return the class name, this class name will be used as context for the strategy and get the proper handler.

eg:
request: { product_id: 20}
the ClassNameProductFamilyProvider->getProductFamily(request)
$context = ClassName(query->get(request->product_id))

Is it make sense to you?

@atheleron
Copy link

hi i know this is kind of old but I'm stuck on product_family_provider to!! and do I relay need it because i have categories for products i don't need types!! I moved from sylius cart because it lacks of documentation in hope i will find simpler cart system can u please provide me good documentation so I can enable Leaphly Cart Bundle

@liuggio
Copy link
Member

liuggio commented Mar 25, 2014

@atheleron I'm really sorry for this trouble this bundle is under heavy dev.
and is not stable version.

@benjivds
Copy link

Hi how can i remove the product_family_provider or remove the error? I need to know i think it's blocking a lot of ppl

Greetings

@benjivds
Copy link

Thank you @liuggio working now

@piux
Copy link

piux commented Sep 6, 2014

hi @liuggio the links are 404, i have this error.

@piux
Copy link

piux commented Sep 7, 2014

i found the classprovider, but how can i extend them? where do i get documentation

@liuggio
Copy link
Member

liuggio commented Sep 7, 2014

Note:
thanks for using this bundle the don't use it in production is not stable
and slowly mantained.

On Sun, Sep 7, 2014 at 2:43 AM, piux [email protected] wrote:

i found the classprovider, but how can i extend them? where do i get
documentation


Reply to this email directly or view it on GitHub
#7 (comment).

liuggio_______________

/|_ We reject kings, presidents and voting.
/o ) / We believe in rough consensus
)
v _/\ and running code (I.E.T.F. credo)


@Youngrafael95
Copy link

Matthers of the mind people treat me like I'm def dumb and blind this life is hard to devine .. rolling with github because we ahead of our time ..catch us on the grind ... Never shameful always Shine... Focusing on our state of mind

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

No branches or pull requests

6 participants