Skip Navigation

[Waiting for user feedback] Currency format in page layout vs content template

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 1 voice.

Last updated by Minesh 1 week ago.

Assisted by: Minesh.

Author
Posts
#2829256

Tell us what you are trying to do?
Create a layout on page that pulls from a specific post iD the content and format a number into a price (currency format) with a comma and $.

Is there any documentation that you are following?
I have this working as part of a content template

<p>{!{wpv-conditional if="( $(wpcf-home-sold) eq '1' )"}!}</p>
<div class="homePriceStrikethrough">[format-currency num="[types field='current-price'][/types]" sym="$"]</div>
<div class="homeSold">SOLD</div>
<p>{!{/wpv-conditional}!}</p>

I am looking for the syntax for doing this on page. Here's what I've tried. Option A does not work, Option B pulls the correct price without the formatting for the comma separator. ($000,000).

<p>Option A</p>
<div class="homePrice">$[format-currency num="{!{types field='current-price' format='FIELD_VALUE' item='343762'}!}{!{/types}!}]</div>
<p>Option B</p>
<div class="homePrice">${!{types field='current-price' format='FIELD_VALUE' item='343762'}!}{!{/types}!}</div>

I"m guessing it's a simple syntax error in the markup, but was unable to find the solution in your community forum or help docs.

Is there a similar example that we can see?

What is the link to your site?

#2829261

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share problem URL and admin access details and let me review where exactly the issue.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.