Product Attribute Combination Filteration

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hello,

nopCommerce version: 3.50
Reference Link: http://halin24.bytearctic.com/french-view

I've created a product that you can view at above link. I created 2 product attributes under this product; Model and Color. I created all possible values under Model and Color. Then I created Product Attribute Combinations for model and colors but they are not filtering on the page. For example, Sky 890 is available in 3 colors. I want when Sky 890 is selected from Model dropdown, only its associated colors should be displayed. I wonder why this is not feature of nopCommerce although we've already made their combination.

I want to achieve this and need guidance. Please suggest where should I code for this?

Thanks.
7 years ago
mudasserhassan wrote:
Hello,

nopCommerce version: 3.50
Reference Link: http://halin24.bytearctic.com/french-view

I've created a product that you can view at above link. I created 2 product attributes under this product; Model and Color. I created all possible values under Model and Color. Then I created Product Attribute Combinations for model and colors but they are not filtering on the page. For example, Sky 890 is available in 3 colors. I want when Sky 890 is selected from Model dropdown, only its associated colors should be displayed. I wonder why this is not feature of nopCommerce although we've already made their combination.

I want to achieve this and need guidance. Please suggest where should I code for this?

Thanks.


I think this is not available out of box. You need to customize for it.
7 years ago
SuperNopCommerce wrote:
I think this is not available out of box. You need to customize for it.


Can you please guide me the exact area where I can code for it?

Thanks.
7 years ago
mudasserhassan wrote:
I think this is not available out of box. You need to customize for it.

Can you please guide me the exact area where I can code for it?

Thanks.


Please check below files:

/Presentation/Nop.Web/Controllers/ProductController.cs
/Presentation/Nop.Web/Views/Product/_ProductAttributes.cshtml
/Libraries/Nop.Services/Catalog/ProductAttributeService.cs


Hope this helps.
7 years ago
I've created a product that you can view at above link. I created 2 product attributes under this product; Model and Color. I created all possible values under Model and Color. Then I created Product Attribute Combinations for model and colors but they are not filtering on the page. For example, Sky 890 is available in 3 colors. I want when Sky 890 is selected from Model dropdown, only its associated colors should be displayed. I wonder why this is not feature of nopCommerce although we've already made their combination.

I want to achieve this and need guidance. Please suggest where should I code for this?

Thanks.
_________________________________________________________________________________________________________________
You can use the Condition on attribute into the product page
For example
1) On attribute add New record Color only with the values associated with Sky 890
2) in this Color dropdown set the condition .. Enable and choose the attribute  Model --Value Sky 890
3) You need to do the attributes combiantions (you did)
7 years ago
Marimar wrote:
You can use the Condition on attribute into the product page
For example
1) On attribute add New record Color only with the values associated with Sky 890
2) in this Color dropdown set the condition .. Enable and choose the attribute  Model --Value Sky 890
3) You need to do the attributes combiantions (you did)


I think it will create redundancy and for data entry, a product can take many days to be added in the system. For example, you've 15 models available in 10 colors. You'll have to create each color 15 time to apply condition over it.

A much better solution is suggested by SuperNopCommerce and I've followed his suggested solution. Get the data from ProductAttributeCombination table associated to the product (/Libraries/Nop.Services/Catalog/ProductAttributeService.cs), change the model passing to the view (/Presentation/Nop.Web/Views/Product/_ProductAttributes.cshtml) and a little bit jQuery in the view to apply filtration as required.

You can see the output at this link:
http://gage365.tipstertech.com/crocodile-diary
7 years ago
Care to share in a little more detail how you did this?
Maybe even by PM if needed.

I have this feature customized on a 2.8 site we are upgrading to 3.6, so I have to redo it.
It was using JS and JSON before, and I'd like a better solution.
5 years ago
We have a similar product, can you please let us know in detail. Ho wyou managed it. We are using Version 3.9.
4 years ago
Hi

In case anyone is still stuck with such requirements and need assistance, we have developed a Plugin which enable you to add any number of conditions for Product attributes, and will meet the purpose been briefed above in the requirements.

You can contact us at [email protected] for further queries regarding the same.

Thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.