Forums

CF 6.0.27 possible change in url behaviour

sh-si 07 Apr, 2019
Hi,

i'm a little bit confused with the given url variables and options from 6.0.26 and previous to 6.0.27.
As i can see in https://www.chronoengine.com/faqs/74-chronoforms/chronoforms6/5289-variable-shortcodes the url options are:

URLs and Paths
{url:_self} to get the current page url
{url:event_name} to get a partial form event url, e.g.
{url:submit}will give /index.php?option=com_chronoforms6&cont=manager&chronoform=form_name&event=submit
{url/full:event_name} to get a full form event url, e.g.
{url/full:submit} will give https://my_domain.com/index.php?option=com_chronoforms6&cont=manager&chronoform=form_name&event=submit
You can add parameters to the url query strings like this {url:submit$param=value}
...


If i have a look in the paypalRedirect function / Return url after completion there is a hint how to use urls:

User full url or {url.full:event}


Please have a look at the changed syntax from dot (.) to slash (/)

Until CF 6.0.26 paypal got an ipn url which was heading to https://www.mydomain.com/component/chronoforms6/?chronoform=myform&event=ipn
This worked fine for me.

Since CF 6.0.27 paypal wants to communicate with https://www.mydomain.com/myform.html?chronoform=myform&event=ipn
But this url is only available for registered users because the form is not live yet. Paypal can't send a successful ipn😟

My questions:
  1. Did you change the behaviour / syntax of url in CF 6.0.27 (no info at https://www.chronoengine.com/blog/5323-chronoforms-v6-0-27-update)
  2. Which url syntax should be used if i want to let paypal send an ipn to my form which is only available for registered users?
  3. Was it my fault?
Best regards,
Stefan
healyhatman 07 Apr, 2019
Dots and slashes both work and do the same thing
What you can do is instead of putting the permissions on the entire form, you can set the permissions on individual events. So leave the IPN event and the success event as guest/public access, and lock down the form.

For more information about how a certain shortcode will end up looking you can use my Shortcodes Reference available here
sh-si 07 Apr, 2019
Thanks for your quick answer.

So refering to my questions

Did you change the behaviour / syntax of url in CF 6.0.27 (no info at https://www.chronoengine.com/blog/5323-chronoforms-v6-0-27-update)
=> the behaviour was not changed?

What you can do is instead of putting the permissions on the entire form, you can set the permissions on individual events.


The form is public but the menu item (type Chronoforms) is permitted to registered users only.
Any suggestions?

Thanks,
Stefan
Max_admin 07 Apr, 2019
In PayPal settings you need to provide the form URL for the ipn:
https://www.mydomain.com/component/chronoforms6/?chronoform=myform&event=ipn

but not:
https://www.mydomain.com/myform.html?chronoform=myform&event=ipn
Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
sh-si 08 Apr, 2019
Hi Max,

that's exactly the issue!

In CF6.0.26 {url.full:ipn} was https://www.mydomain.com/component/chronoforms6/?chronoform=myform&event=ipn
and in CF6.0.27 / CF6.0.28 i get now (wrong) https://www.mydomain.com/myform.html?chronoform=myform&event=ipn

I didn't change anything in the paypalRedirect.

Could you please have a look at this?
Max_admin 09 Apr, 2019
nothing was changed here to affect this, do you have SEF extension ? or on which page you display the form ?

You may also set the PayPal ipn setting to the full url directly.

Additionally you may test the url with a "Custom code":
{url:}
{url.full:}
{url.full:ipn}
Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Max_admin 16 Apr, 2019
Did you test this ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.