Jump to content

YePix

Members
  • Content count

    311
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by YePix

  1. YePix

    QTPro BS

    again without proper function. always the duplicate entries I do not get it
  2. YePix

    QTPro BS

    why does it work with $HTTP_POST_VARS $cart->add_cart($_POST['products_id'], $cart->get_quantity(tep_get_uprid($_POST['products_id'], $attributes))+ $HTTP_POST_VARS['cart_quantity'], $attributes); and not with $_POST $cart->add_cart($_POST['products_id'], $cart->get_quantity(tep_get_uprid($_POST['products_id'], $attributes))+ $_POST['cart_quantity'], $attributes);
  3. YePix

    QTPro BS

    hello Rainer, what can it be that products from product_info are placed twice in the shopping cart? I mean, the quantity field. // customer adds a product from the products page case 'add_product' : if (isset($_POST['products_id']) && is_numeric($_POST['products_id'])) { //++++ QT Pro: Begin Changed code $attributes=array(); if (isset($_POST['attrcomb']) && (preg_match("/^\d{1,10}-\d{1,10}(,\d{1,10}-\d{1,10})*$/",$_POST['attrcomb']))) { $attrlist=explode(',',$_POST['attrcomb']); foreach ($attrlist as $attr) { list($oid, $oval)=explode('-',$attr); if (is_numeric($oid) && $oid==(int)$oid && is_numeric($oval) && $oval==(int)$oval) $attributes[$oid]=$oval; } } if (isset($_POST['id']) && is_array($_POST['id'])) { foreach ($_POST['id'] as $key=>$val) { if (is_numeric($key) && $key==(int)$key && is_numeric($val) && $val==(int)$val) $attributes=$attributes + $_POST['id']; } } $cart->add_cart($_POST['products_id'], $cart->get_quantity(tep_get_uprid($_POST['products_id'], $attributes)) + $_POST['cart_quantity'], $attributes); //++++ QT Pro: End Changed Code } $messageStack->add_session('product_action', sprintf(PRODUCT_ADDED, tep_get_products_name((int)$_POST['products_id'])), 'success'); tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break;
  4. YePix

    Angabe der Lieferzeiten

    in product_info.php hat sich ein Fehler eingeschlichen. Dieses einfügen: <?php if (SHOW_PRODUCTS_SHIPPING_TIME_ON == 'true') { if ( (tep_session_is_registered('customer_id') == true) || ($id != $customer_id) ) { $c__heimatland = $customer_country_id; list($lieferdatum_von,$lieferdatum_bis) = get_lieferzeitraum($c__heimatland); $pls_shippingtime = '<span class="pls_basePrice">' . TEXT_LIEFERUNG_PI . $lieferdatum_von . "-" . $lieferdatum_bis . '</span><br>'; echo $pls_shippingtime; }else{ $pls_shippingtime = '<span class="pls_basePrice">' . TEXT_SHIPPINGTIME_LOGIN . '</span><br>'; echo $pls_shippingtime; } }?>
  5. YePix

    Angabe der Lieferzeiten

    Mit besonderem Dank an @Tsimi SQL-Anweisung INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES ('41', 'Angabe Lieferzeiten', 'Definieren Sie die Angaben der Lieferzeiten für Deutschland in Tagen. Standard von [3 Tage] bis [7 Tage] Ausserhalb Deutschland [5 Tage] bis [10 Tage]', NULL, '1'); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('Angabe der Lieferzeiten freischalten ?', 'SHOW_PRODUCTS_SHIPPING_TIME_ON', 'true', 'Soll die Angabe der Lieferzeiten bei den Produktdetails freigeschalten werden ?', '41', '1', now(), NULL , 'tep_cfg_select_option(array(\'true\', \'false\'),'); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) VALUES ('Lieferangabe innerhalb Deutschland von [x] Tagen', 'INFOTEXT_SHIPPING_TIME_OF', '3', 'Lieferangabe innerhalb Deutschland in Tagen. Standard: [zwischen 3] und ...', '41', '10', now(), now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) VALUES ('Lieferangabe innerhalb Deutschland bis [x] Tagen', 'INFOTEXT_SHIPPING_TIME_TO', '7', 'Lieferangabe innerhalb Deutschland in Tagen. Standard: zwischen ... [und 7 Tagen]', '41', '11', now(), now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) VALUES ('Lieferangabe ausserhalb Deutschland von [x] Tagen', 'INFOTEXT_SHIP_TIME_OF_W', '5', 'Lieferangabe ausserhalb Deutschland in Tagen. Standard: [zwischen 5] und ...', '41', '12', now(), now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) VALUES ('Lieferangabe ausserhalb Deutschland bis [x] Tagen', 'INFOTEXT_SHIP_TIME_TO_W', '10', 'Lieferangabe ausserhalb Deutschland in Tagen. Standard: zwischen ... [und 10 Tagen]', '41', '13', now(), now()); product_info.php einfügen unterhalb vom letzten query tag ?>: <?php if ( (tep_session_is_registered('customer_id') == true) || ($id != $customer_id) ) { $c__heimatland = $customer_country_id; list($lieferdatum_von,$lieferdatum_bis) = get_lieferzeitraum($c__heimatland); $pls_shippingtime = '<span class="pls_basePrice">' . TEXT_LIEFERUNG_PI . $lieferdatum_von . "-" . $lieferdatum_bis . '</span><br>'; echo $pls_shippingtime; }else{ $pls_shippingtime = '<span class="pls_basePrice">' . TEXT_SHIPPINGTIME_LOGIN . '</span><br>'; echo $pls_shippingtime; }?> einfügen an gewünschter Stelle: <?php echo $pls_shippingtime;?> einfügen in german.php: define('TEXT_LIEFERUNG_PI', 'Lieferung bei heutiger Zahlung: '); define('TEXT_SHIPPINGTIME_LOGIN', 'Bitte einloggen für Lieferangaben. '); einfügen in english.php: define('TEXT_LIEFERUNG_PI', 'Delivery by todays payment: '); define('TEXT_SHIPPINGTIME_LOGIN', 'Login for delivery info. '); catalog/includes/functions/general.php einfügen vor dem letztem tag ?>: // Lieferzeiten start function get_lieferzeitraum($yp_ausland) { // Die Routine geht von 3 Tagen für Lieferdatum_von und 5 Tagen Lieferdatum bis aus. Sollten andere Werte benötigt werden, // // dann die Konstanten c__von und c__bis ändern // // Konstanten Inland $c__von_i = INFOTEXT_SHIPPING_TIME_OF; // Lieferdatum von in Tagen // $c__bis_i = INFOTEXT_SHIPPING_TIME_TO; // Lieferdatum bis in Tagen // $c__heimatland = 81 ; // 81 = Deutschland oder z.B. 14 für Österreich// // wie bereits erwähnt, findet man die Zahlu in der Datenbank // Konstanten Ausland $c__von_a = INFOTEXT_SHIP_TIME_OF_W; // Lieferdatum von in Tagen // $c__bis_a = INFOTEXT_SHIP_TIME_TO_W; // Lieferdatum bis in Tagen // if ($yp_ausland == $c__heimatland) { // es ist Deutschland // $c__von = $c__von_i; $c__bis = $c__bis_i; } else { $c__von = $c__von_a; $c__bis = $c__bis_a; } $y_von_day = $c__von . ' day'; $lieferdatum_von = strtotime(" . $y_von_day . "); $wochentag_von = strftime("%u",$lieferdatum_von); $y_dazu = 0; if ($wochentag_von == 0) { // es ist ein Sonntag => +1 Tag dazu // $y_dazu = 1; } elseif ($wochentag_von == 6) { // es ist ein Samstag => +2 Tage dazu // $y_dazu = 2; } $y_von_neu = $c__von + $y_dazu; $y_von_neu_day = $y_von_neu . ' day'; $lieferdatum_von = strtotime(" . $y_von_neu_day . "); // Wenn das "Lieferdatum von" schon ein Wochenende war, dann die Anzahl der zu verschiebenen Tage auf das "Lieferdatum bis" hinzuaddieren // $y_bis_start = $c__bis + $y_dazu; $y_bis_day = $y_bis_start . ' day'; $lieferdatum_bis = strtotime(" . $y_bis_day . "); // Überprüfen, ob das "Lieferdatum bis" auf ein Wochenende fällt // $wochentag_bis = strftime("%u",$lieferdatum_bis); $y_dazu=0; if ($wochentag_bis == 0) { // es ist ein Sonntag => +1 Tag dazu // $y_dazu = 1; } elseif ($wochentag_bis == 6) { // es ist ein Samstag => +2 Tage dazu // $y_dazu = 2; } $y_bis_neu = $y_bis_start + $y_dazu; $y_bis_neu_day = $y_bis_neu . ' day'; $lieferdatum_bis = strtotime(" . $y_bis_neu_day . "); $lieferdatum_von = date('d.m.',$lieferdatum_von); $lieferdatum_bis = date('d.m.',$lieferdatum_bis) ; return array($lieferdatum_von, $lieferdatum_bis) ; } // Lieferzeiten ende
  6. YePix

    QTPro BS

    If attributes are created and the stock is linked to a main product, the Inventory table is displayed on the product info page. If I now delete the attributes again, the table with option name and stock 10 still exists. Only when I delete the main product is the table removed.
  7. YePix

    QTPro BS

    has done it was up to: $currencies->display_attribute_price
  8. YePix

    QTPro BS

    only if the attributes are deleted the inventory of the attributes remains
  9. YePix

    QTPro BS

    since today is the price at qtpro not updated when attributes are selected? do you have an advice for me
  10. YePix

    PHP 7.2.

    Soweit ich weiss, nein. Nimm eine bei den addons und ergänze diese. Die module selbst kannst du kopieren und übersetze sie
  11. YePix

    QTPro BS

    if the attributes are deleted, the stock remains the same and will not be deleted. Did I miss something?
  12. YePix

    QTPro BS

    Hello Rainer, is there a compatible easypopulate for qt-pro?
  13. YePix

    QTPro BS

    ok, i had the button in a <div> everything works fine
  14. YePix

    QTPro BS

    Hi guys, what can it be, if QT-Pro is turned on and a product has attributes the buy button on the smartphone does not react in some browsers?
  15. YePix

    Shopbreite

    Du kannst alles abändern was du möchtest. Die Farben findest du in den entsprechenden .css Dateien. Aber wie gesagt, Nicht das Layout ist wichtig sondern die EU Vorgaben und Gesetze an die du dich halten solltest bevor dein Shop On-Line geht.
  16. returns_configuration.php row 370, 371 reset($orders_status_id); while (list(, $value) = each($orders_status_id)) { change: // reset($orders_status_id); // while (list(, $value) = each($orders_status_id)) { foreach ($orders_status_id as $value) {
  17. YePix

    Shopbreite

    Hi, schau mal in die 960gs und die jquery ordner. je nachdem welche css bei dir verbunden sind. Anschliessend den header entsprechend anpassen. Ist schon etwas Sucherei und Fummelarbeit um die Breite an zu passen.
  18. YePix

    PHP 7.2.

    Schau mal hier https://github.com/gburton/Responsive-osCommerce
  19. catalog/saved_data.php <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com ****************************************************************** saved_data.php - DSGVO http://pl-systeme.de TIPS & TRICKS FOR osCommerce 2.3.xx under: https://www.pl-systeme.de/surfcms.php?pg=1 2.3.4-1 Demoshop: https://www.pl-systeme.de/product_info.php?cPath=23&products_id=1 Bootstrap-Responsive Demoshop: https://www.pl-systeme.de/product_info.php?cPath=24&products_id=2 ****************************************************************** Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DSGVO); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_DSGVO)); $pls_countries_query = tep_db_query("select ci.customers_id as customers_id, countries_id, countries_name from " . TABLE_CUSTOMERS . " ci, " . TABLE_COUNTRIES . " where customers_id = '" . (int)$customer_id . "'"); $countries = tep_db_fetch_array($pls_countries_query); $pls_reviews_query = tep_db_query("select count(*) as number_of_reviews from " . TABLE_REVIEWS . " where customers_id = '" . (int)$customer_id . "'"); $reviews = tep_db_fetch_array($pls_reviews_query); $pls_orders_query = tep_db_query("select count(*) as number_of_orders from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "'"); $orders = tep_db_fetch_array($pls_orders_query); $pls_basket_query = tep_db_query("select b.products_id, b.customers_basket_quantity, b.customers_basket_date_added, p.products_model, pd.products_name from customers_basket b left join products p on b.products_id = p.products_id left join products_description pd on b.products_id = pd.products_id where customers_id = '" . (int)$customer_id . "'"); $pls_account_query = tep_db_query("select customers_email_address, customers_telephone, customers_fax, customers_newsletter, customers_dob from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); $account = tep_db_fetch_array($pls_account_query); $newsletter = $account['customers_newsletter']; if ($newsletter == '1') { $newsletter_text = ENTRY_NEWSLETTER_YES; } else { $newsletter_text = ENTRY_NEWSLETTER_NO; } $pls_customers_info_query = tep_db_query("select customers_info_id, customers_info_date_of_last_logon, customers_info_number_of_logons, customers_info_date_account_created, customers_info_date_account_last_modified, global_product_notifications from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "'"); $customers_info = tep_db_fetch_array($pls_customers_info_query); $notifications = $customers_info['global_product_notifications']; if ($notifications == '1') { $notifications_text = ENTRY_NOTIFICATIONS_YES; } else { $notifications_text = ENTRY_NOTIFICATIONS_NO; } $pls_anrede_gender_query = tep_db_query("SELECT customers_gender FROM " . TABLE_CUSTOMERS . " WHERE customers_id = '" . $customer_id . "'"); $pls_anrede_gender = tep_db_fetch_array($pls_anrede_gender_query); $gender = $pls_anrede_gender['customers_gender']; if ($gender == 'm') { $gender_text = MALE; } else { $gender_text = FEMALE; } $pls_tax_info_query = tep_db_query("SELECT products_id, products_tax_class_id FROM " . TABLE_PRODUCTS . " WHERE products_status = '1' and products_id = '" . (int)$_GET['products_id'] ."'"); $pls_tax_info = tep_db_fetch_array($pls_tax_info_query); $taxinfo = $pls_tax_info['products_tax_class_id']; if (DISPLAY_PRICE_WITH_TAX == 'true') { $taxinfo_text = TAX_INFO; } else { $taxinfo_text = TAX_INFO_OFF; } HEADING_IPRECORDED_1; $ip_iprecorded = YOUR_IP_IPRECORDED; $isp_iprecorded = YOUR_ISP_IPRECORDED; $ip = $_SERVER["REMOTE_ADDR"]; $client = gethostbyaddr($_SERVER["REMOTE_ADDR"]); $str = preg_split("/\./", $client); $i = count($str); $x = $i - 1; $n = $i - 2; $isp = $str[$n] . "." . $str[$x]; $pls_separator = '<br><img src="images/separator_pixel.gif" alt="" height="1" width="100%" align="middle" border="0" />'; $pls_separator_no_break = '<img src="images/separator_pixel.gif" alt="" height="1" width="100%" align="middle" border="0" />'; require(DIR_WS_INCLUDES . 'template_top.php'); ?> <script type="text/javascript" language="javascript"> function printPage() { if (window.print) { jetztdrucken = confirm('Seite drucken ?'); if (jetztdrucken) window.print(); } } </script> <div class="pls_alert-SiteContainer"> <div class="pls_CartModuleHtgr"><div class="pls_margin"> <?php echo TEXT_GDPR; ?> </div></div> <div class="page-header pls_margin"> <h3><?php echo HEADING_TITLE; ?></h3> </div> <div class="pls_margin pls_panel"> <?php $addresses_query = tep_db_query("select address_book_id, customers_id, entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' order by firstname, lastname"); $addresses = tep_db_fetch_array($addresses_query); echo '<h3>' . CATEGORY_PERSONAL . '</h3><br>' . ENTRY_GENDER . '&nbsp;' . $gender_text . $pls_separator . ENTRY_FIRST_NAME_TEXT . '&nbsp;' . stripslashes($addresses['firstname'] . $pls_separator . ENTRY_LAST_NAME_TEXT . '&nbsp;' . $addresses['lastname'] . $pls_separator . ENTRY_DATE_OF_BIRTH . '&nbsp;' . tep_date_long ($account['customers_dob']) . $pls_separator . TEXT_CUSTOMMER_NR . '&nbsp;' . stripslashes($countries['customers_id']) . $pls_separator . ENTRY_STREET_ADDRESS_TEXT . '&nbsp;' . $addresses['street_address'] . $pls_separator . ENTRY_POST_CODE_TEXT . '&nbsp;/&nbsp;' . ENTRY_CITY_TEXT . '&nbsp;' . $addresses['postcode'] . '&nbsp;' . $addresses['city'] . $pls_separator . ENTRY_COUNTRY . '&nbsp;' . $countries['countries_name'] . $pls_separator . ENTRY_STATE . '&nbsp;' . $addresses['entry_state']) . $pls_separator . '';?><br> </div><div class="pls_margin pls_panel"> <?php echo '<h3>' . CATEGORY_CONTACT . '</h3><br>' . ENTRY_EMAIL_ADDRESS . '&nbsp;' . stripslashes($account['customers_email_address']) . $pls_separator . ENTRY_TELEPHONE_NUMBER . '&nbsp;' . stripslashes($account['customers_telephone']) . $pls_separator . ENTRY_FAX_NUMBER . '&nbsp;' . stripslashes($account['customers_fax']) . $pls_separator . ENTRY_COMPANY . '&nbsp;' . stripslashes($addresses['entry_company']) . $pls_separator . '';?><br> </div><div class="pls_margin pls_panel"> <?php echo '<h3>' . CATEGORY_SITEINFO . '</h3><br>' . ENTRY_NEWSLETTER . '&nbsp;' . $newsletter_text . $pls_separator . ENTRY_TEXT_TOTAL_NOTIFICATIONS . '&nbsp;' . $notifications_text . $pls_separator . ENTRY_TEXT_ACCOUNT_CREATED . '&nbsp;' . tep_date_long ($customers_info['customers_info_date_account_created']) . $pls_separator . ENTRY_TEXT_AGREED_CONDITIONS . '&nbsp;' . tep_date_long ($customers_info['customers_info_date_account_created']) . '&nbsp;' . TIME_FORMAT_TEXT_WHAT . '&nbsp;' . tep_time_long ($customers_info['customers_info_date_account_created']) . '&nbsp;' . TIME_FORMAT_TEXT_CLOCK . $pls_separator . ENTRY_TEXT_ACCOUNT_LAST_MODIFIED . '&nbsp;' . tep_date_long ($customers_info['customers_info_date_account_last_modified']) . '&nbsp;' . TIME_FORMAT_TEXT_WHAT . '&nbsp;' . tep_time_short ($customers_info['customers_info_date_account_last_modified']) . '&nbsp;' . TIME_FORMAT_TEXT_CLOCK . $pls_separator . ENTRY_TEXT_LAST_LOGIN . '&nbsp;' . tep_date_long ($customers_info['customers_info_date_of_last_logon']) . $pls_separator . ENTRY_TEXT_LOGIN_TOTAL . '&nbsp;' . $customers_info['customers_info_number_of_logons'] . $pls_separator . ENTRY_TEXT_REVIEWS_TOTAL . '&nbsp;' . $reviews['number_of_reviews'] . $pls_separator . '';?> <?php echo ENTRY_TEXT_ORDERS_TOTAL . '&nbsp;' . $orders['number_of_orders'] . '<br><br>';?> <?php echo $pls_separator_no_break;?> </div><div class="pls_margin pls_panel"> <?php echo '<h3>' . CATEGORY_TEMPORERY . '</h3><br>';?> <?php echo TEXT_CUSTOMMER_IP . '&nbsp;' . $ip_iprecorded . ': ' . $ip . '&nbsp; <font color="#d10000"><strong>|</strong></font> &nbsp;' . $isp_iprecorded . ': ' . $client . $pls_separator;?> <?php if ($cart->count_contents() > 0) { echo '<br><br>' . ENTRY_TEXT_CART_TOTAL . '&nbsp;' . $cart->count_contents() . '&nbsp;' . ENTRY_TEXT_CART_PRODUCTS . '&nbsp;' . $currencies->format($cart->show_total()) . $taxinfo_text . '<br><br>'; while ( $basket = tep_db_fetch_array($pls_basket_query)){ echo $basket['customers_basket_quantity'] . ' x ' . $basket['products_name'] . '<br>';} }else{ echo TEXT_NO_ITEMS_IN_CART; }?> </div> <div class="noprint"> <div class="pls_margin pls_panel"> <div class="buttonSet"><div align="center"> <?php echo tep_draw_button(IMAGE_BUTTON_VIEW_ACCOUNT, 'fa fa-vcard-o', tep_href_link(FILENAME_ACCOUNT));?> </div></div> <br> <div class="buttonSet"><div align="center"> <a href="javascript:printPage()"><?php echo tep_draw_button(IMAGE_BUTTON_PRINT_PAGE, 'fa fa-print', null, null, "Print", 'btn-reviews btn-block btn-lg');?> </div></div> </div> </div> </div> <p> <?php require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> ************************************************* catalog/includes/languages/german/saved_data.php <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com ****************************************************************** saved_data.php - DSGVO http://pl-systeme.de TIPS & TRICKS FOR osCommerce 2.3.xx under: https://www.pl-systeme.de/surfcms.php?pg=1 2.3.4-1 Demoshop: https://www.pl-systeme.de/product_info.php?cPath=23&products_id=1 Bootstrap-Responsive Demoshop: https://www.pl-systeme.de/product_info.php?cPath=24&products_id=2 ****************************************************************** Copyright (c) 2010 osCommerce Released under the GNU General Public License */ define('HEADING_TITLE', 'Ihre bei uns gespeicherten Daten'); define('NAVBAR_TITLE', 'GDPR'); define('TEXT_CUSTOMMER_IP', 'Ihre IP-Adresse:'); define('TEXT_CUSTOMMER_IP_NO_SAVE', 'IP wird zur Zeit nicht gespeichert:'); define('CATEGORY_SITEINFO', 'Ihre Systeminformationen'); define('ENTRY_TEXT_ACCOUNT_CREATED', 'Kundenkonto eröffnet am:'); define('ENTRY_TEXT_AGREED_CONDITIONS', 'Kontoeröffnung mit Bestätigung von Datenschutz, Widerruf und AGB am:'); define('ENTRY_TEXT_LAST_AGREED_WITHDRAWAL', 'Letzte Widerrufsnutzung mit Widerrufsbelehrung am:'); define('ENTRY_TEXT_ACCOUNT_LAST_MODIFIED', 'Letzte Änderung Ihrer Kontodaten am:'); define('ENTRY_TEXT_LAST_LOGIN', 'Ihre letzte Anmeldung:'); define('ENTRY_TEXT_LOGIN_TOTAL', 'Anmeldungen total:'); define('ENTRY_TEXT_REVIEWS_TOTAL', 'Ihre geschriebenen Bewertungen:'); define('ENTRY_TEXT_ORDERS_TOTAL', 'Anzahl Ihrer bisherigen Bestellungen:'); define('ENTRY_TEXT_POINTS_TOTAL', 'Anzahl Ihrer Bonuspunkte:'); define('ENTRY_TEXT_POINTS_EXPIRES', 'Ablaufdatum:'); define('CATEGORY_TEMPORERY', 'Vorübergehend gespeichert'); define('ENTRY_TEXT_CART_TOTAL', 'Ihr Warenkorb:'); define('ENTRY_TEXT_CART_PRODUCTS', 'Artikel, im Gesamtwert von:'); define('TEXT_NO_ITEMS_IN_CART', 'Ihr Warenkorb ist leer'); define('ENTRY_TEXT_WISHLIST_TOTAL', 'Ihre Merkliste:'); define('ENTRY_TEXT_WISHLIST_PRODUCTS', 'Artikel, im Gesamtwert von:'); define('TEXT_WISHLIST_NO_ITEMS', 'Ihre Merkliste ist leer'); define('ENTRY_TEXT_TOTAL_NOTIFICATIONS', 'Produktnews:'); define('ENTRY_NOTIFICATIONS_YES', 'Abboniert'); define('ENTRY_NOTIFICATIONS_NO', 'Nicht abboniert'); define('SAVED_DATA_TEXT_MAIN_TITLE', 'Letzten hier ansehen '); define('TEXT_ORDER_PRODUCTS', 'Artikel:'); define('TEXT_ORDER_COST', 'Summe:'); define('TEXT_ORDER_DATE', 'Bestelldatum:'); define('TEXT_ORDER_SHIPPED_TO', 'Lieferanschrift:'); define('TEXT_ORDER_NUMBER', 'Bestellnummer:'); define('TEXT_NO_PURCHASES', 'Sie haben noch keine Bestellungen getätigt.'); define('IMAGE_BUTTON_VIEW_ACCOUNT', 'zum Kundenkonto'); define('IMAGE_BUTTON_PRINT_PAGE', 'Seite drucken'); define('TEXT_GDPR', ' Die Datenschutz-Grundverordnung (DSGVO) (Verordnung (EU) 2016/679) ist eine Verordnung, mit der das Europäische Parlament, der Rat der Europäischen Union und die Europäische Kommission den Datenschutz für alle Personen in der Europäischen Union stärken und vereinheitlichen wollen (EU). Die Datenschutz-Grundverordnung besagt, dass Sie Ihre persönlichen Informationen, die wir besitzen, überprüfen können. Wenn Sie EU-Bürger sind, können Sie die Löschung einiger dieser Daten beantragen. '); ?> ************************************************* INSTALL: Ein Bild namens: separator_pixel.gif Erstellen und in das catalog/images/ einspielen. ############################################### catalog/includes/filenames.php einfügen: define('FILENAME_DSGVO', 'saved_data.php'); ############################################### stylesheet.css am ende der Datei einfügen: .pls_alert-SiteContainer{background-color:#FFFFFF;border:solid 1px #CCCCCC;padding:8px;border-radius:4px 4px 0px 0px;} .pls_CartModuleHtgr{border:1px solid #FF6600;-moz-box-shadow: 2px 2px 3 #CCCCCC;-webkit-box-shadow: 2px 2px 0 #333333;box-shadow: 5px 2px 5 #000000;border-radius:4px 4px 0px 0px;background:#FFCC99 url() 100% 100% repeat-x;color:#000000;} .pls_margin{margin:10px;} .pls_panel{padding:20px;border:solid 1px #ccc;} ############################################### catalog/includes/languages/german.php einfügen: define('TIME_FORMAT_LONG', '%H:%M:%S'); define('TIME_FORMAT_SHORT', '%H:%M'); define('TIME_FORMAT_TEXT_WHAT', 'um'); define('TIME_FORMAT_TEXT_CLOCK', 'Uhr'); define('ENTRY_FIRST_NAME_TEXT', 'Ihr Vorname:'); define('ENTRY_LAST_NAME_TEXT', 'Ihr Nachname:'); define('TEXT_CUSTOMMER_NR', 'Kundennummer:'); define('ENTRY_STREET_ADDRESS_TEXT', 'Strasse und Hausnummer:'); define('ENTRY_POST_CODE_TEXT', 'Postleitzahl: / Ort:'); define('ENTRY_FIRST_NAME_TEXT', 'Ihr Vorname:'); define('ENTRY_FIRST_NAME_TEXT', 'Ihr Vorname:'); define('HEADING_IPRECORDED_1','HINWEIS! Die folgende IP Adresse und ISP wurde für Sicherheitszwecke aufgezeichnet.'); define('YOUR_IP_IPRECORDED', 'IP'); define('YOUR_ISP_IPRECORDED', 'ISP'); ############################################### catalog/includes/functions/general.php finden: if (@date('Y', mktime($hour, $minute, $second, $month, $day, $year)) == $year) { return date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, $year)); } else { return preg_replace('/2037$/', $year, date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, 2037))); } } danach einfügen: // Output a raw time string in the selected locale time format // $raw_date needs to be in this format: HH:MM:SS function tep_time_long($raw_date) { if ( ($raw_date == '0000-00-00 00:00:00') || ($raw_date == '') ) return false; $hour = (int)substr($raw_date, 11, 2); $minute = (int)substr($raw_date, 14, 2); $second = (int)substr($raw_date, 17, 2); return strftime(TIME_FORMAT_LONG, mktime($hour,$minute,$second)); } // Output a raw time string in the selected locale time format // $raw_date needs to be in this format: HH:MM function tep_time_short($raw_date) { if ( ($raw_date == '0000-00-00 00:00:00') || ($raw_date == '') ) return false; $hour = (int)substr($raw_date, 11, 2); $minute = (int)substr($raw_date, 14, 2); return strftime(TIME_FORMAT_SHORT, mktime($hour,$minute)); }
  20. Ja, allerdings müsste ich genau wissen was du in deinem Shop alles eingebaut hast um es passend zu machen. Solltest du interessiert sein gibt es weitere Details per PN.
  21. ansonsten diese: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); $orders_query = tep_db_query("select o.orders_id, o.customers_id, a.entry_gender from " . TABLE_ORDERS . " o, " . TABLE_ADDRESS_BOOK . " a where o.customers_id = a.customers_id and orders_id = '" . (int)$oID . "'"); $cust= tep_db_fetch_array($orders_query); include(DIR_WS_CLASSES . 'order.php'); $order = new order($oID); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <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"> </head> <body> <!-- body_text //--> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo nl2br(STORE_NAME_ADDRESS); ?></td> <td class="pageHeading" align="right"><?php echo tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . 'store_logo.png', STORE_NAME); ?></td> </tr> </table></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td colspan="2"><?php echo tep_draw_separator(); ?></td> </tr> <tr> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><strong><?php echo ENTRY_SOLD_TO; ?></strong></td> </tr> <tr> <td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->billing, 1, '', '<br />'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> <td class="main"><?php echo $order->customer['telephone']; ?></td> </tr> <tr> <td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '"><u>' . $order->customer['email_address'] . '</u></a>'; ?></td> </tr> </table></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><strong><?php echo ENTRY_SHIP_TO; ?></strong></td> </tr> <tr> <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'); ?></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"><strong><?php echo ENTRY_PAYMENT_METHOD; ?></strong></td> <td class="main"><?php echo $order->info['payment_method']; ?></td> </tr> </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 TABLE_HEADING_PRODUCTS; ?></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">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name']; if (isset($order->products[$i]['attributes']) && (($k = sizeof($order->products[$i]['attributes'])) > 0)) { for ($j = 0; $j < $k; $j++) { echo '<br /><nobr><small>&nbsp;<i> - ' . $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 '</i></small></nobr>'; } } echo ' </td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n"; echo ' <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true), true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><strong>' . $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']) . '</strong></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++) { 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"; } ?> </table></td> </tr> </table></td> </tr> </table> <?php echo INFO_TEXT_CUSTOMER_ID; ?> <?php echo $cust['customers_id'];?><br> <?php echo INFO_TEXT_ORDER_ID; ?> <?php echo $oID; ?> <!-- body_text_eof //--> <br /> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  22. Probier diese mal: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); $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 . "'"); include(DIR_WS_CLASSES . 'order.php'); $order = new order($oID); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <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"> </head> <body> <!-- body_text //--> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo nl2br(STORE_NAME_ADDRESS); ?></td> <td class="pageHeading" align="right"><?php echo tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . 'store_logo.png', STORE_NAME); ?></td> </tr> </table></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td colspan="2"><?php echo tep_draw_separator(); ?></td> </tr> <tr> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><strong><?php echo ENTRY_SOLD_TO; ?></strong></td> </tr> <tr> <td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->billing, 1, '', '<br />'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> <td class="main"><?php echo $order->customer['telephone']; ?></td> </tr> <tr> <td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '"><u>' . $order->customer['email_address'] . '</u></a>'; ?></td> </tr> </table></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><strong><?php echo ENTRY_SHIP_TO; ?></strong></td> </tr> <tr> <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'); ?></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"><strong><?php echo ENTRY_PAYMENT_METHOD; ?></strong></td> <td class="main"><?php echo $order->info['payment_method']; ?></td> </tr> </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 TABLE_HEADING_PRODUCTS; ?></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">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name']; if (isset($order->products[$i]['attributes']) && (($k = sizeof($order->products[$i]['attributes'])) > 0)) { for ($j = 0; $j < $k; $j++) { echo '<br /><nobr><small>&nbsp;<i> - ' . $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 '</i></small></nobr>'; } } echo ' </td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n"; echo ' <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true), true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><strong>' . $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']) . '</strong></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++) { 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"; } ?> </table></td> </tr> </table></td> </tr> </table> <?php $pls_data_query = tep_db_query("select customers_id from ". TABLE_CUSTOMERS . " where customers_id = '" . $order->customer['customers_id'] . "'"); $pls_data = tep_db_fetch_array($pls_data_query); echo INFO_TEXT_CUSTOMER_ID; ?> <?php echo $pls_data['customers_id'];?><br> <?php echo INFO_TEXT_ORDER_ID; ?> <?php echo $oID; ?> <!-- body_text_eof //--> <br /> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  23. ich meinte den Quellcode der Datei
×