Jump to content

El_Heso

Members
  • Content count

    150
  • Joined

  • Last visited

Everything posted by El_Heso

  1. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    Hi Chris! This is the contribs i have installed PDF datasheet SEO PDF Invoices customer STS sales report Extra info pages manager AJAX orders Editor FAQ System XSell Pricerunner Now i want to install your PDF Invoice Admin But idont get it to work do you think that my contribs destroy the chance of making it work? /Tony
  2. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    Hi Chris! I think i found what the problem is for my admin part. Can it be that i have AJAX Orders Editor installed? AJAX please help me i´m banging my head in the wall :angry: everything works in the shop but when i install the admin part everything fails Regards Tony
  3. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    Hi Chris! one more problem when i put this in admin/languages/svenska.php and english.php define('IMAGE_ORDERS_PDF_INVOICE','Generate PDF Invoice'); This happens when i look in admin Parse error: syntax error, unexpected T_STRING in /usr/www-root/kunder/xxxxx/xxxxx/xxxxxx/www.xxxx.com/admin/includes/languages/svenska.php on line 345 this is line 345 in that file: define('JS_PERSONNUMMER', ''personnr' skall ha minst ' . ENTRY_PERSONNUMMER_MIN_LENGTH . ' siffror.'); this is the admin/languages/svenska.php <?php // look in your $PATH_LOCALE/locale directory for available locales.. // on RedHat6.0 I used 'en_US' // on FreeBSD 4.0 I use 'en_US.ISO_8859-1' // this may not work under win32 environments.. setlocale(LC_TIME, 'en_US.ISO_8859-1'); define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_FORMAT', 'm/d/Y'); // this is used for date() define('PHP_DATE_TIME_FORMAT', 'm/d/Y H:i:s'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); //// // Return date in raw format // $date should be in format mm/dd/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2); } } // Global entries for the <html> tag define('HTML_PARAMS','dir="ltr" lang="sv"'); // charset for web pages and emails define('CHARSET', 'iso-8859-1'); // page title define('TITLE', STORE_NAME); // header text in includes/header.php define('HEADER_TITLE_TOP', 'Administration'); define('HEADER_TITLE_SUPPORT_SITE', 'Support'); define('HEADER_TITLE_ONLINE_CATALOG', 'Onlinekatalog'); define('HEADER_TITLE_ADMINISTRATION', 'Administration'); // text for gender define('MALE', 'Man'); define('FEMALE', 'Kvinna'); // text for date of birth example define('DOB_FORMAT_STRING', 'mm/dd/yyyy'); // configuration box text in includes/boxes/configuration.php define('BOX_HEADING_CONFIGURATION', 'Konfiguration'); define('BOX_CONFIGURATION_MYSTORE', 'Min webshop'); define('BOX_CONFIGURATION_LOGGING', 'Loggning'); define('BOX_CONFIGURATION_CACHE', 'Cache'); // modules box text in includes/boxes/modules.php define('BOX_HEADING_MODULES', 'Moduler'); define('BOX_MODULES_PAYMENT', 'Betalning'); define('BOX_MODULES_SHIPPING', 'Frakt'); define('BOX_MODULES_ORDER_TOTAL', 'Ordertotal'); // categories box text in includes/boxes/catalog.php define('BOX_HEADING_CATALOG', 'Produktkatalog'); define('BOX_CATALOG_CATEGORIES_PRODUCTS', 'Kategorier/Produkter'); define('BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES', 'Produktattribut'); define('BOX_CATALOG_MANUFACTURERS', 'Tillverkare'); define('BOX_CATALOG_REVIEWS', 'Recensioner'); define('BOX_CATALOG_SPECIALS', 'Kampanjer'); define('BOX_CATALOG_PRODUCTS_EXPECTED', 'Förväntas finnas i lager'); // customers box text in includes/boxes/customers.php define('BOX_HEADING_CUSTOMERS', 'Kunder'); define('BOX_CUSTOMERS_CUSTOMERS', 'Kunder'); define('BOX_CUSTOMERS_ORDERS', 'Ordrar'); // taxes box text in includes/boxes/taxes.php define('BOX_HEADING_LOCATION_AND_TAXES', 'Platser / Skatter'); define('BOX_TAXES_COUNTRIES', 'Länder'); define('BOX_TAXES_ZONES', 'Zoner'); define('BOX_TAXES_GEO_ZONES', 'Skattezoner'); define('BOX_TAXES_TAX_CLASSES', 'Skatteklasser'); define('BOX_TAXES_TAX_RATES', 'Skattekurser'); // reports box text in includes/boxes/reports.php define('BOX_HEADING_REPORTS', 'Rapporter'); define('BOX_REPORTS_PRODUCTS_VIEWED', 'Visade produkter'); define('BOX_REPORTS_PRODUCTS_PURCHASED', 'Beställda produkter'); define('BOX_REPORTS_ORDERS_TOTAL', 'Kunders ordertotal'); define('BOX_REPORTS_CREDITS', 'Kundkredit'); define('BOX_REPORTS_CUSTOMERS_ORDERS', 'Kundstatistik'); define('BOX_HEADING_FAQ', 'FAQ System'); define('BOX_FAQ_MANAGER', 'FAQ Manager'); define('BOX_FAQ_VIEW', 'FAQ Visa'); define('BOX_FAQ_VIEW_ALL', 'FAQ Visa alla'); // tools text in includes/boxes/tools.php define('BOX_HEADING_TOOLS', 'Verktyg'); define('BOX_TOOLS_BACKUP', 'Säkerhetskopiera databas'); define('BOX_TOOLS_BANNER_MANAGER', 'Bannerhanteraren'); define('BOX_TOOLS_CACHE', 'Cachekontroll'); define('BOX_TOOLS_DEFINE_LANGUAGE', 'Definera språk'); define('BOX_TOOLS_FILE_MANAGER', 'Filhanteraren'); define('BOX_TOOLS_MAIL', 'Skicka e-post'); define('BOX_TOOLS_NEWSLETTER_MANAGER', 'Nyhetsbrev'); define('BOX_TOOLS_SERVER_INFO', 'Serverinfo'); define('BOX_TOOLS_WHOS_ONLINE', 'Vem är online?'); // localizaion box text in includes/boxes/localization.php define('BOX_HEADING_LOCALIZATION', 'Plats'); define('BOX_LOCALIZATION_CURRENCIES', 'Valutor'); define('BOX_LOCALIZATION_LANGUAGES', 'Språk'); define('BOX_LOCALIZATION_ORDERS_STATUS', 'Orderstatus'); define('BOX_HEADING_SCRIPTS', 'Script'); // javascript messages define('JS_ERROR', 'Det har blivit fel när ditt formulär skulle uppdateras!nGör följande ändringar:nn'); define('JS_OPTIONS_VALUE_PRICE', '* Det nya produktattributet kräver ett prisvärden'); define('JS_OPTIONS_VALUE_PRICE_PREFIX', '* Det nya produktattributet behöver ett prisprefixn'); define('JS_PRODUCTS_NAME', '* Den nya produkten kräver ett namnn'); define('JS_PRODUCTS_DESCRIPTION', '* Den nya produkten kräver en beskrivningn'); define('JS_PRODUCTS_PRICE', '* Den nya produkten kräver ett prisvärden'); define('JS_PRODUCTS_WEIGHT', '* Den nya produkten kräver ett viktvärden'); define('JS_PRODUCTS_QUANTITY', '* Den nya produkten kräver ett antal-värden'); define('JS_PRODUCTS_MODEL', '* Den nya produkten kräver ett modellvärden'); define('JS_PRODUCTS_IMAGE', '* Den nya produkten kräver ett bildvärden'); define('JS_SPECIALS_PRODUCTS_PRICE', '* Ett nytt pris för denna produkt behöver sättasn'); define('JS_GENDER', '* Välj kön.n'); define('JS_FIRST_NAME', '* Förnamnet måste ha minst ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' bokstäver.n'); define('JS_LAST_NAME', '* Efternamnet måste ha minst ' . ENTRY_LAST_NAME_MIN_LENGTH . ' bokstäver.n'); define('JS_DOB', '* Födelsedatum måste vara i formatet: xx/xx/xxxx (månad/datum/år).n'); define('JS_EMAIL_ADDRESS', '* E-postadressen måste ha minst ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . ' bokstäver.n'); define('JS_ADDRESS', '* Adressen måste ha minst ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . ' bokstäver.n'); define('JS_POST_CODE', '* Postnummer måste ha minst ' . ENTRY_POSTCODE_MIN_LENGTH . ' bokstäver.n'); define('JS_CITY', '* Staden måste ha minst ' . ENTRY_CITY_MIN_LENGTH . ' bokstäver.n'); define('JS_STATE', '* Stat-val måste väljas.n'); define('JS_STATE_SELECT', '-- Välj ovan --'); define('JS_ZONE', '* Stat måste väljas från listan för det här landet.'); define('JS_COUNTRY', '* Land måste väljas.n'); define('JS_TELEPHONE', '* Telefonnummer måste ha minst ' . ENTRY_TELEPHONE_MIN_LENGTH . ' bokstäver.n'); define('JS_PASSWORD', '* Lösenord och godkännande måste matcha och ha minst ' . ENTRY_PASSWORD_MIN_LENGTH . ' bokstäver.n'); define('JS_ORDER_DOES_NOT_EXIST', 'Ordernummer %s finns ej!'); define('CATEGORY_PERSONAL', 'Privat'); define('CATEGORY_ADDRESS', 'Adress'); define('CATEGORY_CONTACT', 'Kontakt'); define('CATEGORY_COMPANY', 'Företag'); define('CATEGORY_OPTIONS', 'Egenskaper'); define('ENTRY_GENDER', 'Kön:'); define('ENTRY_GENDER_ERROR', ' <span class="errorText">måste anges</span>'); define('ENTRY_FIRST_NAME', 'Förnamn:'); define('ENTRY_FIRST_NAME_ERROR', ' <span class="errorText">minst ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' bokstäver</span>'); define('ENTRY_LAST_NAME', 'Efternamn:'); define('ENTRY_LAST_NAME_ERROR', ' <span class="errorText">minst ' . ENTRY_LAST_NAME_MIN_LENGTH . ' bokstäver</span>'); define('ENTRY_DATE_OF_BIRTH', 'födelsedatum:'); define('ENTRY_DATE_OF_BIRTH_ERROR', ' <span class="errorText">(exempel. 05/21/1970)</span>'); define('ENTRY_EMAIL_ADDRESS', 'E-postadress:'); define('ENTRY_EMAIL_ADDRESS_ERROR', ' <span class="errorText">minst ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . ' bokstäver</span>'); define('ENTRY_EMAIL_ADDRESS_CHECK_ERROR', ' <span class="errorText">E-postadressen verkar inte vara korrekt!</span>'); define('ENTRY_EMAIL_ADDRESS_ERROR_EXISTS', ' <span class="errorText">Den e-postadress du angivit finns redan!</span>'); define('ENTRY_COMPANY', 'Företagsnamn:'); define('ENTRY_COMPANY_ERROR', ''); define('ENTRY_STREET_ADDRESS', 'Adress:'); define('ENTRY_STREET_ADDRESS_ERROR', ' <span class="errorText">minst ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . ' bokstäver</span>'); define('ENTRY_SUBURB', 'Ort:'); define('ENTRY_SUBURB_ERROR', ''); define('ENTRY_POST_CODE', 'Postnummer:'); define('ENTRY_POST_CODE_ERROR', ' <span class="errorText">minst ' . ENTRY_POSTCODE_MIN_LENGTH . ' bokstäver</span>'); define('ENTRY_CITY', 'Stad:'); define('ENTRY_CITY_ERROR', ' <span class="errorText">minst ' . ENTRY_CITY_MIN_LENGTH . ' bokstäver</span>'); define('ENTRY_STATE', 'Stat:'); define('ENTRY_STATE_ERROR', ' <span class="errorText">krävs</span>'); define('ENTRY_COUNTRY', 'Land:'); define('ENTRY_COUNTRY_ERROR', ''); define('ENTRY_TELEPHONE_NUMBER', 'Telefonnummer:'); define('ENTRY_TELEPHONE_NUMBER_ERROR', ' <span class="errorText">minst ' . ENTRY_TELEPHONE_MIN_LENGTH . ' bokstäver</span>'); define('ENTRY_FAX_NUMBER', 'Faxnummer:'); define('ENTRY_FAX_NUMBER_ERROR', ''); define('ENTRY_NEWSLETTER', 'Nyhetsbrev:'); define('ENTRY_NEWSLETTER_YES', 'Prenumererar'); define('ENTRY_NEWSLETTER_NO', 'Avslutat prenumeration'); define('ENTRY_NEWSLETTER_ERROR', ''); // images define('IMAGE_ANI_SEND_EMAIL', 'Skicka e-post'); define('IMAGE_BACK', 'Bakåt'); define('IMAGE_BACKUP', 'Säkerhetskopiera'); define('IMAGE_CANCEL', 'Avbryt'); define('IMAGE_CONFIRM', 'Gordkänn'); define('IMAGE_COPY', 'Kopiera'); define('IMAGE_COPY_TO', 'Kopiera till'); define('IMAGE_DETAILS', 'Detaljer'); define('IMAGE_DELETE', 'Ta bort'); define('IMAGE_EDIT', 'Ändra'); define('IMAGE_EMAIL', 'E-post'); define('IMAGE_FILE_MANAGER', 'Filhanteraren'); define('IMAGE_ICON_STATUS_GREEN', 'Aktiv'); define('IMAGE_ICON_STATUS_GREEN_LIGHT', 'Välj aktiv'); define('IMAGE_ICON_STATUS_RED', 'Inaktiv'); define('IMAGE_ICON_STATUS_RED_LIGHT', 'Välj inaktiv'); define('IMAGE_ICON_INFO', 'Info'); define('IMAGE_INSERT', 'Sätt in'); define('IMAGE_LOCK', 'Lås'); define('IMAGE_MODULE_INSTALL', 'Installera modul'); define('IMAGE_MODULE_REMOVE', 'Ta bort modul'); define('IMAGE_MOVE', 'Flytta'); define('IMAGE_NEW_BANNER', 'Ny banner'); define('IMAGE_NEW_CATEGORY', 'Ny kategori'); define('IMAGE_NEW_COUNTRY', 'Nytt land'); define('IMAGE_NEW_CURRENCY', 'Ny valuta'); define('IMAGE_NEW_FILE', 'Ny fil'); define('IMAGE_NEW_FOLDER', 'Ny mapp'); define('IMAGE_NEW_LANGUAGE', 'Nytt språk'); define('IMAGE_NEW_NEWSLETTER', 'Nytt nyhetsbrev'); define('IMAGE_NEW_PRODUCT', 'Ny produkt'); define('IMAGE_NEW_TAX_CLASS', 'Ny skatteklass'); define('IMAGE_NEW_TAX_RATE', 'Ny skattekurs'); define('IMAGE_NEW_TAX_ZONE', 'Ny skattezon'); define('IMAGE_NEW_ZONE', 'Ny zon'); define('IMAGE_ORDERS', 'Ordrar'); define('IMAGE_ORDERS_INVOICE', 'Faktura'); define('IMAGE_ORDERS_PACKINGSLIP', 'Följesedel'); define('IMAGE_ORDERS_PDF_INVOICE', 'Generate PDF Invoice'); define('IMAGE_PREVIEW', 'Förhandsgranska'); define('IMAGE_RESTORE', 'Återställ'); define('IMAGE_RESET', 'Återställ'); define('IMAGE_SAVE', 'Spara'); define('IMAGE_SEARCH', 'Sök'); define('IMAGE_SELECT', 'Välj'); define('IMAGE_SEND', 'Skicka'); define('IMAGE_SEND_EMAIL', 'Skicka e-post'); define('IMAGE_UNLOCK', 'Lås upp'); define('IMAGE_UPDATE', 'Uppdatera'); define('IMAGE_UPDATE_CURRENCIES', 'Uppdatera valutakurs'); define('IMAGE_UPLOAD', 'Ladda upp'); define('ICON_CROSS', 'False'); define('ICON_CURRENT_FOLDER', 'Aktuell mapp'); define('ICON_DELETE', 'Ta bort'); define('ICON_ERROR', 'Fel'); define('ICON_FILE', 'Fil'); define('ICON_FILE_DOWNLOAD', 'Ladda hem'); define('ICON_FOLDER', 'Mapp'); define('ICON_LOCKED', 'Låst'); define('ICON_PREVIOUS_LEVEL', 'Föregående nivå'); define('ICON_PREVIEW', 'Förhandsgranska'); define('ICON_STATISTICS', 'Statistik'); define('ICON_SUCCESS', 'Ok'); define('ICON_TICK', 'True'); define('ICON_UNLOCKED', 'Upplåst'); define('ICON_WARNING', 'Varning'); // constants for use in tep_prev_next_display function define('TEXT_RESULT_PAGE', 'Sida %s av %d'); define('TEXT_DISPLAY_NUMBER_OF_BANNERS', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> banners)'); define('TEXT_DISPLAY_NUMBER_OF_COUNTRIES', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> länder)'); define('TEXT_DISPLAY_NUMBER_OF_CUSTOMERS', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> kunder)'); define('TEXT_DISPLAY_NUMBER_OF_CURRENCIES', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> valutor)'); define('TEXT_DISPLAY_NUMBER_OF_LANGUAGES', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> språk)'); define('TEXT_DISPLAY_NUMBER_OF_MANUFACTURERS', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> tillverkare)'); define('TEXT_DISPLAY_NUMBER_OF_NEWSLETTERS', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> nyhetsbrev)'); define('TEXT_DISPLAY_NUMBER_OF_ORDERS', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> ordrar)'); define('TEXT_DISPLAY_NUMBER_OF_ORDERS_STATUS', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> orderstatus)'); define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> produkter)'); define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS_EXPECTED', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> inkommande produkter)'); define('TEXT_DISPLAY_NUMBER_OF_REVIEWS', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> produktrecensioner)'); define('TEXT_DISPLAY_NUMBER_OF_SPECIALS', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> produkter i special)'); define('TEXT_DISPLAY_NUMBER_OF_TAX_CLASSES', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> skatteklasser)'); define('TEXT_DISPLAY_NUMBER_OF_TAX_ZONES', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> skattezoner)'); define('TEXT_DISPLAY_NUMBER_OF_TAX_RATES', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> skattekurser)'); define('TEXT_DISPLAY_NUMBER_OF_ZONES', 'Visar <b>%d</b> till <b>%d</b> (av <b>%d</b> zoner)'); define('PREVNEXT_BUTTON_PREV', '<<'); define('PREVNEXT_BUTTON_NEXT', '>>'); define('TEXT_DEFAULT', 'default'); define('TEXT_SET_DEFAULT', 'Välj som default'); define('TEXT_FIELD_REQUIRED', ' <span class="fieldRequired">* Krävs</span>'); define('ERROR_NO_DEFAULT_CURRENCY_DEFINED', 'Fel: Det finns för närvarande inge valuta som default. Välj någon i: Administration Verktyg->Plats->Valutor'); define('TEXT_CACHE_CATEGORIES', 'Kategoriernas box'); define('TEXT_CACHE_MANUFACTURERS', 'Tillverkarnas box'); define('TEXT_CACHE_ALSO_PURCHASED', 'Också-beställt-modul'); define('TEXT_NONE', '--ingen--'); define('TEXT_TOP', 'Topp'); define('ERROR_DESTINATION_DOES_NOT_EXIST', 'Fel: Destination finns ej.'); define('ERROR_DESTINATION_NOT_WRITEABLE', 'Fel: Destination är ej skrivbar.'); define('ERROR_FILE_NOT_SAVED', 'Fel: Filuppladning ej sparad.'); define('ERROR_FILETYPE_NOT_ALLOWED', 'Fel: Filuppladningstypen är inte tillåten.'); define('SUCCESS_FILE_SAVED_SUCCESSFULLY', 'Ok: Filen sparades.'); define('WARNING_NO_FILE_UPLOADED', 'Varning: Ingen fil uppladddad.'); define('WARNING_FILE_UPLOADS_DISABLED', 'Varning: Filuppladningar är avstängt i php.ini konfigurationsfil. Kontakta din levererantör'); define('BOX_MODULES_STS', 'STS'); define('BOX_CATALOG_FEATURED_PRODUCTS', 'Utvalda produkter'); define('BOX_CATALOG_CATEGORIES_PRODUCTS_MULTI', 'Multiple Products Manager'); define('BOX_TOOLS_SITEMAP', 'Sitemap'); define('IMAGE_EXCLUDE', 'Exkludera'); // ################# Contribution Newsletter v050 ############## // newsletters box text in includes/boxes/newsletters.php //define('HEADING_INFOS_TITLE','Newsletter Management'); //define('HEADING_TITLE','Newsletter'); define('BOX_HEADING_NEWSLETTER', 'Nyhetsbrev'); define('BOX_NEWSLETTER_ADMIN', 'Nyhetsbrev Admin'); define('BOX_NEWSLETTER_EXTRA_INFOS', 'Header/Footer Info'); define('BOX_NEWSLETTER_UPDATE', 'Uppdatera table'); define('BOX_NEWSLETTER_SUBSCRIBERS_UTILITIES', 'Utilities'); define('BOX_NEWSLETTER_SUBSCRIBERS_VIEW', 'Prenumeranter Admin'); define('BOX_NEWSLETTER_EXTRA_DEFAULT', 'Nyhetsbrev Standard'); define('BOX_CUSTOMERS_NEWSLETTER_MANAGER', 'Nyhetsbrev Admin'); define('TABLE_HEADING_EMAIL','E-post'); define('TEXT_UNSUBSCRIBE','Avregistrera: '); // ################# END - Contribution Newsletter v050 ############## // BEGIN latest news define('BOX_CATALOG_LATEST_NEWS', 'Nyheter'); // END latest news define('BOX_CATALOG_XSELL_PRODUCTS', 'Cross Sell Products'); //AJAX Orders Editor define('DIV_ADD_PRODUCT_HEADING', 'Lägg till en produkt'); define('ADD_PRODUCT_SELECT_PRODUCT', 'Namn eller Art.Nr på en produkt:'); define('PRODUCTS_SEARCH_RESULTS', 'Sökresultat: '); define('PRODUCTS_SEARCH_NO_RESULTS', 'Inga resultat.'); define('TEXT_PRODUCT_OPTIONS', 'Alternativ'); define('BOX_TOOLS_PAGE_MANAGER', 'Extra info Pages Manager'); define('TEXT_DISPLAY_NUMBER_OF_PAGES', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> Pages)'); define('BOX_HEADING_FAQ', 'FAQ system'); //FAQ SYSTEM define('BOX_FAQ_MANAGER', 'FAQ manager'); //FAQ SYSTEM define('BOX_FAQ_VIEW', 'FAQ view'); //FAQ SYSTEM define('BOX_FAQ_VIEW_ALL', 'FAQ ALL view'); //FAQ SYSTEM define('ENTRY_PERSONNUMMER', 'Personnr:'); define('JS_PERSONNUMMER', ''personnr' skall ha minst ' . ENTRY_PERSONNUMMER_MIN_LENGTH . ' siffror.'); // summary info v1.1 plugin by conceptlaboratory.com define('TEXT_SUMMARY_INFO_WHOS_ONLINE', 'Besökare Online: %s'); define('TEXT_SUMMARY_INFO_CUSTOMERS', 'Besökare totalt: %s, Idag: %s'); define('TEXT_SUMMARY_INFO_ORDERS', 'Ordrar Status %s, Idag: %s'); define('TEXT_SUMMARY_INFO_REVIEWS', 'Recensioner totalt: %s, Idag: %s'); define('TEXT_SUMMARY_INFO_TICKETS', 'Ticket Status %s'); define('TEXT_SUMMARY_INFO_ORDERS_TOTAL', 'Order Total %s, Idag: %s'); // summary info v1.1 plugin by conceptlaboratory.com eof define('BOX_REPORTS_SALES_REPORT2', 'Sales Report 2'); ?> I dont understand what kind of problem this is so i need help :blush: Regards Tony
  4. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    Hi Chris! I have a problem with the admin part of the contrib i follow the instructions and this happens when i klick on orders in admin: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /usr/www-root/kunder/foretag/xxxx/xxxxxx/www.xxxx.com/admin/orders.php on line 231 this is the line 231 ' <td class="dataTableContent" valign="top" align="right"><a href="java script: updateProduct('' . $oID . '', '' . $order->products[$i]['id'] . '', '', 'eliminate', '', '');"><font color="red"><b>X</b></font></a> <a href="java script: updateProduct('' . $oID . '', '' . $order->products[$i]['id'] . '', 'products_quantity', 'update', '', '' . $order->products[$i]['qty'] . '');"><u>' . $order->products[$i]['qty'] . ' x</u></a></td>' . "n" . this is admin/orders.php <?php require('includes/application_top.php'); $pass_phrase="testartestartestar"; $pass_phrase_hash=md5($pass_phrase); require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); $orders_statuses = array(); $orders_status_array = array(); $orders_status_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . (int)$languages_id . "'"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_statuses[] = array('id' => $orders_status['orders_status_id'], 'text' => $orders_status['orders_status_name']); $orders_status_array[$orders_status['orders_status_id']] = $orders_status['orders_status_name']; } $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); if (tep_not_null($action)) { switch ($action) { case 'update_order': $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); $status = tep_db_prepare_input($HTTP_POST_VARS['status']); $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']); $track_num = tep_db_prepare_input($HTTP_POST_VARS['track_num']); $order_updated = false; //fast easy checkout start $check_status_query = tep_db_query("select customers_name, customers_email_address,customers_id, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'"); $check_status = tep_db_fetch_array($check_status_query); $cust_id = $check_status['customers_id']; //fast easy checkout end if ( ($check_status['orders_status'] != $status) || tep_not_null($comments)) { tep_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int)$oID . "'"); $customer_notified = '0'; if (isset($HTTP_POST_VARS['notify']) && ($HTTP_POST_VARS['notify'] == 'on')) { $notify_comments = ''; if (isset($HTTP_POST_VARS['notify_comments']) && ($HTTP_POST_VARS['notify_comments'] == 'on')) { $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "nn"; } $email = STORE_NAME . "n" . EMAIL_SEPARATOR . "n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "nn" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); if ((isset($HTTP_POST_VARS['notify_tracking']) && ($HTTP_POST_VARS['notify_tracking'] == 'on')) && (tep_not_null($track_num))) { $notify_tracking = sprintf(EMAIL_TEXT_TRACKING_NUMBER) . "n" . URL_TO_TRACK . $track_num . "nn"; } $email = STORE_NAME . "n" . EMAIL_SEPARATOR . "n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "nn" . $notify_tracking . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $customer_notified = '1'; } //tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')"); tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments, track_num) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "', '" . tep_db_input($track_num) . "')"); $order_updated = true; } if ($order_updated == true) { $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success'); } else { $messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning'); } tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=edit')); break; case 'deleteconfirm': $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); tep_remove_order($oID, $HTTP_POST_VARS['restock']); tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')))); break; } } if (($action == 'edit') && isset($HTTP_GET_VARS['oID'])) { $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'"); $order_exists = true; if (!tep_db_num_rows($orders_query)) { $order_exists = false; $messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST, $oID), 'error'); } } require(DIR_WS_CLASSES . 'order.php'); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> <script language="javascript" src="includes/ajax.js"></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <div id="add-Product" class="addProduct"> <div><?php echo DIV_ADD_PRODUCT_HEADING; ?></div> <div id="add-product-product" class="addProductContents"><?php echo ADD_PRODUCT_SELECT_PRODUCT; ?></div> <div id="addProductSearch" class="addProductContentsSearch"><?php require (DIR_WS_INCLUDES . 'advanced_search.php'); ?></div> <div id="addProductFind"> </div> <div id="ProdAttr"> </div> <a href="java script: hideAddProducts();"><?php echo tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/button_cancel.gif'); ?></a></div> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php if (($action == 'edit') && ($order_exists == true)) { $order = new order($oID); ?> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT); ?></td> <td class="pageHeading" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action'))) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td> </tr> </table></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td colspan="3"><?php echo tep_draw_separator(); ?></td> </tr> <tr> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" valign="top"><b><?php echo ENTRY_CUSTOMER; ?></b></td> <td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>', 'customers_', $oID); ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> <td class="main"><b><?php echo ENTRY_TELEPHONE_NUMBER; ?></b></td> <td class="main"><a href="java script: updateOrderField('<?php echo $oID; ?>', 'orders', 'customers_telephone', '<?php echo $order->customer['telephone']; ?>');" class="ajaxLink"><?php echo $order->customer['telephone']; ?></a></td> </tr> <tr> <td class="main"><b><?php echo ENTRY_EMAIL_ADDRESS; ?></b></td> <td class="main"><a href="java script: updateOrderField('<?php echo $oID; ?>', 'orders', 'customers_email_address', '<?php echo $order->customer['email_address']; ?>');" class="ajaxLink"><?php echo $order->customer['email_address'] . '</a>'; ?></td> </tr> </table></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" valign="top"><b><?php echo ENTRY_SHIPPING_ADDRESS; ?></b></td> <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>', 'delivery_', $oID); ?></td> </tr> </table></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" valign="top"><b><?php echo ENTRY_BILLING_ADDRESS; ?></b></td> <td class="main"><?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, '', '<br>', 'billing_', $oID); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td> <td class="main"><a href="java script: updateOrderField('<?php echo $oID; ?>', 'orders', 'payment_method', '<?php echo addslashes($order->info['payment_method']); ?>');" class="ajaxLink"><?php echo $order->info['payment_method']; ?></a></td> </tr> <?php if (tep_not_null($order->info['cc_type']) || tep_not_null($order->info['cc_owner']) || tep_not_null($order->info['cc_number'])) { ?> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><a href="java script: updateOrderField('<?php echo $oID; ?>', 'orders', 'cc_type', '<?php echo $order->info['cc_type']; ?>');" class="ajaxLink"><?php echo ENTRY_CREDIT_CARD_TYPE; ?></a></td> <td class="main"><?php echo $order->info['cc_type']; ?></td> </tr> <tr> <td class="main"><a href="java script: updateOrderField('<?php echo $oID; ?>', 'orders', 'cc_owner', '<?php echo $order->info['cc_owner']; ?>');" class="ajaxLink"><?php echo ENTRY_CREDIT_CARD_OWNER; ?></a></td> <td class="main"><?php echo $order->info['cc_owner']; ?></td> </tr> <tr> <td class="main"><a href="java script: updateOrderField('<?php echo $oID; ?>', 'orders', 'cc_number', '<?php echo $order->info['cc_number']; ?>');" class="ajaxLink"><?php echo ENTRY_CREDIT_CARD_NUMBER; ?></a></td> <td class="main"><?php echo $order->info['cc_number']; ?></td> </tr> <tr> <td class="main"><a href="java script: updateOrderField('<?php echo $oID; ?>', 'orders', 'cc_expires', '<?php echo $order->info['cc_expires']; ?>');" class="ajaxLink"><?php echo ENTRY_CREDIT_CARD_EXPIRES; ?></a></td> <td class="main"><?php echo $order->info['cc_expires']; ?></td> </tr> <?php } ?> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent" colspan="2"><?php echo sprintf(TABLE_HEADING_PRODUCTS, $oID); ?></td> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_INCLUDING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_EXCLUDING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_INCLUDING_TAX; ?></td> </tr> <?php for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { echo ' <tr class="dataTableRow">' . "n" . ' <td class="dataTableContent" valign="top" align="right"><a href="java script: updateProduct('' . $oID . '', '' . $order->products[$i]['id'] . '', '', 'eliminate', '', '');"><font color="red"><b>X</b></font></a> <a href="java script: updateProduct('' . $oID . '', '' . $order->products[$i]['id'] . '', 'products_quantity', 'update', '', '' . $order->products[$i]['qty'] . '');"><u>' . $order->products[$i]['qty'] . ' x</u></a></td>' . "n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name']; if (isset($order->products[$i]['attributes']) && (sizeof($order->products[$i]['attributes']) > 0)) { for ($j = 0, $k = sizeof($order->products[$i]['attributes']); $j < $k; $j++) { echo '<br><nobr><small> <i> - <a href="java script: updateProduct('' . $oID . '', '' . $order->products[$i]['id'] . '', 'options', 'update', '' . $order->products[$i]['attributes'][$j]['option'] . '', '' . $order->products[$i]['attributes'][$j]['value'] . '');"><u>' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value']; if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')'; echo '</u></a></i></small></nobr>'; } } echo ' </td>' . "n" . ' <td class="dataTableContent" valign="top"><a href="java script: updateProduct('' . $oID . '', '' . $order->products[$i]['id'] . '', 'products_model', 'update', '', '' . $order->products[$i]['model'] . '');"><u>' . $order->products[$i]['model'] . '</u></a></td>' . "n" . ' <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "n" . ' <td class="dataTableContent" align="right" valign="top"><b><a href="java script: updateProduct('' . $oID . '', '' . $order->products[$i]['id'] . '', 'products_price_excl', 'update', '', '' . $order->products[$i]['final_price'] . '');"><u>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</u></a></b></td>' . "n" . ' <td class="dataTableContent" align="right" valign="top"><b><a href="java script: updateProduct('' . $oID . '', '' . $order->products[$i]['id'] . '', 'products_price_incl', 'update', '', '' . tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) . '');"><u>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true), true, $order->info['currency'], $order->info['currency_value']) . '</u></a></b></td>' . "n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "n"; echo ' </tr>' . "n"; } ?> <tr> <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2"> <?php for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) { if (($order->totals[$i]['class'] != 'ot_subtotal') && ($order->totals[$i]['class'] != 'ot_total') && ($order->totals[$i]['class'] != 'ot_tax')) { echo ' <tr>' . "n" . ' <td align="right" class="smallText"><a href="java script: updateOrdersTotal('' . $oID . '', '' . $order->totals[$i]['class'] . '', '' . addslashes(htmlspecialchars($order->totals[$i]['title'])) . '', 'title')"><u>' . $order->totals[$i]['title'] . '</u></a></td>' . "n" . ' <td align="right" class="smallText"><a href="java script: updateOrdersTotal('' . $oID . '', '' . $order->totals[$i]['class'] . '', '' . $order->totals[$i]['value'] . '', 'value')"><u>' . $order->totals[$i]['text'] . '</u></a></td>' . "n" . ' </tr>' . "n"; } else { echo ' <tr>' . "n" . ' <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "n" . ' <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "n" . ' </tr>' . "n"; } } //link to create a new order_total echo ' <tr>' . "n" . ' <td align="right" class="smallText" colspan="2"><a href="java script: createOrdersTotal('' . $oID . '')"><u>Lägg till extra rad</u></a></td>' . "n" . ' </tr>' . "n"; ?></table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><table border="1" cellspacing="0" cellpadding="5"> <tr> <td class="smallText" align="center"><b><?php echo TABLE_HEADING_DATE_ADDED; ?></b></td> <td class="smallText" align="center"><b><?php echo TABLE_HEADING_CUSTOMER_NOTIFIED; ?></b></td> <td class="smallText" align="center"><b><?php echo TABLE_HEADING_STATUS; ?></b></td> <td class="smallText" align="center"><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td> <td class="smallText" align="center"><b><?php echo TABLE_HEADING_TRACKING; ?></b></td> </tr> <?php //$orders_history_query = tep_db_query("select orders_status_id, date_added, customer_notified, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added"); $orders_history_query = tep_db_query("select orders_status_id, date_added, customer_notified, comments, track_num from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added"); $tracknumber = ''; if (tep_db_num_rows($orders_history_query)) { while ($orders_history = tep_db_fetch_array($orders_history_query)) { if ($orders_history['track_num']!='') $tracknumber = $orders_history['track_num']; echo ' <tr>' . "n" . ' <td class="smallText" align="center">' . tep_datetime_short($orders_history['date_added']) . '</td>' . "n" . ' <td class="smallText" align="center">'; if ($orders_history['customer_notified'] == '1') { echo tep_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . "</td>n"; } else { echo tep_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . "</td>n"; } echo ' <td class="smallText">' . $orders_status_array[$orders_history['orders_status_id']] . '</td>' . "n" . ' <td class="smallText">' . nl2br(tep_db_output($orders_history['comments'])) . ' </td>' . "n" . ' <td class="smallText">' . ( empty( $orders_history['track_num'] ) ? ' ' : '<a href="' . URL_TO_TRACK . nl2br(tep_output_string_protected(nl2br(tep_db_output($orders_history['track_num'])))) . '" target="_blank">' . nl2br(tep_output_string_protected(nl2br(tep_db_output($orders_history['track_num'])))) . '</a> ') . '</td>' . "n" . ' </tr>' . "n"; } } else { echo ' <tr>' . "n" . ' <td class="smallText" colspan="5">' . TEXT_NO_ORDER_HISTORY . '</td>' . "n" . ' </tr>' . "n"; } ?> </table></td> </tr> <tr> <td class="main"><br><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr><?php echo tep_draw_form('status', FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=update_order'); ?> <td class="main"><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5'); ?></td> </tr> <tr> <td class="main"><br><b><?php echo TABLE_HEADING_TRACKING; ?></b></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> <td class="smallText"><b><?php echo TABLE_HEADING_TRACK; ?></b> <?php echo tep_draw_input_field('track_num', $tracknumber, 'size=/"20/"'); ?> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo ENTRY_STATUS; ?></b> <?php echo tep_draw_pull_down_menu('status', $orders_statuses, $order->info['orders_status']); ?></td> </tr> <tr> <td class="main"><b><?php echo ENTRY_NOTIFY_CUSTOMER; ?></b> <?php echo tep_draw_checkbox_field('notify', '', true); ?></td> <td class="main"><b><?php echo ENTRY_NOTIFY_COMMENTS; ?></b> <?php echo tep_draw_checkbox_field('notify_comments', '', true); ?></td> <td class="main"><b><?php echo ENTRY_NOTIFY_TRACKING; ?></b> <?php echo tep_draw_checkbox_field('notify_tracking', '', true); ?></td> </tr> </table></td> <td valign="top"><?php echo tep_image_submit('button_update.gif', IMAGE_UPDATE); ?></td> </tr> </table></td> </form></tr> <tr> <td colspan="2" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . tep_href_link('../pdfinvoice.php', 'order_id=' . $HTTP_GET_VARS['oID'] . '&passthruID=' . $pass_phrase_hash, 'SSL') . '" TARGET="_blank">' . tep_image_button('button_invoice_pdf.gif', IMAGE_ORDERS_PDF_INVOICE) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action'))) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td> </tr> <?php } else { ?> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT); ?></td> <td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><?php echo tep_draw_form('orders', FILENAME_ORDERS, '', 'get'); ?> <td class="smallText" align="right"><?php echo HEADING_TITLE_SEARCH . ' ' . tep_draw_input_field('oID', '', 'size="12"') . tep_draw_hidden_field('action', 'edit'); ?></td> </form></tr> <tr><?php echo tep_draw_form('status', FILENAME_ORDERS, '', 'get'); ?> <td class="smallText" align="right"><?php echo HEADING_TITLE_STATUS . ' ' . tep_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), '', 'onChange="this.form.submit();"'); ?></td> </form></tr> </table></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CUSTOMERS; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ORDER_TOTAL; ?></td> <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_DATE_PURCHASED; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_STATUS; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td> </tr> <?php if (isset($HTTP_GET_VARS['cID'])) { $cID = tep_db_prepare_input($HTTP_GET_VARS['cID']); $orders_query_raw = "select o.orders_id, o.customers_name, o.customers_id, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id), " . TABLE_ORDERS_STATUS . " s where o.customers_id = '" . (int)$cID . "' and o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and ot.class = 'ot_total' order by orders_id DESC"; } elseif (isset($HTTP_GET_VARS['status'])) { $status = tep_db_prepare_input($HTTP_GET_VARS['status']); $orders_query_raw = "select o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id), " . TABLE_ORDERS_STATUS . " s where o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and s.orders_status_id = '" . (int)$status . "' and ot.class = 'ot_total' order by o.orders_id DESC"; } else { $orders_query_raw = "select o.orders_id, o.customers_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id), " . TABLE_ORDERS_STATUS . " s where o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and ot.class = 'ot_total' order by o.orders_id DESC"; } $orders_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $orders_query_raw, $orders_query_numrows); $orders_query = tep_db_query($orders_query_raw); while ($orders = tep_db_fetch_array($orders_query)) { if ((!isset($HTTP_GET_VARS['oID']) || (isset($HTTP_GET_VARS['oID']) && ($HTTP_GET_VARS['oID'] == $orders['orders_id']))) && !isset($oInfo)) { $oInfo = new objectInfo($orders); } if (isset($oInfo) && is_object($oInfo) && ($orders['orders_id'] == $oInfo->orders_id)) { echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . ''">' . "n"; } else { echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID')) . 'oID=' . $orders['orders_id']) . ''">' . "n"; } ?> <td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $orders['orders_id'] . '&action=edit') . '">' . tep_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a> ' . ( $orders['customers_id']=='0' ? '** ' : '') . $orders['customers_name']; ?></td> <td class="dataTableContent" align="right"><?php echo strip_tags($orders['order_total']); ?></td> <td class="dataTableContent" align="center"><?php echo tep_datetime_short($orders['date_purchased']); ?></td> <td class="dataTableContent" align="right"><?php echo $orders['orders_status_name']; ?></td> <td class="dataTableContent" align="right"><?php if (isset($oInfo) && is_object($oInfo) && ($orders['orders_id'] == $oInfo->orders_id)) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID')) . 'oID=' . $orders['orders_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td> </tr> <?php } ?> <tr> <td colspan="5"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText" valign="top"><?php echo $orders_split->display_count($orders_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_ORDERS); ?></td> <td class="smallText" align="right"><?php echo $orders_split->display_links($orders_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'oID', 'action'))); ?></td> </tr> </table></td> </tr> </table></td> <?php $heading = array(); $contents = array(); switch ($action) { case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ORDER . '</b>'); $contents = array('form' => tep_draw_form('orders', FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br><br><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>'); $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (isset($oInfo) && is_object($oInfo)) { $heading[] = array('text' => '<b>[' . $oInfo->orders_id . '] ' . tep_datetime_short($oInfo->date_purchased) . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . tep_href_link('../pdfinvoice.php', 'order_id=' . $oInfo->orders_id . '&passthruID=' . $pass_phrase_hash, 'SSL') . '" TARGET="_blank">' . tep_image_button('button_invoice_pdf.gif', IMAGE_ORDERS_PDF_INVOICE) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a>'); $contents[] = array('text' => '<br>' . TEXT_DATE_ORDER_CREATED . ' ' . tep_date_short($oInfo->date_purchased)); if (tep_not_null($oInfo->last_modified)) $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . tep_date_short($oInfo->last_modified)); $contents[] = array('text' => '<br>' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method); } break; } if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) { echo ' <td width="25%" valign="top">' . "n"; $box = new box; echo $box->infoBox($heading, $contents); echo ' </td>' . "n"; } ?> </tr> </table></td> </tr> <?php } ?> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> any idea how i can fix this? Regards Tony
  5. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    Hi Chris! I fixed all my problem. Thanks for all the effort anyway B) /Tony
  6. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    I find in orders.php that the separator say "n" not "/n" but i dont know what contribution needs that but can i change something in your contribution so it can reed n insteed of /n or do you have any idea how i can fix this Regards Tony
  7. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    The download of the file dont work!!! Regards Tony
  8. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    shouldn´t it be customer_address? or is it store_name_address? Regards Tony
  9. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    really dont know! but can i use the strip_tags? for that problem?
  10. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    how can i chance the color in the invoice example: chance the red color to black? Regards Tony
  11. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    How do i fix my fonts at the status text? i want it to be like yours. but my is bold and large i want it to be small and only the real status to be large like yours? Regards Tony
  12. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    Thanks Chris! that fixed it, but i have other problems like this on invoice: Invoice to: Test1 Test1 nTest10n13333 HaningenSverige should say like this: Invoice to: Test1 Test1 Test10 13333 Haninge Sverige any idea how to fix it like you see it puts n before Test10 and 13333 and Sverige also it put´s them together Regards Tony
  13. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    Hi Cris! How can i get the <B> in payment method to go away? now it look like this on the invoice: Payment Method: <B> Förskottsbetalning /Tony
  14. El_Heso

    [CONTRIBUTION] PDF Customer Invoice

    Hi Chris! I wonder how i can use your contribution without having it on account_history_info i would like it to be on checkout_success beacuse a lot of my customer dont sign up a account any idea how i should code that? Regards Tony
  15. El_Heso

    Info button

    Hi! I wonder how i can make a info button beside the buy button in the product listing? regards Tony
  16. I have fixed it Regards Tony
  17. Hi! i have a problem, whats should i write in the /includes/modules/sts/sts_index.php if i want to change template for each category i know i need to make some templates and name them by the category but what should i write in the sts_index.php file? i need to list the pages but how? ( List the files to include when displaying “index.php”, separated by semicolons. Those files must be located in “catalog/includes/modules/sts_inc” folder and generally contains code to build extra placeholders. ) 2. Check for category specific templates, based on the category ID. (Example below with category 33, located in category 22, located in category 11) 2.1 Use index.php_11_22_33.html if exists. hope someone have a tip for me beacuse i dont get it where or what i should write /Tony
  18. El_Heso

    [Contribution] STS v4

    Thank you! I finally got it in my head :blush: Now its working :thumbsup:
  19. El_Heso

    [Contribution] STS v4

    Hi! and how do i named them correctly in the file? example i have a template for the category 27 i named that page to index.php_27.html is that correctly? and how would STS find that i mean that this page would be used if they click on category 27 Dont i need to write in the /includes/modules/sts/sts_index.php that this page exists? Regards Tony
  20. El_Heso

    [Contribution] STS v4

    Hi! i have a problem, whats should i write in the /includes/modules/sts/sts_index.php if i want to change template for each category i know i need to make some templates and name them by the category but what should i write in the sts_index.php file? i need to list the pages but how? ( List the files to include when displaying “index.php”, separated by semicolons. Those files must be located in “catalog/includes/modules/sts_inc” folder and generally contains code to build extra placeholders. ) 2. Check for category specific templates, based on the category ID. (Example below with category 33, located in category 22, located in category 11) 2.1 Use index.php_11_22_33.html if exists. hope someone have a tip for me beacuse i dont get it where or what i should write /Tony
  21. El_Heso

    Problems checkout_process

    Hi! anyone know what i can do? message: Fatal error: Cannot redeclare class smtp in C:\wamp\www\catalog\includes\classes\class.smtp.inc on line 12 Regards Tony
  22. El_Heso

    ONLY Bill in payment

    Hi! Can someone tell me how i can fix osCommerce payment to Only Bill? Regards Tony
×