Vinai / groupscatalog2

Magento extension to enable you to hide categories and products from customers depending on their customer group. This is a Magento 1.6 and newer compatible version of the Netzarbeiter Customer Groups Catalog extension.
139 stars 60 forks source link

How to set groupscatalog2_groups programmatically #129

Closed OvalMedia closed 8 years ago

OvalMedia commented 8 years ago

Hello,

I am coding a custom importer with models. I am wondering how to set the values via code. I tried setting groupscatalog2_groups as an array with the groups' ids in a product's data array. But that did not work.

Could someone please point me in the right direction?

Thank you

OvalMedia commented 8 years ago

Nobody an idea?

pquerner commented 8 years ago

When creating/updating a category via AvS' fast-simple-importer you must give the value for 'groupscatalog2_groups' as string.

So I'm thinking its just about the same for products, then?

OvalMedia commented 8 years ago

Yes, it is using a comma separated string. Intuitively i expected an array to be passed. Took me a while to figure out.