There is a 'PriceGroupPrices' property which exposes a collection of 'PriceGroupPrice' instances, of which has a 'PriceGroup' - which one of those you will want, or if that is the proper way to get the price group is anybody's guess. And if you can figure that out, you shouldn't even need to call 'GetPrice'. No wonder you're having trouble.
Sorry I can't give you an absolute, working answer, though hopefully this will help move you forward some.
I have tried this, and the various suggestions for getting priceGroup, all of which are either blank or throw an error.
Hence the wated day.
The only reason I am using Razor is I want the single catalog I have to appear on the single shop page, and to to have to select the shop and then the catalog just to see the products, and for the URL not to be hard coded.
Price for product using Razor
I have spent a wasted day trying to workout how to get the price for a product using Razor.
Anyone have any suggestions?
The code I have at the moment is:
Thanks
TT
Did you look at the documentation for uCommerce? (I just Google this, so I don't know it inside out):
http://www.ucommerce.dk/docs/html/M_UCommerce_EntitiesV2_Product_GetPrice.htm
That means you should be able to do:
However, how 'PriceGroup' works I have no idea.
There is a 'PriceGroupPrices' property which exposes a collection of 'PriceGroupPrice' instances, of which has a 'PriceGroup' - which one of those you will want, or if that is the proper way to get the price group is anybody's guess. And if you can figure that out, you shouldn't even need to call 'GetPrice'. No wonder you're having trouble.
Sorry I can't give you an absolute, working answer, though hopefully this will help move you forward some.
Grant,
Thank you for this.
I have tried this, and the various suggestions for getting priceGroup, all of which are either blank or throw an error.
Hence the wated day.
The only reason I am using Razor is I want the single catalog I have to appear on the single shop page, and to to have to select the shop and then the catalog just to see the products, and for the URL not to be hard coded.
TT
Sorry for the inconvenience.
This thread on IPricingService and ITaxService might be helpful.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.