TradeAgrrements based on product attributes

Hi All,

Currently in our system we have dimension based trade arrangements.

Instead of that, now product attributes has to be placed as custom product dimension requires x++ code changes.

Any no of product attributes can be created and add to product attribute group and so product can inherit those product attributes from product hierarchy .Based on product attribute group, price has to be defined.All these product attributes has to exposed to retail POS system and third party website for end user online sale.

I would like to know how these can be achieve in AX 2012 R3.?