Checkout/Product attributes dynamic

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

before i start on a bit of functionality, i thought i would ask if anyone has and guidance on the best way to make a product/checkout attribute dynamic.

So when a user goes to the product page (i am forcing login to the application so i know who they are) they get a drop down for the product attribute which is populated from the database (this record set is based on their userid)

I can see i could use an event handler and listen for the product model and add the options in at this point but i dont know if that will cause a referential problem when adding the item into the cart because the drop down items will not have an entry in the nop database?

Thanks in advance
5 years ago
Anyone any thoughts I'm a bit stuck
5 years ago
Hello Paul,

There is a way you can achieve this. Can you dynamically insert value in checkout attribute which you said will be based on current customer and then using action filter or overriding checkout attribute dropdown list method, you can control which value you want customer to be able to select.

Please let me know if this logic gives you an idea otherwise I'll try to post some more explanatory stuff such as some part of code.

Thank you,
Atul
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.