I am using Live SubProducts and I am very happy with it [although i obviously look forward to the integration with the future release of e-commerce]
I would like to be able to expose/hide sub products on a role basis though.
for example, I have a variation called color and a variation called size, but i would like for users of role 'x' only be able to change color and add to basket. Size could just be hidden and take the default value if necessary.
Do you have any advice on how i could archive this?
Would i use an api and a custom mod or maybe some template.php code ?
thanks
Comments
Comment #1
brmassa commentedanon,
interesting feature. i dont promisse but i would like to add it on the next eCommerce Subproducts version.
regards,
massa
Comment #2
.-_-. commentedHi
i would like to use prerender and unset in a custom mod as a way to achive this is the short term, but i can't figure out the id of the the form.
would it be :
[ec_live_subproducts_pproduct_view] and the respective elements something like [description_26] according to the vocabularies.
please help
Comment #3
.-_-. commentedI have made a module with the following snippet and using the form id as yielded by 'form inspect' mod but it doesn't seem to work
I have also tried changing the weight of the module but to no avail,
any ideas why the hook_form_alter is not working?
cheers
Comment #4
.-_-. commentedsorted it was a weight problem
going to make a tiny mod to hide certain variations on role basis
:)