Posted on 13/04/2023 15:33:39
							
							
						 
						Hi, hijacking this thread a little.
I am seing the same thing. When calling:
@{ 
    var product = Dynamicweb.Ecommerce.Services.Products.GetProductById("83666202196", "", true);
    var settings = Dynamicweb.Ecommerce.DynamicwebLiveIntegration.Configuration.SettingsManager.GetSettingsByShop("SHOP1");
    var infoProduct = Dynamicweb.Ecommerce.DynamicwebLiveIntegration.Products.ProductManager.GetProductInfo(product, settings, Pageview.User);
    var prices = Dynamicweb.Ecommerce.DynamicwebLiveIntegration.Products.ProductManager.GetPrices(infoProduct);
}
Prices returned are this:
[
  {
    "Id": null,
    "ProductId": "83666202196",
    "VariantId": null,
    "LanguageId": "LANG1",
    "UnitId": "Unit_STK",
    "CurrencyCode": "DKK",
    "Quantity": 1.0,
    "PeriodId": "",
    "Amount": 495.81675,
    "AmountString": null,
    "CustomerGroupId": "",
    "Priority": 0,
    "CountryCode": null,
    "ShopId": null,
    "ValidFrom": null,
    "ValidTo": null,
    "UserId": null,
    "UserGroupId": null,
    "UserCustomerNumber": "97910338",
    "IsInformative": false,
    "StockLocationId": 0,
    "IsWithVat": false,
    "ExternalId": null
  }
]
So, it is not returning the:
 <table tableName="EcomPrices">
    <item table="EcomPrices">
      <column columnName="PriceProductId"><![CDATA[83666202196]]></column>
      <column columnName="PriceUserCustomerNumber"><![CDATA[97910338]]></column>
      <column columnName="PriceProductUnitId"><![CDATA[Unit_STK]]></column>
      <column columnName="PriceQuantity"><![CDATA[1]]></column>
      <column columnName="PriceAmount"><![CDATA[495.81675]]></column>
      <column columnName="PriceAmountWithVat"><![CDATA[495.817]]></column>
    </item>
  </table>
Also, if I call this on a random place, like in the top of the master layout page, and not in the Productview page - then nothing is returned - because productinfo is null.
Can the live integration code here beused anywhere I want and work - or do I need to use it specifick places?  
var prices = Dynamicweb.Ecommerce.DynamicwebLiveIntegration.Products.ProductManager.GetPrices(infoProduct);