Forums

Issue on AcyMailing and Chronoforms

deltafidesign 03 Oct, 2014
Hi,

I've created a form where user can subscribe to the newsletter If they subscribe they receive a discount code with a display message and also by a customized email always sent by chronoforms.
They don't need to check any list to subscribe. The form request only name and email fields then the form add the user only to a specific list hidden to the users.

Everyting works fine, the user is correctly added to the acymailing list.

Anyway I use that form to give a discount code with a display message after form submission so if a user would find again the code, everytime he fill the form he should be able to receive the discount code in the display message and by email.
But if the user is already registered, the form (with ajax reloading) display me the whole page of the site into the form!

I would expect that the user see the display message.

What's wrong?

Also how could I display a different message to a user who is already subscribed (activated or not) to that acymalining list?

Thanks in advice.
Max_admin 03 Oct, 2014

But if the user is already registered


Registered to what ? to the AcyMailing list ? what happens when you test this form without AJAX ?

#2- you need to read the acymailing table and find if the user is subscribed, then use an "Event switcher" action to display a different message!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
deltafidesign 05 Oct, 2014
Yes, I mean when user is already subscribed to acymailing list.

I've trayed to disable ajax and the form just reload with empty fields. Nothing is submitted and no user is subscribed.

For the second question, would please give a step by step sequence of how should I check the acymailing table and what should I do then?

Thanks so much in advice.
GreyHead 05 Oct, 2014
Hi deltafidesing,

You'll need to find out how AcyMailing record registrations in their database tables, then write a database query to check if the user is registered or not. Once you have that information you can use the result with a ChronoForms Event Switcher to take different actions.

Bob
Max_admin 05 Oct, 2014

I've trayed to disable ajax and the form just reload with empty fields. Nothing is submitted and no user is subscribed.


Please try to set "relative url" to "no" under the HTML action.

If this doesn't help then maybe its a form setup problem, please post a screenshot for the setup section!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
deltafidesign 06 Oct, 2014
I've found the problem: progressive cache instead of conservative cache. Indeed conservative cache do not caches modules. So setting Joomla! to conservative cache will solved the problem or form submit.

Thanks anyway!

About DB tables and code, I'm not able to write the code and figure out the actions. If someone could help me it would be really great! 😀
Max_admin 06 Oct, 2014
In order to do the tables thing, you must know how AcyMailing tables work, unfortunately I don't have this knowledge.
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.