- Posts: 11
- Thank you received: 0
- Community Forum
- Appointment Booking Pro - Retired, no longer for sale or supported.
- ABPro 4.0.x
- Front desk Client Historic
Front desk Client Historic
- maria sila
- Topic Author
- Offline
- Fresh Boarder
Would it be possible in the front desk also to have the phone number a possibility for searching the client I want to see the historic.
My clients aren't regestered users nor the email is a mandatory field only the name and the phone is.
I've attached pictures for you to see what I mean.
Thank you
Maria
Please Log in to join the conversation.
- Rob
- Offline
- Administrator
- Posts: 4785
- Karma: 103
- Thank you received: 673
Edit file: \components\com_rsappt_pro3\views\customer_history\tmpl\default.php
At line 183, change this..
$sql = $sql."#__sv_apptpro3_requests.email = '".$database->escape($user_email)."' ";
to this..
$sql = $sql."#__sv_apptpro3_requests.phone = '".$database->escape($user_email)."' ";
You will need to reload the page in your browser after making the above change.
To adjust the label, add a Language Override
RS1_INPUT_SCRN_SELECT_CUSTOMER_BY_EMAIL = " or by Phone: "
Note: The above depends on the customer entering their phone number the same way every time. The search does not attempt to capture different formats of the same number.
ie: (403) 555-1212 will not be seen as the same as 403-555-1212
Please Log in to join the conversation.
- Grigoriy
- Offline
- Gold Boarder
- Posts: 199
- Thank you received: 1
Please Log in to join the conversation.
- Rob
- Offline
- Administrator
- Posts: 4785
- Karma: 103
- Thank you received: 673
Check the ABPro Error Log screen.
Please Log in to join the conversation.
- Grigoriy
- Offline
- Gold Boarder
- Posts: 199
- Thank you received: 1
Please Log in to join the conversation.
- Grigoriy
- Offline
- Gold Boarder
- Posts: 199
- Thank you received: 1
Please Log in to join the conversation.
- Grigoriy
- Offline
- Gold Boarder
- Posts: 199
- Thank you received: 1
Please Log in to join the conversation.
- Rob
- Offline
- Administrator
- Posts: 4785
- Karma: 103
- Thank you received: 673
Please Log in to join the conversation.
- Grigoriy
- Offline
- Gold Boarder
- Posts: 199
- Thank you received: 1
Please Log in to join the conversation.
- Rob
- Offline
- Administrator
- Posts: 4785
- Karma: 103
- Thank you received: 673
You show one screen with just the word "error", then another with the full screen showing??
What are you doing to get the error text?
Please Log in to join the conversation.
- Grigoriy
- Offline
- Gold Boarder
- Posts: 199
- Thank you received: 1
Please Log in to join the conversation.
- Rob
- Offline
- Administrator
- Posts: 4785
- Karma: 103
- Thank you received: 673
Please Log in to join the conversation.
- Grigoriy
- Offline
- Gold Boarder
- Posts: 199
- Thank you received: 1
And for Administrator of resource.
Other users can't have access for this page.
Please Log in to join the conversation.
- Rob
- Offline
- Administrator
- Posts: 4785
- Karma: 103
- Thank you received: 673
I am thinking it might be a data corruption issue, although nothing should ever cause a screen like you are seeing, so I am just guessing.
Please Log in to join the conversation.
- Grigoriy
- Offline
- Gold Boarder
- Posts: 199
- Thank you received: 1
Please Log in to join the conversation.
- Rob
- Offline
- Administrator
- Posts: 4785
- Karma: 103
- Thank you received: 673
If you have 10 users on your site, and you go to look at each one in the Customer History screen, do they all give that error when you hit the Printer Friendly button?
If some work ok, and some don't, that may indicate a problem with some data.
Also, try a different PC and/or browser in case some bad data is being cached in your browser.
There is nothing in ABPro that will give the results you are seeing.
I have never seen it before, and no one has ever reported it before.
That means we need to find what outside factor is causing ABPro to fail.
Please Log in to join the conversation.
- Grigoriy
- Offline
- Gold Boarder
- Posts: 199
- Thank you received: 1
the problem is that some extensions will ask the error page to be created while format is not HTML, by throwing an exception, i am not sure if this appropriate behaviour, but the error.php of some templates is not checking the current format, to see how your template is (or not) handling this case, just test this:
get any invalid URL of your website
add to it to ?format=raw or (&format=raw) ... or ?format=json or ?format=xml
see if you get fatal error
to fix this, and at the same time you have 2 options either exit and output nothing or print some short message like (add at the top of your template's error.php):
(--ADD the code after the check if $this->error isset)
$_format = JFactory::getApplication()->input->get('format', 'html');
if ($_format!='html') { // catch ALL non html formats, or maybe output special e.g. if xml output XML ??
die(
'Exception with ERROR code:'.$this->error->getCode()
.' Thrown by --"'.$_format.'"-- format URL: '. JURI::current()
.' Error: '.$this->error->getMessage()
);
}
After that i have info:
Exception with ERROR code:0 Thrown by --"prt"-- format URL: www.mydomen.com/ua/component/rsappt_pro3...story/front_desk/839 Error: Too few arguments to function JHtmlGrid::sort(), 1 passed and at least 2 expected
Please Log in to join the conversation.
- Rob
- Offline
- Administrator
- Posts: 4785
- Karma: 103
- Thank you received: 673
Too few arguments to function JHtmlGrid::sort(), 1 passed and at least 2 expected
The screen has not changed.
Maybe there is a data corruption (??).
Please answer..
If you have 10 users on your site, and you go to look at each one in the Customer History screen, do they all give that error when you hit the Printer Friendly button?
If some work ok, and some don't, that may indicate a problem with your data.
Please Log in to join the conversation.
- Grigoriy
- Offline
- Gold Boarder
- Posts: 199
- Thank you received: 1
When I replace in url "&format=prt" to &tmpl=component it working but show page to print with select user form only.
Please Log in to join the conversation.
- Rob
- Offline
- Administrator
- Posts: 4785
- Karma: 103
- Thank you received: 673
&format=prt will display the printer friendly view (default_prt.php).
Maybe your default_prt file is corrupt.
You could either replace yours with the one from the distribution zip file, or email me a copy of yours and I could compare it to the current distribution.
The file is \components\com_rsappt_pro3\views\customer_history\tmpl\default_prt.php
Please Log in to join the conversation.
- Community Forum
- Appointment Booking Pro - Retired, no longer for sale or supported.
- ABPro 4.0.x
- Front desk Client Historic