question

Iann Delgado Murillo avatar image
Iann Delgado Murillo asked

What is going on with VirtualCurrencyPrices

Ive been trying to get the price of the catalogItem to display and it just gives me null.

............................................................


handlers.PurchaseOutfit = function (args, context) {
    var outfitID = args.outfitID;
  
  var request = server.GetCatalogItems({CatalogVersion: 0.1});
	var catalogItems = request.Catalog; 
	var length = catalogItems.length; 
  
  var priceOfOutfit = 0;
  
  for(var i = 0; i < length; i++)
	{	
          if(catalogItems[i].ItemId == outfitID)
          {
              priceOfOutfit = (catalogItems[i].VirtualCurrencyPrices["00"]).Value;
            			                  
            
                                    return { messageValue: priceOfOutfit };




          }
    }
  


};
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Iann Delgado Murillo avatar image Iann Delgado Murillo commented ·

    Ive been trying to get the price of the catalogItem to display and it just gives me null.

    0 Likes 0 ·

    1 Answer

    ·
    Sarah Zhang avatar image
    Sarah Zhang answered

    Please check the link of your latest question. We've answered it. https://community.playfab.com/questions/30657/why-is-virtualcurrencyprices-returning-null.html

    10 |1200

    Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

    Write an Answer

    Hint: Notify or tag a user in this post by typing @username.

    Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.