I am creating a product in Commerce that references other nodes (not other products), of course using the Entity Reference module. Those nodes are split into two different taxonomy terms: classic and premium.

I'm trying to loop through the entity reference field and apply an additional charge for items that are 1) checked and 2) of the "premium" taxonomy term.

My problem is... The charge is applying x number of times (however many nodes are checked), even if there's only one premium flavor checked. So, if they choose 2 classic and 1 premium, it charges that upcharge 3 times.

Is there a way to specify that I only want it to charge for the number of premium flavors?

[edit] I may be able to help fund this if needed.