Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 ASP (Windows server) versions
 Invalid floating point number in property "price"
Author « Topic »  

kelleymoore
Ecommerce Template Expert

USA
986 Posts

Posted - 12/15/2022 :  04:23:31  
I have products over $1000.00 and Google is flagging the products as "Invalid floating point number in property "price" (in "offers")".

Here's an example of how it is in my feed:

"price" : "2,054.99",
"priceCurrency" : "USD",

I'm assuming it's the comma. How do I change that?

I use Mike's Google Merchant Lister.

Thanks,
Kelley

Vince
Administrator

42466 Posts

Posted - 12/15/2022 :  05:50:39  
Hi Kelley
I hate to put the blame on Mike but I just checked the cart and the schema markup for the price does include a version without comma, etc so could you check with Mike as it may well be his merchant lister?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

kelleymoore
Ecommerce Template Expert

USA
986 Posts

Posted - 12/15/2022 :  10:04:19  
Hi Vince,

OK, I'll check with Mike. I think I found the line that needs changing:

gb_print Space(8) &"<g:price>" & Replace(pPrice,",","") & "</g:price>"

Just not sure how to do it without breaking it.

Thank you.

Kelley

Edited by - kelleymoore on 12/15/2022 10:12:57

dbdave
ECT Moderator

USA
10276 Posts

Posted - 12/15/2022 :  10:29:15  
Hi Kelley, this bit here Replace(pPrice,",","") is used to remove the comma, so that may not be your issue.

https://www.w3schools.com/asp/func_replace.asp shows a good example of how the replace function works in vbscript (.asp).

Replace(pPrice,",","") means use the pPrice (the item price) and looks for "," the comma and replace it with nothing "".

Thanks,
David

kelleymoore
Ecommerce Template Expert

USA
986 Posts

Posted - 12/15/2022 :  11:48:07  
Hi David,

OK, thank you. I have emailed Mike. Maybe he'll have an idea of how the price is getting returned with a comma in the feed.

Thanks,
Kelley

DLSS
ECT Moderator

Canada
3934 Posts

Posted - 12/21/2022 :  12:48:40  
Hey Kelley,
Sorry for the delay, just got back from Vacay. I will respond to your email as I go through them all.



Mike Beebe
President,
DataLinks Software Solutions
www.dlss.ca

Rate Me Here

ASP and PHP mods - www.dlss.ca/products.asp
A Tremendous Home - www.ATremendousHome.com
Buy Cigars Online www.CigarSmokeShop.net
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000