Buy Now
Sign in

shortcodes

ernst@volny.cz , January 09 2020, 10:27
E
ernst@volny.cz 113
January 09 2020, 10:27 #390614
How do I call shortcode {var: total} in custom code as $this -> .......?
GreyHead 64
January 09 2020, 10:52 #390615
Hi Ernst,
Please see this FAQ
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
E
ernst@volny.cz 113
January 09 2020, 11:23 #390616
Thank you very much for the instructions, sometimes it's hard to find.

Please ask for advice on how to read the id of a row in the database table in php.

in shortcoces it's {var: save_data3.aid}, but I don't know how in php ($ this -> ....). I tried $ this-> get ("save_data3.aid"); (from https://www.chronoengine.com/forums/posts/t104088/how-to-access-var-array-in-php-after-successfully-saved-to-db), but it is not working.
healyhatman 9
January 09 2020, 11:38 #390617
$this->get('save_data3.aid');
That's definitely it. What does your debug say? The return from the save data action?
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
E
ernst@volny.cz 113
January 09 2020, 11:47 #390618
I am very sorry, my fault.
I had the code by mistake before writing it to the database and therefore returned NULL