[django-oscar] How to attach addons product to a product

2017-10-04 Thread moemen Abd ElKader
Hello, I'm a new with django-oscar. And I was trying to implement a feature for a project I'm working on. I read documentation and explored the source code a little, but I'm still wondering if django-oscar have a shortcut to help me with that. I want to add link products to a main product, so

Re: [django-oscar] How to attach addons product to a product

2017-10-04 Thread Ryan Harrigan
Hello Moemen, I am new to django-oscar as well. I think linked products can be implemented using the 'parent' property in the AbstractProduct class. Every product should have the 'parent' property because it is set in AbstractProduct. http://django-oscar.readthedocs.io/en/releases-1.5/topics/model

Re: [django-oscar] How to attach addons product to a product

2017-10-04 Thread Ryan Harrigan
I apologize. I was mistaken with the syntax of Selector. Use the code below and modify the necessary methods in the Structured class. Once again, if I am mistaken, please let me know class Selector(object): def strategy(self, request=None, user=None, **kwargs): """ Return an

Re: [django-oscar] How to attach addons product to a product

2017-10-05 Thread moemen Abd ElKader
Hello Ryan, Thank you for your response. But what I understand is that parent/children relationship is for variants. So, phones for example, variants would be the different colors and memory size. But what I have here is different product. Beside that for example, chargers can be attached to mul

Re: [django-oscar] How to attach addons product to a product

2017-10-06 Thread Ryan Harrigan
In that case, I suggest that you make a customized Category hierarchy (AbstractCategory) and use a specialized ProductCategory (AbstractProductCategory) to associate specific business logic between particular Products and Categories. On Thu, Oct 5, 2017 at 5:40 AM, moemen Abd ElKader wrote: >