Jump to content

YePix

Members
  • Content count

    248
  • Joined

  • Last visited

  • Days Won

    1

YePix last won the day on March 28

YePix had the most liked content!

1 Follower

Profile Information

  • Real Name
    Peter
  • Gender
    Male

Recent Profile Visitors

18,561 profile views
  1. YePix

    Weekly sales reporting in admin help needed

    or just add this line. As far as I have seen in ot_subtotal no discounts shipping costs or anything else. So the net price.
  2. YePix

    Weekly sales reporting in admin help needed

    and change in classes/sales_report.php ot.class = 'ot_subtotal' to ot.class = 'ot_total'
  3. YePix

    WYSIWYG product description

    then you have definitely installed this wrong
  4. YePix

    SMTP Authentication and OSCommerce

    the new classes email.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 = 'PL-Gastrosystem ' . 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; } $phpMail->clearAddresses(); 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 ** */ ?>
  5. I mean the ticket printers in the gastronomy
  6. does anyone of you already have experience with receipt printer and oscommerce?
  7. Hello people, I would like to give time-limited release on certain products. I tried it with the following code but unfortunately it does not work. could someone please suggest something to me wi I could realize it? $pls_customer_query = tep_db_query("select * from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'"); $pls_customer = tep_db_fetch_array($pls_customer_query); $vip_expires_date = tep_date_long($pls_customer['expires_date']); if (date('yyyy-mm-dd', strtotime($vip_expires_date)) >= date('yyyy-mm-dd')) { xxxxxxx }
  8. that's not true. use tooltip on mobile devices and everything works fine
  9. Maybe that helps you a little bit further https://www.w3schools.com/css/css_tooltip.asp
  10. @ecartz You were right. But now in the general.php I've swapped the (int)$option with (int)$prid and everything works perfect
  11. the customers_bascet_id is responsible for the sorting of the products in CUSTOMERS_BASKET and the attributes are assigned to the products_id and therefore the same product is stored individually. I can not find only the code where the products_id writes in the CUSTOMERS_BASCET
  12. no, that's not true. have just manually changed the products_id in the db for the same product with different attributes and everything works fine. the CUSTOMERS_BASCET stores the products_id and the rest in the CUSTOMERS_BASCET_ATTRIBUTES. thus it is unnecessary to save the string after the products_id
×