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
Mark attribute combinations as unavailable #2909
Comments
@AndreiMaz, I would like to implement this solution as proposed. Is that ok? |
Hi Vucetica, I don't understand. Best Regards, |
Hi @Araujovski. Can you clarify? Which part you don't understand? |
Hi,
I have two lists:
->valid attributes ;
->invalid attributes.
This is developted in "ShoppingCartController".
It's work... but don't work in client side... I think it is "_ProductAtributes.cshtml". I'm so sad.
Can you help me?
Best Regards,
Araujovski.
…________________________________
De: Aleksandar Vucetic <notifications@github.com>
Enviado: 20 de dezembro de 2019 14:25
Para: nopSolutions/nopCommerce <nopCommerce@noreply.github.com>
Cc: Araujovski <luyx.bcl@hotmail.com>; Mention <mention@noreply.github.com>
Assunto: Re: [nopSolutions/nopCommerce] Mark attribute combinations as unavailable (#2909)
Hi @Araujovski<https://github.com/Araujovski>.
Can you clarify? Which part you don't understand?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2909?email_source=notifications&email_token=AIKGM3SAH25LFVML5PI7RXDQZTIUPA5CNFSM4EUSWWP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHNBXRA#issuecomment-567942084>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIKGM3T67OQZXMX6XIRQCCDQZTIUPANCNFSM4EUSWWPQ>.
|
@Araujovski , I didn't implement this in the end (and not working on nopcommerce stuff these days). Guys from nopcommerce marked it as onhold/won't do. I see that it is active now, and I'm not sure if someone from the nopcommerce team is working on it. |
In atually no one is working on it. Do you know what you can call client side controller values?
Best Regards,
Araujovski.
…________________________________
De: Aleksandar Vucetic <notifications@github.com>
Enviado: 20 de dezembro de 2019 14:56
Para: nopSolutions/nopCommerce <nopCommerce@noreply.github.com>
Cc: Araujovski <luyx.bcl@hotmail.com>; Mention <mention@noreply.github.com>
Assunto: Re: [nopSolutions/nopCommerce] Mark attribute combinations as unavailable (#2909)
@Araujovski<https://github.com/Araujovski> , I didn't implement this in the end (and not working on nopcommerce stuff these days). Guys from nopcommerce marked it as onhold/won't do. I see that it is active now, and I'm not sure if someone from the nopcommerce team is working on it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2909?email_source=notifications&email_token=AIKGM3T6EOI7GPYPW2QNBRLQZTMILA5CNFSM4EUSWWP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHNEJFI#issuecomment-567952533>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIKGM3SHSBLT624AYTG2N6TQZTMILANCNFSM4EUSWWPQ>.
|
Sorry, not on the project anymore. |
but know what you can call client side controller values? Please...
…________________________________
De: Aleksandar Vucetic <notifications@github.com>
Enviado: 20 de dezembro de 2019 15:19
Para: nopSolutions/nopCommerce <nopCommerce@noreply.github.com>
Cc: Araujovski <luyx.bcl@hotmail.com>; Mention <mention@noreply.github.com>
Assunto: Re: [nopSolutions/nopCommerce] Mark attribute combinations as unavailable (#2909)
Sorry, not on the project anymore.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2909?email_source=notifications&email_token=AIKGM3QEWUUHN4BYGNR7GILQZTPA3A5CNFSM4EUSWWP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHNGHIQ#issuecomment-567960482>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIKGM3S3KNF6YU3UMC7AF7DQZTPA3ANCNFSM4EUSWWPQ>.
|
@Araujovski , I really don't understand the question. What do you mean by "what you can call client side controller values"? Can you give me an example? |
I have two lists:
-> disabledAttributeValues;
-> enabledAttributeValues;
In function "ProductDetails_AttributeChange", this function belongs "ShoppingCartController.cs".
How do I analyze these two lists in client side?
Best Regards,
Araujovski.
…________________________________
De: Aleksandar Vucetic <notifications@github.com>
Enviado: 20 de dezembro de 2019 16:45
Para: nopSolutions/nopCommerce <nopCommerce@noreply.github.com>
Cc: Araujovski <luyx.bcl@hotmail.com>; Mention <mention@noreply.github.com>
Assunto: Re: [nopSolutions/nopCommerce] Mark attribute combinations as unavailable (#2909)
@Araujovski<https://github.com/Araujovski> , I really don't understand the question. What do you mean by "what you can call client side controller values"? Can you give me an example?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2909?email_source=notifications&email_token=AIKGM3RA4XXUIKDJZZMVO5DQZTZDRA5CNFSM4EUSWWP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHNNQQA#issuecomment-567990336>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIKGM3T74UBIQ4PLXPXCJW3QZTZDRANCNFSM4EUSWWPQ>.
|
I'm sorry, I can't help you with that. |
Why?
…________________________________
De: Aleksandar Vucetic <notifications@github.com>
Enviado: 20 de dezembro de 2019 17:13
Para: nopSolutions/nopCommerce <nopCommerce@noreply.github.com>
Cc: Araujovski <luyx.bcl@hotmail.com>; Mention <mention@noreply.github.com>
Assunto: Re: [nopSolutions/nopCommerce] Mark attribute combinations as unavailable (#2909)
I'm sorry, I can't help you with that.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2909?email_source=notifications&email_token=AIKGM3QJMXWPGMFD3TWUCXLQZT4MPA5CNFSM4EUSWWP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHNRGCA#issuecomment-568005384>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIKGM3TKLYKYLULZH4GGUMTQZT4MPANCNFSM4EUSWWPQ>.
|
Closed #2909 |
nopCommerce version: 4.0
Expected behavior: When the user selects an attribute value, attribute values for available attribute combinations should be differentiated from the ones that are not available. Screenshot from amazon is attached (page https://smile.amazon.com/Blue-Cache-Desktop-Drive-WD10EZEX/dp/B013HNYVCE):
Actual behavior: User has to click on many combinations to figure out which one is in stock.
Steps to reproduce the problem: Open a product page for a product whose inventory is managed through attribute combinations, having some of the combinations unavailable or out of stock.
Suggested solution
Server side
...
accepted_attribute_values: [
{
attribute_id: 1981,
accepted_value_ids: [123, 123],
unaccepted_value_ids: [222]
},
{
attribute_id: 1981,
accepted_value_ids: [127, 128],
unaccepted_value_ids: []
}
]
...
This result will be built using these rules:
2.1. Find all product attribute combinations that are valid for the selected value of selected_product_attribute_id.
2.2. For each attribute in the product, buld a return object with these properties:
attribute_id - id of that attribute
accepted_value_ids - go through all attribute values and pick those that appear in acceptable combinations
unaccepted_value_ids - the opposite from accepted_value_ids
Client side
When shoppingcart/productdetails_attributechange is completed, for all attribute values remove css classes "accepted" and "unaccepted". For all attribute values in the accepted_value_ids list, add "accepted" css class, for the ones in unaccepted_value_ids add "unaccepted" css class.
The text was updated successfully, but these errors were encountered: