Open mediabeastnz opened 5 years ago
I've just added a simple change to extend the functionality of getPricesByPurchasableId($id) which allows you to get a single price instead of returning the full array.
getPricesByPurchasableId($id)
I've tried to do it so it wont affect any existing implementations.
For example:
CurrencyPrices::$plugin->service->getPricesByPurchasableId($id, 'USD')
Would return the value of that currency for that particular purchasable.
I've just added a simple change to extend the functionality of
getPricesByPurchasableId($id)
which allows you to get a single price instead of returning the full array.I've tried to do it so it wont affect any existing implementations.
For example:
Would return the value of that currency for that particular purchasable.