Jump to content
Latest News: (loading..)

YePix

Members
  • Content count

    120
  • Joined

  • Last visited

Everything posted by YePix

  1. hast du ei Beckup der alten DB gemacht ?
  2. YePix

    countries query

    why complicated when it just works. Thank you
  3. YePix

    countries query

    Hi guys, I really need to read the country from the database. Can someone help me with the query? $countries_query = tep_db_query("select ab.address_book_id as address_book_id, ab.customers_id as customers_id, ab.entry_country_id as entry_country_id, c.countries_id as countries_id, c.countries_name as countries_name from " . TABLE_ADDRESS_BOOK . " ab, " . TABLE_COUNTRIES . " c where countries_id and customers_id = '" . (int)$customer_id . "'"); $countries = tep_db_fetch_array($countries_query);
  4. Hi folks, I have installed the PhpMailer and everything so far ok and without errors. The problem is only the mails are shown as sent but do not arrive. Does anyone have a suggestion for me?
  5. YePix

    SMTP Authentication and OSCommerce

    For those who want or need to send their emails with smtp through authentication. Email not suitable for gmail accounts !!! **************************************************** Step 1. BACKUP ALL FILES BEFORE CHANGE !!! **************************************************** Step 2. Download: www.pl-systeme.de/free_download/PHPMailer.zip transferred to: catalog/ext/modules/PHPMailer **************************************************** Step 3. change class files: catalog/includes/classes.php <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce */ require_once 'ext/modules/PHPMailer/class.phpmailer.php'; $phpMail = new PHPMailer(); class email { var $html; var $text; var $html_text; var $lf; var $debug = 0; var $debug_output = 'error_log'; function email($headers = '') { global $phpMail; $phpMail->XMailer = 'osCommerce ' . tep_get_version(); $phpMail->SMTPDebug = $this->debug; $phpMail->Debugoutput = $this->debug_output; $phpMail->CharSet = CHARSET; $phpMail->WordWrap = 998; if (EMAIL_LINEFEED == 'CRLF') { $this->lf = "\r\n"; } else { $this->lf = "\n"; } } function add_text($text = '') { global $phpMail; $phpMail->IsHTML(false); $this->text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); } function add_html($html, $text = NULL, $images_dir = NULL) { global $phpMail; $phpMail->IsHTML(true); $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br />', $html); $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); if (isset($images_dir)) $this->html = $phpMail->msgHTML($this->html, $images_dir); } function add_attachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment') { global $phpMail; $phpMail->AddAttachment($path, $name, $encoding, $type, $disposition); } function build_message() { //out of work function } function send($to_name, $to_addr, $from_name, $from_addr, $subject = '', $reply_to = false) { global $phpMail; if ((strstr($to_name, "\n") != false) || (strstr($to_name, "\r") != false)) { return false; } if ((strstr($to_addr, "\n") != false) || (strstr($to_addr, "\r") != false)) { return false; } if ((strstr($subject, "\n") != false) || (strstr($subject, "\r") != false)) { return false; } if ((strstr($from_name, "\n") != false) || (strstr($from_name, "\r") != false)) { return false; } if ((strstr($from_addr, "\n") != false) || (strstr($from_addr, "\r") != false)) { return false; } $phpMail->From = $from_addr; $phpMail->FromName = $from_name; $phpMail->AddAddress($to_addr, $to_name); if ($reply_to) { $phpMail->AddReplyTo(EMAIL_SMTP_REPLYTO, STORE_NAME); } else { $phpMail->AddReplyTo($from_addr, $from_name); } $phpMail->Subject = $subject; if (!empty($this->html)) { $phpMail->Body = $this->html; $phpMail->AltBody = $this->html_text; } else { $phpMail->Body = $this->text; } if (EMAIL_TRANSPORT == 'smtp' || EMAIL_TRANSPORT == 'gmail') { $phpMail->IsSMTP(); $phpMail->Host = EMAIL_SMTP_HOSTS; $phpMail->SMTPAuth = EMAIL_SMTP_AUTHENTICATION; $phpMail->Username = EMAIL_SMTP_USER; $phpMail->Password = EMAIL_SMTP_PASSWORD; if (EMAIL_TRANSPORT == 'gmail') { $phpMail->Port = 465; $phpMail->SMTPSecure = 'ssl'; } } else { $phpMail->isSendmail(); } if (!$phpMail->Send()) { return false; } return true; } } /* ** Altered for Mail Manager ** */ // eliminate line feeds as <br> class emailMailManager extends email { function add_html($html, $text = NULL, $images_dir = NULL) { $this->html = $html; //tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $html); $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); if (isset($images_dir)) $this->find_html_images($images_dir); } } /* ** EOF alterations for Mail Manager ** */ ?> catalog/admin/includes/classes.php <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ require_once '../ext/modules/PHPMailer/class.phpmailer.php'; $phpMail = new PHPMailer(); class email { var $html; var $text; var $html_text; var $lf; var $debug = 0; var $debug_output = 'error_log'; function email($headers = '') { global $phpMail; $phpMail->XMailer = 'osCommerce ' . tep_get_version(); $phpMail->SMTPDebug = $this->debug; $phpMail->Debugoutput = $this->debug_output; $phpMail->CharSet = CHARSET; $phpMail->WordWrap = 998; if (EMAIL_LINEFEED == 'CRLF') { $this->lf = "\r\n"; } else { $this->lf = "\n"; } } function add_text($text = '') { global $phpMail; $phpMail->IsHTML(false); $this->text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); } function add_html($html, $text = NULL, $images_dir = NULL) { global $phpMail; $phpMail->IsHTML(true); $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br />', $html); $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); if (isset($images_dir)) $this->html = $phpMail->msgHTML($this->html, $images_dir); } function add_attachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment') { global $phpMail; $phpMail->AddAttachment($path, $name, $encoding, $type, $disposition); } function build_message() { //out of work function } function send($to_name, $to_addr, $from_name, $from_addr, $subject = '', $reply_to = false) { global $phpMail; if ((strstr($to_name, "\n") != false) || (strstr($to_name, "\r") != false)) { return false; } if ((strstr($to_addr, "\n") != false) || (strstr($to_addr, "\r") != false)) { return false; } if ((strstr($subject, "\n") != false) || (strstr($subject, "\r") != false)) { return false; } if ((strstr($from_name, "\n") != false) || (strstr($from_name, "\r") != false)) { return false; } if ((strstr($from_addr, "\n") != false) || (strstr($from_addr, "\r") != false)) { return false; } $phpMail->From = $from_addr; $phpMail->FromName = $from_name; $phpMail->AddAddress($to_addr, $to_name); if ($reply_to) { $phpMail->AddReplyTo(EMAIL_SMTP_REPLYTO, STORE_NAME); } else { $phpMail->AddReplyTo($from_addr, $from_name); } $phpMail->Subject = $subject; if (!empty($this->html)) { $phpMail->Body = $this->html; $phpMail->AltBody = $this->html_text; } else { $phpMail->Body = $this->text; } if (EMAIL_TRANSPORT == 'smtp' || EMAIL_TRANSPORT == 'gmail') { $phpMail->IsSMTP(); $phpMail->Host = EMAIL_SMTP_HOSTS; $phpMail->SMTPAuth = EMAIL_SMTP_AUTHENTICATION; $phpMail->Username = EMAIL_SMTP_USER; $phpMail->Password = EMAIL_SMTP_PASSWORD; if (EMAIL_TRANSPORT == 'gmail') { $phpMail->Port = 465; $phpMail->SMTPSecure = 'ssl'; } } else { $phpMail->isSendmail(); } if (!$phpMail->Send()) { return false; } return true; } } /* ** Altered for Mail Manager ** */ // eliminate line feeds as <br> class emailMailManager extends email { function add_html($html, $text = NULL, $images_dir = NULL) { $this->html = $html; //tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $html); $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); if (isset($images_dir)) $this->find_html_images($images_dir); } } /* ** EOF alterations for Mail Manager ** */ ?> **************************************************** Step 4. catalog/admin/functions/general.php find: //// // Sets the status of a product function tep_set_product_status($products_id, $status) { if ($status == '1') { return tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '1', products_last_modified = now() where products_id = '" . (int)$products_id . "'"); } elseif ($status == '0') { return tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0', products_last_modified = now() where products_id = '" . (int)$products_id . "'"); } else { return -1; } } add below: //// // Sets the password function for db function tep_cfg_password($password) { return preg_replace("|.|", "*", $password); } function tep_cfg_input_password($password) { return tep_draw_password_field('configuration_value', $password); } **************************************************** Step 5. Import sql: INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('SMTP hosts', 'EMAIL_SMTP_HOSTS', '', 'Assign SMTP host senders', '12', '6', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('SMTP authentication', 'EMAIL_SMTP_AUTHENTICATION', 'true', 'Do you want authenticated SMTP server?', '12', '7', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) VALUES ('SMTP Password', 'EMAIL_SMTP_PASSWORD', '', 'Add SMTP Password for SMTP protocol', '12', '8', 'tep_cfg_password', 'tep_cfg_input_password(', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('SMTP User', 'EMAIL_SMTP_USER', '', 'Add SMTP user for SMTP protocol', '12', '9', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('SMTP Reply To', 'EMAIL_SMTP_REPLYTO', '', 'Add SMTP reply to address', '12', '10', now()); **************************************************** Step 6. go to: http://www.yourDomain.com/admin/configuration.php?gID=12 change the new SMTP email settings and set the email transport method to smtp **************************************************** Step 7. finished.
  6. YePix

    SMTP Authentication and OSCommerce

    So first thanks to @raiwa and @Tsimi. With a few suggestions you helped me a lot. Special thanks to @tgely for his challenging work! The instructions for bootstrap with all changes and source code I will put in soon for other users. The email-class has to be changed, the general.php in the admin has to be provided with a function and the corresponding php-mailer comes as a download.
  7. YePix

    SMTP Authentication and OSCommerce

    I do not know what it should bring but even if the mails were classified as spam, they would arrive. I tested it with gmail and outlook. Emails do not arrive. but still thank you. could someone help me?
  8. YePix

    countries query

    Thanks guys, I solved it. $countries_query = tep_db_query("select ab.customers_id as customers_id, ab.entry_country_id as entry_country_id, c.countries_id as countries_id, c.countries_name as countries_name from " . TABLE_ADDRESS_BOOK . " ab, " . TABLE_COUNTRIES . " c where customers_id = '" . (int)$customer_id . "' and entry_country_id = countries_id"); $countries = tep_db_fetch_array($countries_query);
  9. Im Adminmenü findest du es auch nicht. Es muss direkt in der Datei create_account.php bearbeitet werden.
  10. das ist der code für newsletter: <tr> <td class="fieldKey"><?php echo ENTRY_NEWSLETTER; ?></td> <td class="fieldValue"><?php echo tep_draw_checkbox_field('newsletter', '1') . '&nbsp;' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td> </tr>
  11. das ist der Abschnitt der für das Feld Telefonnummer zuständig ist: if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR); } <tr> <td class="fieldKey"><?php echo ENTRY_TELEPHONE_NUMBER; ?></td> <td class="fieldValue"><?php echo tep_draw_input_field('telephone') . '&nbsp;' . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?></td> </tr>
  12. Also bei dem Wissen über osCommerce ist es schon mal sehr schlecht überhaupt in Erwägung zu ziehen einen Online-Shop frei ins Netz zu stellen. (Sorry nicht böse gemeint) Bevor du dir Gedanken über eventuelle Angabefelder machst, solltest du dir lieber Gedanken über die rechtliche Situation, was das Betreiben eines Shops im Netz angeht machen. Eine Abmahnung wegen fehlender bzw. falscher Angaben kann sehr, sehr teuer werden. (Das nehmen viel zu viele hier leider auf die leichte Schulter) und dann ist das Gehäule gross ! Die besten Ausreden sind immer, Ich möchte nicht viel investieren, da es nur ein kleiner Shop ist und und und..... Es ist ganz egal wie gross der Shop werden soll, auch wen nur ein Produkt verkauft wird. Gesetz ist Gesetz und die Straffen sind sehr hoch bei Verstössen. Ist der Shop irgendwann Abmahnsicher, so kannst du an Verschönerung und Anpassung bestimmter Details denken die du haben möchtest. Nichts für ungut aber denk über meine Worte nach, kann viel Ärger ersparen.
  13. Um die Telefonnummer zu entfernen muss die create_account.php im catalog so wie die customers.php im admin bearbeitet werden. Hierbei alle Abfragen und das Eingabefeld entfernen. Etwas schöner wre eine DB-Abfrage zu installieren um das Telefonfeld über die Administration ab bzw. ein zu schalten.
  14. YePix

    thickbox

    Hello guys and girls, does any of you have experience with thickbox? I want a page opened in a css popup. I tried to link it but without success. Can someone help me ? <?php $option_popup_open = '<a href="'; $option_popup_open .= tep_href_link('product_popup.php', tep_get_all_get_params(array('action')) . 'products_id=' . $list_price['products_id']); $option_popup_open .= '" target="_blank" rel="thickbox" title="' . $list_price['products_name'] . '">' . tep_draw_button(TEXT_LOGIN_INFO, 'fa fa-question', tep_href_link('login.php'), null, null, 'btn-reviews btn-block btn-pls') . '</a>'; echo '<span class="pls_option">' . $option_popup_open . '</span>'; ?>
  15. YePix

    Entscheidungsfindung

    Du brauchst noch den Lieferkostenvermerk in unmittelbarer Nähe zum Preis. Nicht vergessen, die Versandkosten müssen inkl. MwSt. gelten. Bestätigung der AGB, Widerruf und Datenschutzrichtlinien. Die DSGVO Angaben müssen jedem Kunden zugänglich sein. Kontrollkästchen mit Bestätigung der Privatsphere vor dem Versenden des Kontaktformulars. Und, und, und..... An deiner Stelle würde ich erstmal genauer prüffen was alles noch fehlt was rechtlich vorgeschrieben ist bevor der Shop On-Line geht. (kann sehr teuer werden.) PS. Die anderen Shops die im Netz zu finden sind, sind auch nicht ganz ohne und müssen an die Gesetzvorgaben angepasst werden.
  16. YePix

    thickbox

    from the product_info.php works without problems. but outside I can not get any further. <?php if (SHOW_BUTTON_OPTION_IMAGE == 'true') { $optionsimage = tep_image('images/' . 'prod_button_attribute.png');}?> <?php $transimage = tep_image('images/' . 'pixel_trans.gif', '1', '12');?> <?php if ( (tep_session_is_registered('customer_id') == true) || ($id != $customer_id) ) {?> <div align="center"> <div class="col-sm-6" align="left"><div class="pls_infopanel"> <h4><?php echo TEXT_PRODUCT_OPTIONS . ' ' . $attribute_prod_name; ?></h4> <?php echo $gender_text . ' ' . $addresses['lastname'] . ', ' . TEXT_PRODUCTS_ATTRIBUTE_PRODUCT_INFO ;?><?php echo $pls_separator_nb; ?> </div></div> <span id="myBtn"><div class="CustomButton button1"> <i class="fa fa-calculator"></i>&nbsp;&nbsp;<?php echo TEXT_PRODUCT_OPTIONS_DROPDOWN_POPUP . '<br>' . $product_info['products_name'] . ' ' . TEXT_PRODUCT_OPTIONS_LAST . ' ' . $anrede_text . ' ' . $addresses['lastname'] . $optionsimage;?> </div></span> </div> <?php echo $transimage; ?> <?php }else{?> <div align="center"> <div class="col-sm-6" align="left"><div class="pls_infopanel"> <h4><?php echo TEXT_PRODUCT_OPTIONS . ' ' . $attribute_prod_name; ?></h4> <?php echo TEXT_ATTRIBUTE_GUEST . ' ' . TEXT_PRODUCTS_ATTRIBUTE_PRODUCT_INFO ;?><?php echo $pls_separator_nb; ?> </div></div> <span id="myBtn"><div class="button button1"> <i class="fa fa-calculator"></i>&nbsp;&nbsp;<?php echo TEXT_GUEST_PRODUCT_OPTIONS_DROPDOWN_POPUP . '<br>' . $product_info['products_name'] . ' ' . TEXT_PRODUCT_OPTIONS_LAST . $optionsimage;?> </div></span> </div> <?php echo $transimage; ?> <?php }?> <div id="myModal" class="modal"> <div class="modal-content"> <p> <!------- -------> <h4><?php echo TEXT_PRODUCT_OPTIONS . ' ' . $attribute_prod_name; ?></h4> <?php if ( (tep_session_is_registered('customer_id') == true) || ($id != $customer_id) ) {?> <?php echo $gender_text . ' ' . $addresses['lastname'] . ', ' . TEXT_PRODUCTS_ATTRIBUTE_INFO . $pls_separator_nb ;?> <?php }else{ echo TEXT_ATTRIBUTE_GUEST . ' ' . TEXT_PRODUCTS_ATTRIBUTE_INFO; }?> <p> <div class="pls_panel"> <?php $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$_GET['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name"); $numberofopt = tep_db_num_rows($products_options_name_query); $opt_count = 0; $products_attributes = array(); while ($products_options_name = tep_db_fetch_array($products_options_name_query)) { array_push($products_attributes,$products_options_name['products_options_id']); $opt_count++; $products_options_array = array(); $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$_GET['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "' order by pa.attribute_sort"); while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } if (is_string($_GET['products_id']) && isset($cart->contents[$_GET['products_id']]['attributes'][$products_options_name['products_options_id']])) { $selected_attribute = $cart->contents[$_GET['products_id']]['attributes'][$products_options_name['products_options_id']]; } else { $selected_attribute = false; } ?> <strong><?php echo $products_options_name['products_options_name'] . ':'; ?></strong><br /> <?php /* Optionen-Bilder start */ ?> <?php $products_options_images_query = tep_db_query("select image, image_name from " . TABLE_PRODUCTS_OPTIONS_IMAGES . " where options_id = '" . (int)$products_options_name['products_options_id'] . "' "); ?> <div id="piGal"> <?php if (tep_db_num_rows($products_options_images_query) > 0) { $options_images_counter = 0; while ($options_images = tep_db_fetch_array($products_options_images_query)) { $options_images_counter++; $option_images_out = '<a href="'; $option_images_out .= tep_href_link('images/' . 'optionsimages/' . $options_images['image'], '', 'NONSSL', false); $option_images_out .= '" target="_blank" rel="colorbox" title="' . $options_images['image'] . '">' . tep_draw_button(TEXT_SHOW_IMAGE . '&nbsp;' . $options_images['image_name'] . tep_image('images/' . 'optionsimages/' . $options_images['image'], '8%', '8%'), null, null, 'btn btn-default btn-lg') . '</a>'; echo '<span class="pls_optionimage">' . $option_images_out . '</span>'; } } ?> <script type="text/javascript"> $("#piGal a[rel^='colorbox']").colorbox({ cyclic: true }); </script></div> <?php /* Optionen-Bilder ende */ ?> <?php $comma = ""; $all_option_js = "["; for($t = 1;$t<=$numberofopt; $t++) { $all_option_js .= $comma.'document.getElementById(\'cmbooption_'.$t.'\').value'; $comma = ","; } $all_option_js .= "]"; echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute,' id="cmbooption_'.$opt_count.'" onChange="getPrice('.$v_new_price.','.$v_products_price.','.(int)$_GET['products_id'].','.$all_option_js.')"'); } ?></div> <!------- -------> </p><?php echo $pls_separator_nb;?> <span class="InfoTextBottom"><?php echo TEXT_PRODUCTS_ATTRIBUTE_PRODUCT_INFO_BOTTOM;?></span><?php echo $pls_separator_nb;?> <span class="close" style="float: left;"><?php echo TEXT_FINISH;?></span><br><br> <br><br> </div> </div> <script> // Get the modal var modal = document.getElementById('myModal'); // Get the button that opens the modal var btn = document.getElementById("myBtn"); // Get the <span> element that closes the modal var span = document.getElementsByClassName("close")[0]; // When the user clicks the button, open the modal btn.onclick = function() { modal.style.display = "block"; } // When the user clicks on <span> (x), close the modal span.onclick = function() { modal.style.display = "none"; } // When the user clicks anywhere outside of the modal, close it window.onclick = function(event) { if (event.target == modal) { modal.style.display = "none"; } } </script>
  17. YePix

    thickbox

    that's the problem. I've been working on it for some time now and just can not keep up.
  18. YePix

    thickbox

    just like that. if a product has attributes, it is called up via layer in the extra window. products without attributes normal from the product_info.php
  19. YePix

    thickbox

    <a href='<?php echo tep_href_link('product_popup.php', 'products_id=' . $all_products['products_id']); ?>', target="_blank" onclick="window.open(this.href,this.target,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=420,height=780,screenX=150,screenY=150,top=5,left=650'); return false;"><?php echo tep_draw_button(IMAGE_BUTTON_POPUP, 'plusthick');?></a> that's it. but I do not want a new window but something nice with css layer open
  20. YePix

    thickbox

    Yes. the layer should be opened directly from the product_listing.php via button and not forwarded to the product_info.php.
  21. YePix

    thickbox

    it is the product_info.php only with attributes and purchase button which should be opened in the layer.
  22. YePix

    thickbox

    Bottstrap EDGE
  23. YePix

    tep_draw_file_field

    Hi guys, where does the button "tep_draw_file_field('option_image')" for imageupload its name? the first part is a field name and next to it is the button. in German there is "Durchsuchen..."
  24. YePix

    Option Images

    Hello everyone. can someone help me with an idea? How do I get the pictures next to each other? <?php $products_options_images_query = tep_db_query("select image from " . TABLE_PRODUCTS_OPTIONS_IMAGES . " where options_id = '" . (int)$products_options_name['products_options_id'] . "' "); ?> <div id="piGal"> <?php if (tep_db_num_rows($products_options_images_query) > 0) { $options_images_counter = 0; while ($options_images = tep_db_fetch_array($products_options_images_query)) { $options_images_counter++; $option_images_out = ' <a href="'; $option_images_out .= tep_href_link(DIR_WS_IMAGES . $options_images['image'], '', 'NONSSL', false); $option_images_out .= '" target="_blank" rel="colorbox" title="' . $options_images['image'] . '">' . tep_image(DIR_WS_IMAGES . $options_images['image'], $options_images['image'], '8%', '8%') . '</a>'; echo $option_images_out; } } ?> <br /> <script type="text/javascript"> $("#piGal a[rel^='colorbox']").colorbox({ cyclic: true }); </script></div>
×