Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Slant

Archived
  • Posts

    22
  • Joined

  • Last visited

Profile Information

Slant's Achievements

  1. Having had a quick look at it. It seems to take it's date from 'today', so when we reach 2006, then the last date available will change. If the report allows you to select december of this year, it will still only display reports up to tomorrow's date. This appears to be the code you're loking for: sales_report2.php in admin\includes\classes if ($endDate > mktime(0, 0, 0, date("m"), date("d") + 1, date("Y"))) { // set endDate to tomorrow $this->endDate = mktime(0, 0, 0, date("m"), date("d") + 1, date("Y")); } else { $this->endDate = $endDate; } if ($this->endDate < $this->startDate + 24 * 60 * 60) { $this->endDate = $this->startDate + 24 * 60 * 60; Hope that helps.
  2. As a temporary workaround, I modified the tep_mail line, to send it to my store's default email. It's not the perfect Solution, but at least it is functional, until someone can tell me why I keep getting the "Bad header" error. /* tep_mail($admin_email['support_assign_name'], $admin_email['support_assign_email'], EMAIL_SUBJECT_UPDATE .' #' . $ticket_id, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); */ // MY MOD tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT_UPDATE .' #' . $ticket_id, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // MY MOD END If anyone reading this, can help, or suggest anything, please do, as I want to implement this on my live site ASAP. Many thanks, again
  3. Sorry, forgot to say, I'm just trying again, on a new test install
  4. I tried to instal v1d a few months ago, but kept getting page 500 internal server error. My error log shows: malformed header from script. Bad header=No recipient addresses found i: support.php, referer: http://eslant.co.uk/home/support.php?action=new If i comment out the admin email tep_mail line (I don't get any admin emails, but I don't get the error page and it all seems to work fine). I assume it's not constructing the email address correctly, but I'm not sure where... This is the portion of code from support.php (starts around line 94) // now send an email to the default administrator to let them know of new ticket $default_admin_email = tep_db_query("SELECT admin_id FROM " . TABLE_SUPPORT_TICKETS . " where ticket_id = '" . $HTTP_GET_VARS['ticket_id'] . "' and customers_id = '" . $customer_id . "'"); $default_email = tep_db_fetch_array($default_admin_email); $admin_email_query = tep_db_query("SELECT support_assign_email, support_assign_name FROM " . TABLE_SUPPORT_ASSIGN . " where support_assign_id = '" . $default_email['admin_id'] . "' and language_id = '" . $languages_id . "'"); $admin_email = tep_db_fetch_array($admin_email_query); $email_text_admin = EMAIL_TEXT_TICKET_ADMIN; $email_text_admin .= EMAIL_THANKS_ADMIN . EMAIL_TEXT_ADMIN . EMAIL_CONTACT_ADMIN . EMAIL_WARNING_ADMIN; /* tep_mail($admin_email['support_assign_name'], $admin_email['support_assign_email'], EMAIL_SUBJECT_UPDATE .' #' . $ticket_id, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); */ // redirect to confirmation PLEASE PLEASE PLEASE, can someone help. :huh: many thanks :huh:
  5. I've had to restore a back up, for my site, but I'd still really like to know the answers, if anyone can help, as I'm intending to have another shot at it, soon... if at first you don't succeed.... and all that.
  6. I've 'played' a little more and found I only need to coment out the tep_mail line. // now send an email to the default administrator to let them know of new ticket $default_admin_email = tep_db_query("SELECT admin_id FROM " . TABLE_SUPPORT_TICKETS . " where ticket_id = '" . $HTTP_GET_VARS['ticket_id'] . "' and customers_id = '" . $customer_id . "'"); $default_email = tep_db_fetch_array($default_admin_email); $admin_email_query = tep_db_query("SELECT support_assign_email, support_assign_name FROM " . TABLE_SUPPORT_ASSIGN . " where support_assign_id = '" . $default_email['admin_id'] . "' and language_id = '" . $languages_id . "'"); $admin_email = tep_db_fetch_array($admin_email_query); $email_text_admin = EMAIL_TEXT_TICKET_ADMIN; $email_text_admin .= EMAIL_THANKS_ADMIN . EMAIL_TEXT_ADMIN . EMAIL_CONTACT_ADMIN . EMAIL_WARNING_ADMIN; /* tep_mail($admin_email['support_assign_name'], $admin_email['support_assign_email'], EMAIL_SUBJECT_UPDATE .' #' . $ticket_id, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); */ // redirect to confirmation tep_redirect(tep_href_link(FILENAME_SUPPORT . '?action=sent')); } else { $HTTP_GET_VARS['action'] = 'new'; } break; case 'default': tep_redirect(tep_href_link(FILENAME_DEFAULT)); break; } } I've still not sorted the "Results Pages:" anomoly, yet. Not being conversant with PHP or Mysql, I'm stumbling around in the dark, somewhat. Any help will be gratefully received.
  7. I'm just trying to install this contribution (http://www.oscommerce.com/community/contributions,936/) I am running osCommerce 2.2-MS2 on an Apache Server with MySQL v4.1.10 and PHP v4.3.11 After many hours of errors and searching for answers to them, including instances of tep_array_merge, which for my site, at least, should read array-merge, I must admit to being stumped. When I click the 'Submit' button for a new ticket (http://slantdigital.co.uk/shop/support.php?action=new), I am, eventually, taken to an 'Error 500' page. The error log, on the server, reads: [Wed May 25 11:37:50 2005] [error] [client 62.254.0.48] malformed header from script. Bad header=No recipient addresses found i: support.php, referer: http://slantdigital.co.uk/shop/support.php?action=new If I comment out: // now send an email to the default administrator to let them know of new ticket $default_admin_email = tep_db_query("SELECT admin_id FROM " . TABLE_SUPPORT_TICKETS . " where ticket_id = '" . $HTTP_GET_VARS['ticket_id'] . "' and customers_id = '" . $customer_id . "'"); $default_email = tep_db_fetch_array($default_admin_email); $admin_email_query = tep_db_query("SELECT support_assign_email, support_assign_name FROM " . TABLE_SUPPORT_ASSIGN . " where support_assign_id = '" . $default_email['admin_id'] . "' and language_id = '" . $languages_id . "'"); $admin_email = tep_db_fetch_array($admin_email_query); /* $email_text_admin = EMAIL_TEXT_TICKET_ADMIN; $email_text_admin .= EMAIL_THANKS_ADMIN . EMAIL_TEXT_ADMIN . EMAIL_CONTACT_ADMIN . EMAIL_WARNING_ADMIN; tep_mail($admin_email['support_assign_name'], $admin_email['support_assign_email'], EMAIL_SUBJECT_UPDATE .' #' . $ticket_id, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); */ // redirect to confirmation It works fine, except no admin email is sent (obviously). I've checked the admin emails and even created a new admin name & email, which I've set to default. Another issue that I'm having, is: On the same page, at the bottom of my ticket list (which only has 16 tickets, on 1 page) I'm getting: Result Pages: -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 when I should only be getting (I assume): Result Pages: 1 trangely, when I click on one of these negative numbers, it takes me to the new tcket form. Can anyone, please suggest where I may be going wrong. Many thanks.
×
×
  • Create New...