Jump to content
Latest News: (loading..)


  • Content count

  • Joined

  • Last visited

  1. Imprint input options

    Well I've set the "Recreate Session" to false and seems to work, is there any security issue about this? I've found this by @Jack_mcs
  2. Imprint Text Options

    Well I've set the "Recreate Session" to false and seems to work, is there any security issue about this? I've found this by @Jack_mcs
  3. Imprint input options

    I don't know exactly what happened but it started to stop working if user login/logout and login/create account (as it recreate the session id). As I've wrote in the original post (a bit outdated): Also think it stopped worked because the version of PHP was changed (to check a few things) could it probably mess with the sessions?
  4. Imprint Text Options

    Couldn't this register the cookie of the first session and then user login/create account/logout and login again as the session id is recreated at least could get the attributes from the cookie which was the first session?
  5. Imprint input options

    Thanks both @raiwa and@tsimi. I've fixed it with $osCsid = $_REQUEST["osCsid"]; at application_top.php. At least seems to work fine. Thank you.
  6. Imprint input options

    Hello @Tsimi I'm using v2.3.4. I've read that topic but didn't find there my solution. The only issue is if I add to cart a product with those attributes and then login (at it recreates a new session) the product remains on shopping cart but those attributes are gone. Just should also change the new session id into customers_basket_text_attributes which has session_id + products_id etc..
  7. Imprint input options

    Hello I've this addon installed and modified https://apps.oscommerce.com/wLYWg&imprint-text-options But now there's a issue. If I choice a product with some attributes (without account) and add it to cart it's fine but then I login into my account and the attributes from imprint addon disappear from cart. If I already have a account it's all fine. It's recording the session id but as it regenerate a new one at the checkout I think that might be the problem. Anyone know how can I use this as the default attributes from osCommerce?
  8. SMTP configuration on osCommerce

    This errors I could fix, but my mails are sent this way: //send email and extra mail to xxxx@xxxxxxx.pt tep_mm_sendmail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $output_subject, $output_content_html, strip_tags($output_content_txt)); tep_mm_sendmail('', SEND_EXTRA_ORDER_EMAILS_TO, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $output_subject, $output_content_html, strip_tags($output_content_txt)); //if mail manager status update email 'inactive' process normally via oscommerce }else{ tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } so to sent them via smtp as html mails should I use the tep_mail function as normal?
  9. SMTP configuration on osCommerce

    Fatal error: Uncaught Error: Call to undefined function tep_cfg_input_password() in /home/x/public_html/admin/configuration.php(106) : eval()'d code:1 Stack trace: #0 /home/x/public_html/admin/configuration.php(106): eval() #1 {main} thrown in /home/x/public_html/admin/configuration.php(106) : eval()'d code on line 1
  10. SMTP configuration on osCommerce

    Also I get this message: Warning: call_user_func() expects parameter 1 to be a valid callback, function 'tep_cfg_password' not found or invalid function name in /home/x/public_html/admin/includes/functions/general.php on line 1503
  11. SMTP configuration on osCommerce

    @tgely Hi, sorry just to answer now. I was using this function tep_mm_sendmail but now my emails are being blocked by Gmail. Because no SMTP authentication and now if I turn back and use sendmail still being blocked.
  12. SMTP configuration on osCommerce

    Thanks @tgely! Will try it soon. This works with the latest version of PHPMailer or should simple use that? I've saw that the code isn't yet PHP 7 compatibility at least at classes/email.php: class email { // ... function email($headers = '') { Which should be function __construct($headers = '') { But that I can work later. Other question is about being also compatible with mail manager, all my mails are sent with a html template with that addon. classes/email.php: 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); } } functions/general.php: //sends it function tep_mm_sendmail($mail, $email_address, $sender_name, $sender, $output_subject, $output_content_html, $output_content_txt) { $mimemessage = new emailMailManager(array('X-Mailer: ad/mail_manager.com')); // add html and alternative text version $mimemessage->add_html($output_content_html, $output_content_txt); $mimemessage->build_message(); // encoding -> 76 character linebreak, replacements must be done before $mimemessage->send($mail, $email_address, $sender_name, $sender, $output_subject, ''); }
  13. I'm trying to configure smtp (with authentication) on osCommerce but it's sending it to mail of the store instead clients and as html. I've followed this guide https://www.inmotionhosting.com/support/edu/oscommerce/testing-ecommerce-functionality/setting-up-smtp-with-oscommerce but I think this is out of date, also doesn't send it correctly. But this tutorial isn't 100% correct and it's not sending correctly. Also all my mails are HTML with the mail manager addon, even set $pMail->IsHTML(true); and some modifications using this variables: return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers)); I've installed the lastest version of PHPMailer but having some issues. I've been looking but couldn't find anything else, I was wondering if anyone that uses SMTP with authentication can show how it really should be.
  14. Upgraded to PHP 7 - now few errors

    I think it's solved now, I'll test if everything is working correctly. Thank your for you help.
  15. Upgraded to PHP 7 - now few errors

    @raiwa misconfiguration at PHP: Checked PHP options and in cPanel I've just found this: session.save_path /var/cpanel/php/sessions/ea-php70 It was using /var/cpanel/php/sessions/ea-php56 but version was PHP 7