Adding Customer Attribute Tutorial-Compile Error
Posted: Wed Apr 29, 2015 9:45 pm
Hi Team,
I am exploring "Adding Customer Attribute Tutorial" @ http://www.broadleafcommerce.com/docs/c ... e-tutorial.
I have notice that the below line of code having compilation error.
// Update our customer object
newCustomer.getCustomerAttributes().add(referralCodeAttr);
Issue1 : Seems newCustomer.getCustomerAttributes() return type is Map and Map dont have add() method.
Issue2 : Seems newCustomer.getCustomerAttributes() return type is Map and expecting the KEY,VALUE pair.
Please have look and update the code snippet accordingly.
Thanks in advance.
I am exploring "Adding Customer Attribute Tutorial" @ http://www.broadleafcommerce.com/docs/c ... e-tutorial.
I have notice that the below line of code having compilation error.
// Update our customer object
newCustomer.getCustomerAttributes().add(referralCodeAttr);
Issue1 : Seems newCustomer.getCustomerAttributes() return type is Map and Map dont have add() method.
Issue2 : Seems newCustomer.getCustomerAttributes() return type is Map and expecting the KEY,VALUE pair.
Please have look and update the code snippet accordingly.
Thanks in advance.