Re: Can't get "referrals " mod working
Quote:
Originally Posted by
Robbyn7
Thanks Gogolf for the reply. I believe one of my problems is that I have never been able to get the override system to work for me. So, I have no idea where to go from here.
I have never been able to figure it out, however somehow mine works.
If you read my threads again you'll find a post discussing over-ride system of which confuses me ; depending upon which FAQ or Help article you read.
Here it is again.
https://www.zen-cart.com/tutorials/index.php?article=36
Read it and search the FAQ's and Help sections of Zen to other articles.
Re: Can't get "referrals " mod working
Thanks again Gogolf for the reply. I don't know how many articles I've read on this subject. I thought I had all the folders/directories in their proper place, etc. but still can't get it to work. I'll check out the link you have here and give it another try.
Thanks,
Robyn
1 Attachment(s)
Re: Can't get "referrals " mod working
Quote:
Originally Posted by
hllight
[FONT=Tahoma][FONT=Arial]I moved the create_account.php to the folder as suggested and that did not correct my problem. [/FONT][/FONT]
[FONT=Tahoma][FONT=Arial]The displayed error message: [/FONT][/FONT]
[FONT=Tahoma][FONT=Arial](Parse error: syntax error, unexpected T_CASE in /home/aaadi3/public_html/admin/orders.php on line 195) [/FONT][/FONT]
[FONT=Tahoma][FONT=Arial]is a syntax error detected during php parsing. Such a syntax error must be corrected before a program can run. A syntax error could be wrong or missing punctuation, unrecognizable operators or statements, etc. The resulting code cannot execute. This contribution does not seem to be in a bug free condition.[/FONT][/FONT]
[FONT=Tahoma][FONT=Arial][FONT=Tahoma][FONT=Arial]Is the author of the code available to assist in debugging?[/FONT][/FONT][/FONT][/FONT]
[FONT=Tahoma][FONT=Arial]I use the applezen template and this contribution is not easy to uninstall. Any suggestions?[/FONT][/FONT]
see attached file only when unexpected T_ error.
Re: Can't get "referrals " mod working
Forgive my ignorance but...
There are two orders.php files in the following directories:
\admin
\admin\includes\languages\english
Do both get replaced?
Re: Can't get "referrals " mod working
Quote:
Originally Posted by
importprijs.nl
see attached file only when unexpected T_ error.
I think I finally got it. All errors are gone, I HOPE.
Thank to everyone for your help!!!
Re: Can't get "referrals " mod working
Hello
I was also having this problem in /admin/order.php
I ended up doing the following;
1. Comment out lines 181 - 193
PHP Code:
}
}
if (($action == 'edit') && isset($_GET['oID'])) {
$oID = zen_db_prepare_input($_GET['oID']);
$orders = $db->Execute("select orders_id from " . TABLE_ORDERS . "
where orders_id = '" . (int)$oID . "'");
$order_exists = true;
if ($orders->RecordCount() <= 0) {
$order_exists = false;
$messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST, $oID), 'error');
2. Comment out line 253 as it's a second declaration
PHP Code:
include(DIR_WS_CLASSES . 'order.php');
Hope this helps someone - and if anyone thinks I'm wrong p[lease let me know...
Thanks
Andy
Re: Can't get "referrals " mod working
We tried that too. Now try to create a new account now. I believe you will get a different error at the end of that process.
I will have to check my notes, but I believe putting the create_account.php in its proper location was step one and the second part of my probem was a second occurance of the orders.php file.
Re: Can't get "referrals " mod working
Just wanna thank everyone for their help. Whew! I finally got this mod to work.
Referrals now appear in my Admin, Customers, Referred by and also my Admin, Extras, Referrals. After using winmerge to do a comparison, I noticed my create_account.php files weren't identical. Once I got a match, I uploaded it to my server and everything started working.
Hope this helps someone else. :clap:
Re: Can't get "referrals " mod working
Hip Hip Hooray!
Robbyn,
Do you think you can remember all the steps you took to get the mod to work?
Quote:
Originally Posted by
Robbyn7
Just wanna thank everyone for their help. Whew! I finally got this mod to work.
Referrals now appear in my Admin, Customers, Referred by and also my Admin, Extras, Referrals. After using winmerge to do a comparison, I noticed my create_account.php files weren't identical. Once I got a match, I uploaded it to my server and everything started working.
Hope this helps someone else. :clap:
Re: Can't get "referrals " mod working
Quote:
Originally Posted by
Robbyn7
Just wanna thank everyone for their help. Whew! I finally got this mod to work.
Referrals now appear in my Admin, Customers, Referred by and also my Admin, Extras, Referrals. After using winmerge to do a comparison, I noticed my create_account.php files weren't identical. Once I got a match, I uploaded it to my server and everything started working.
Hope this helps someone else. :clap:
Were you able to get the "other" referral to show the text entered into the "other" textbox on customer signup? When I click the "other" link in admin/extras/referral sources it shows 0 of 0 even though there are 8 "other" referrals.
Also, you mention it appearing in admin/customers/referred by but I don't have anything like that, only 2 links in extras - referrals and referral sources. Have I missed something?
Thanks,
Matt