Actually, I've just noticed in your first screenshot the error is coming from the order.SubtotalPrice but this is not the price you are debugging into in the debug screenshots. Can you debug into that and provide screenshots so I can see if anything in SubtotalPrice is null that shouldn't be?
No need to apologise at all. Iām glad you managed to get it working. And I agree, the YSOD was in no way helpful so great job on debugging it šš»š§šØš¼āš»
System.NullReferenceException in cart view
Hi,
I am on Vendr v.1.5.3 an I get an error when trying to show products in the cart:
on the line where I am trying to show the formatted price
In debug it shows all the values such as orderline and even the price values:
I thought that it could be related to the fact, that I removed the GBP so I have set up a new store but with no luck.
Any ideas?
Hmm, strange.
And there is a currency defined with that ID?
Yes, currency is EUR with quoted ID:
I am trying to implement the Shop in an Umbraco instance that was just migrated from v7.15 to v8.12. Could that cause any problems?
I don't think that would pose a problem.
Actually, I've just noticed in your first screenshot the error is coming from the
order.SubtotalPrice
but this is not the price you are debugging into in the debug screenshots. Can you debug into that and provide screenshots so I can see if anything in SubtotalPrice is null that shouldn't be?Matt
Hi Matt,
thanks for your reply.
After I have pulled the code apart and put it all back together bit by bit, I could rule out that it had to do with the orderlines.
Stupidly it was just the link to the checkout page causing the issue because I had not installed the Vendr.Checkout package...
.. stupid me :( But in my defence, I have to say that Visual Studio sometimes brings really weird messages that can quickly lead you astray.
I'm sorry to have wasted your time and thanks again for your support. Have a nice evening.
No need to apologise at all. Iām glad you managed to get it working. And I agree, the YSOD was in no way helpful so great job on debugging it šš»š§šØš¼āš»
is working on a reply...