Hi,
I have some product variation node under /etc/commerce/products and resource type of node is
sling:resourceType | String | commerce/components/product |
I am trying to get value from these nodes using InheritanceValueMap but its not working while Parent have the property which i am accessing.
Parent Node
Child Node
Here is my code
final Resource prodRes = resourceResolver.getResource("/etc/commerce/products/XXXX/XX/XX/XX/BES870CBXL/BES870CBXL");
final InheritanceValueMap inVM = new HierarchyNodeInheritanceValueMap(prodRes);
final String bcode = inVM.getInherited("price", "");
Please provide suggestion if i am doing anything wrong.