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

brmassa’s picture

Assigned: Unassigned » brmassa
Category: support » feature
Status: Active » Postponed

anon,

interesting feature. i dont promisse but i would like to add it on the next eCommerce Subproducts version.

regards,

massa

.-_-.’s picture

Status: Postponed » Active

Hi
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

.-_-.’s picture

Priority: Normal » Critical

I 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

function testmod_form_alter($form_id, &$form) {
  if ($form_id == "ec_live_subproducts_pproduct_view" ) {

////// any action
	  								
    return;
  }
}

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

.-_-.’s picture

Priority: Critical » Minor
Status: Active » Closed (fixed)

sorted it was a weight problem
going to make a tiny mod to hide certain variations on role basis
:)