API
Version 7.x > API > Add Field to Grouping in SKU Table View modes: 
User avatar
Member
Member
dcash-alligatortek - 11/22/2013 8:08:51 AM
   
Add Field to Grouping in SKU Table
I would like to add a field in the Ecommerce-SKU table that is shown in the membership grouping when the Representing selection is set to membership for a product.

I know how to add a field to the table but, how to you assign that field to the membership grouping?

User avatar
Member
Member
dcash - 11/22/2013 8:33:09 AM
   
RE:Add Field to Grouping in SKU Table
This image shows the field I added and where I would like it to show up.
User image

User avatar
Certified Developer 13
Certified Developer 13
kentico_josefd - 11/27/2013 10:22:03 AM
   
RE:Add Field to Grouping in SKU Table
Hello,

We were able to resolve this request via email. Here is the solution should anyone else need it:


You can create a custom field which only shows up when Represents: Membership is selected like his:

Add new field to this section, leaving Display attribute in the editing form unset:

CMS Site Manager -> Development -> System tables -> Ecommerce - SKU -> Fields -> Representing

Afterwards, go to this alternative form and check Display attribute in the editing form for the field you have just created:

CMS Site Manager -> Development -> System tables -> Ecommerce - SKU -> Alternative forms -> Update membership

The field should now show up depending on whether Represents: Membership is selected or not.

Regards,

Josef Dvorak