GK Reservation/Contact Reply

GK User
Wed Jun 15, 2016 7:43 pm
Hello,

I know there is still a topic about this. (https://www.gavick.com/forums/steak-hou ... tion-51498) So I did this modification but I have another problem. The answer goes to that person which made a reservation but at the e-mail field the "admin-adress" is visible. It is really confusing, when you see your own adress but the email was sent to that person which made the reservation.

Could you please tell me, what I have to do?

Best regards
User avatar
Expert Boarder

teitbite
Mon Jun 20, 2016 12:15 pm
Hi

Do You have this problem after applying the changes from this mentioned thread. If yes than send me an access to FTP. I will need to see how code looks like now and what are the options to change it.
User avatar
Moderator

GK User
Tue Jun 21, 2016 8:11 pm
Yes! I have updated these two php files (gkreservation, gkcontact) and changed
$config->get('config.mailfrom'),
to
$post['gkreservation-email'] (and $post['gkcontact-email'])
and
$title = JText::_('PLG_GKRESERVATION_STANDARD_SUBJECT') . $config->get('config.sitename');

Otherwise it's the same like the demoversion.

Does this picture help you, to solve the problem? There is the name from the restaurant (Gasthof Rothwangl) but the email adress from the guest. So it would be great, if there is the name from the guest and also the email adress from the guest... is this possible?
User avatar
Expert Boarder

teitbite
Sat Jun 25, 2016 6:08 pm
Hi

I'm sorry, but that's the part I already know. I need an access to FTP to make a dump in this file and see which values are storing mail options. When I will know that I will be able to tell where code needs to be changed, so please send me an access to ftp and an url to the page I'll be bale to make this tests.
User avatar
Moderator

GK User
Sun Jun 26, 2016 11:48 am
I have sent you a private message.

Thank you in advance!
User avatar
Expert Boarder

teitbite
Tue Jun 28, 2016 4:03 pm
Hi

To change title I've replaced line:
Code: Select all
$title = JText::_('PLG_GKCONTACT_STANDARD_SUBJECT') . $config->get('sitename');

with
Code: Select all
$title = JText::_('PLG_GKCONTACT_STANDARD_SUBJECT');


for mail I've changed:

Code: Select all
             $post['gkcontact-email'],


to

Code: Select all
$this->params->get('emails')


for now it's only for contact since I need You to check if it's ok. If it is than You can try make this change in reservation or just let me know and I'll make it.
User avatar
Moderator

GK User
Wed Jun 29, 2016 10:18 am
Thank you!

I changed it - in both files!
But there are still the same problems! The subject from gkreservation still contains "Tischreservierung Gasthof Rothwangl" instead of "Tischreservierung". (It's since the update)

For mail: The answer goes, with this settings to the "admin-adress", but it should go to that person which made a reservation (E-Mail-field). There is the same probleme with GKContact.

Thank you in advance!
User avatar
Expert Boarder

teitbite
Fri Jul 01, 2016 9:28 am
Hi

Please revert it to the original state and inform me when You do. I need to send it to programmers to change.
User avatar
Moderator

teitbite
Fri Jul 01, 2016 9:48 am
Hi

Ok. Let's try again, I think I do not understand You.

Let's figure out the thing in GK Contact first:

1. When mail is send what email should it go to. The one user entered or the one configured in joomla backend.
2. Where is this subject entered ?
User avatar
Moderator

GK User
Fri Jul 01, 2016 11:35 am
Hi,
1. When the guest entered email adress, mobile number, name .. he/she click "send", than the email will be send to the email adress, which is configured in joomla backenend (that works fine!). I received the email and I want to answer the guest. So I click "reply" and then my own email adress (which is configured in Joomla backend) is showing up at the adress field! There should be automatically the email adress from the guest. Do you know what I mean?

2. The subject is entered at Joomla Backend - GK Contact Plugin/Mail configuration/Email title! With GK Contact the subject is perfect! For GK Reservation there is no field at Joomla Backend where I can add the subject.
User avatar
Expert Boarder

teitbite
Sat Jul 02, 2016 3:25 pm
Hi

Ok, so only the point 1. needs attention for sender settings. Please edit file /plugins/system/plg_gkcontact/plg_gkcontact.php and change:

Code: Select all
         // set the sender
         $config = JFactory::getConfig();
         $sender = array(
             $this->params->get('emails'),
             $config->get('fromname')
         );


to:

Code: Select all
         // set the sender
         $config = JFactory::getConfig();
         $sender = array(
             $post['gkcontact-email']
         );


I've changed it on Your site already so please try it.
User avatar
Moderator

GK User
Mon Jul 04, 2016 8:13 am
It works!! Thank you very much!
User avatar
Expert Boarder

teitbite
Thu Jul 07, 2016 1:25 pm
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator

GK User
Thu Jan 26, 2017 10:50 pm
Hello from Germany,
Nice Solutions on Forum, great. I have a question:
where is the file: language/en-GB/en-GB.plg_system_gkreservation.ini ??????
I must to edit in German language the Form GK Reservation on Frontend. Can I get help here?
Regards from Germany,
Mark
User avatar
Fresh Boarder

teitbite
Thu Feb 02, 2017 10:13 am
Hi

Your question is an answer :) path to the file is language/en-GB/en-GB.plg_system_gkreservation.ini starting from main joomla folder.
User avatar
Moderator

GK User
Mon Mar 13, 2017 11:43 am
so, where can i edit the plugin ? I mean "Date", "Time", "Name",etc.... Where is the file??
Regards,
Marc
User avatar
Fresh Boarder

teitbite
Fri Mar 17, 2017 10:09 am
Hi

In this file language/en-GB/en-GB.plg_system_gkreservation.ini

/language folder is in the root of Your joomla.

You need to edit this file and change translations:

Code: Select all
PLG_GKRESERVATION_DATE_PLACEHOLDER="Date"
PLG_GKRESERVATION_TIME_PLACEHOLDER="Time"
PLG_GKRESERVATION_SIZE_PLACEHOLDER="Party size*"
PLG_GKRESERVATION_NAME_PLACEHOLDER="Name"
PLG_GKRESERVATION_EMAIL_PLACEHOLDER="E-mail"
PLG_GKRESERVATION_PHONE_PLACEHOLDER="Phone"
etc...


OR

You can use the text phrazes in joomla panel > extensions > languages > override, will work as well.
User avatar
Moderator


cron