Your account is limited to posting only in the Pre-Sales Questions forum.
Support forum access is limited to members with a purchase history.

If you are working on behalf of another member, please contact us with the name of the license holder and we will upgrade your account.
   
 
Adding comma to price
Posted: 03 July 2012 11:21 AM   [ Ignore ]
Has a Great Personality
Rank
Total Posts:  50
Joined  2011-06-16

Is there a way to add a comma to the price of a product that has a cost in the thousands?  I’m not sure if I can just add the comma to the price without throwing things off.  For example, I want items that cost “$1000” to appear as “$1,000”

Profile
 
 
Posted: 03 July 2012 11:31 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRank
Total Posts:  465
Joined  2008-09-30

If you have a comma as your Thousands Separator in the CartThrob->General->Number Format Defaults settings, it should already be adding the comma automatically.

Profile
 
 
Posted: 03 July 2012 11:40 AM   [ Ignore ]   [ # 2 ]
Has a Great Personality
Rank
Total Posts:  50
Joined  2011-06-16

The comma is there in the settings, but it’s not showing in the actual product page.  I see that the comma is added in the subtotal and total, however.  Trying to get it to show for the product page with the {product_price}.

Profile
 
 
Posted: 03 July 2012 11:47 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRank
Total Posts:  465
Joined  2008-09-30

Is your {product_price} of the fieldtype “CartThrob Price - Simple”?

Profile
 
 
Posted: 03 July 2012 12:01 PM   [ Ignore ]   [ # 4 ]
Has a Great Personality
Rank
Total Posts:  50
Joined  2011-06-16

Ah, there we go.  I had it as a text input type field.  Now it’s working.  Thanks!

Profile