x

What does $NaN mean?

So as I was building my website (I don't have a lot of products to sell yet.), I wanted to see how product listings would look when they were available for sale. But for some reason, after updating the stock, they come out as $NaN. Even after switching between Disc Only and Disc+ as the options I created, they still show up like that. How can I fix this?

 

 

 

Screenshot 2023-11-17 172136.png

5,310 Views
Message 1 of 7
Report
1 Verified Answer
Verified Answer

Re: What does $NaN mean?

Hi there, @SpokanePBC 😀

 

From what I can see, your item is showing as "Not Available". This can be for a few different reasons. 

 

If an item shows not available, it either means there is no stock, and you have inventory tracking on or your fulfillment methods you chose for the item are not set up properly. Our system will not let items be sold unless there is a way to get the items to the customer.

 

It looks like shipping is the fulfillment method. To set up a shipping profile please check out this Support Article. You will need to choose which areas you ship to and the shipping rate. 

 

I hope this helps!

1 Best Answer
Admin

Best Answer

That's correct - and normally you'd handle that $NaN value so it displays a zero or something else more user-friendly. Usually, the "not available" message means a product configuration issue. If you are tracking inventory, make sure that you have stock for each variation of the product. Additionally, if you have set up fulfillment methods, make sure that your product is covered by those.

Adam
Seller Community, Platform

View Best Answer >

5,253 Views
Message 3 of 7
Report
6 REPLIES 6
Square Champion

I would assume since you don't have much setup or not everything setup right it is throwing an error.  Typically NaN means "Not a Number" like 0 divided by 0 error.  

@AdamB (I think you were part of the website team)

5,282 Views
Message 2 of 7
Report
Admin

Best Answer

That's correct - and normally you'd handle that $NaN value so it displays a zero or something else more user-friendly. Usually, the "not available" message means a product configuration issue. If you are tracking inventory, make sure that you have stock for each variation of the product. Additionally, if you have set up fulfillment methods, make sure that your product is covered by those.

Adam
Seller Community, Platform
5,254 Views
Message 3 of 7
Report

What can I do to fix this issue?

5,236 Views
Message 4 of 7
Report

icloudlakhriaa.jpg

4,789 Views
Message 5 of 7
Report

4,863 Views
Message 6 of 7
Report
Square Community Moderator

Hi there, @SpokanePBC 😀

 

From what I can see, your item is showing as "Not Available". This can be for a few different reasons. 

 

If an item shows not available, it either means there is no stock, and you have inventory tracking on or your fulfillment methods you chose for the item are not set up properly. Our system will not let items be sold unless there is a way to get the items to the customer.

 

It looks like shipping is the fulfillment method. To set up a shipping profile please check out this Support Article. You will need to choose which areas you ship to and the shipping rate. 

 

I hope this helps!

Applications to the Square Champions program are open! Apply here before October 14th!

4,840 Views
Message 7 of 7
Report