• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: str_replace for [p] calculation, any thoughts?

str_replace for [p] calculation, any thoughts? 4 years 2 months ago #39802

  • serazoo
  • serazoo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Hello RS community :)

I'm using a str_replace for the price : [p{price}]
I see the correct number, but calculation is not showing in the "Total" box.. any thoughts? Can this be done?

Radio group :
Chicken [p{price}]
Beef [p{price}]

In the form I see the whole thing display like this :
Chicken [p15]
Beef [p15]

Is there a correct syntax for this?

I've also tried :
{price}|Chicken
{price}|Beef

Any thoughts?

Other scenario

In "Script called on form display"
$formLayout = str_replace("{priceholder}","[p$price]",$formLayout);

Radio group :
Chicken {priceholder}
Beef {priceholder}

Again, in the form I see the whole thing display like this :
Chicken [p15]
Beef [p15]

but calculation is not showing in the "Total" box.. any thoughts?

Thanks :)
Sandra
Last Edit: 4 years 2 months ago by serazoo.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!