Get the value of Element data using content plugin

jmoises

Active Member
Thanks for any help, i all ready search forum and no luck, here is my issue
i using the content plugin to get some elements on the article all good, i am trying alter a value that i am getting sourcer plugin:
in html view i can view the value $10,000.00 of $precio, and is ok, but i try to change it to numeric value and seem that value of $precio is {fabrik view=element list=1 rowid=[param1] element=list1___price}
Code:
$precio = '{fabrik view=element list=1 rowid=[param1] element=list1___price}';
$precio = str_replace('$', '', $precio); 
$precio = str_replace(',', '', $precio);
$precio = floatval($precio);
echo $precio;

result is: 0

i try to add the _raw at the element name and same, any sugestion or help!

Thank you so much
 
Try with var_dump on your first $precio to See what you get from the content plugin


Gesendet von meinem SM-G930F mit Tapatalk
 
Try with var_dump on your first $precio to See what you get from the content plugin


Gesendet von meinem SM-G930F mit Tapatalk


in the HTML i get $10,000.00 but if i try to use any calculation using php the value is {fabrik view=element list=1 rowid=[param1] element=list1___price}
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top