Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

osCshop

Pioneers
  • Posts

    153
  • Joined

  • Last visited

Everything posted by osCshop

  1. Andrew, I think your problem is in application_top.php. I had the same error after I uploaded a modifyd application_top without the code for the Wishlist contri...
  2. Hi Jim, I'm happy to let you know that I received (after a 3,5 hour delay) the newsletter to account 1!! :) The link is correct and works! I think everything is OK now. I did a full database optimize, but if it had anything to do with it... No idea how/why the double dot bug appeared :huh: Hope it was a one time bug (?) I'm very happy with this contribution! Jim, many thanks for helping me :thumbsup:
  3. Odd indeed. After sending a new newsletter I've received it on another testaccount with a correct link that works(!) Finally I see this is working. :) The first testaccount (the one that had the dubble dot) isn't reveiving newsletter anymore. In the admin the option to receive the the newsletter is set to receive. Strange :blink: Sending a normal mail from the admin to testaccount 1 works... The source from the mail to acount 1 was: <a href="http://www.mydomain.nl/webshop/catalog/[email protected]">http://www.mydomain.nl/webshop/catalog/[email protected]</a> The visual part of the link is correct but the source part contains the dubble dot in the mailaddress. What more to do to check why account 1 isn't receiving the newsletters anymore?
  4. If I have this and a mod to show option names with the products send in the e-mails this contri would be even more then perfect!
  5. Yes! With this code: function send($newsletter_id) { $mail_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'"); $mimemessage = new email(array('X-Mailer: osCommerce bulk mailer')); while ($mail = tep_db_fetch_array($mail_query)) { // MaxiDVD Added Line For WYSIWYG HTML Area: BOF (Send TEXT Newsletter v1.7 when WYSIWYG Disabled) if (HTML_AREA_WYSIWYG_DISABLE_NEWSLETTER == 'Disable') { $mimemessage->add_text($this->content . TEXT_UNSUBSCRIBE . '<a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . FILENAME_UNSUBSCRIBE . "?email=" . $mail['customers_email_address'] . '">' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . FILENAME_UNSUBSCRIBE . "?email=" . $mail['customers_email_address'] . '</a>'); } else { $mimemessage->add_html($this->content . TEXT_UNSUBSCRIBE . '<a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . FILENAME_UNSUBSCRIBE . "?email=" . $mail['customers_email_address'] . '">' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . FILENAME_UNSUBSCRIBE . "?email=" . $mail['customers_email_address'] . '</a>'); // MaxiDVD Added Line For WYSIWYG HTML Area: EOF (Send HTML Newsletter v1.7 when WYSIWYG Enabled) } $mimemessage->build_message(); $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this->title); } The link shows up with the e-mailaddress!!! :) Thank you Jim!!! But: If I click the link in my mailmessage I'm getting the unsubscribe page. So far so good... There I push the unsubscribe button. Then I see a message that the mailaddress is not in the DB or already unsubscribed. Below I see this mailaddress: [email protected] The mailaddress contains TWO dots :o This is caused because the link I've clicked in my email looks like this in my browser: http://www.mydomain.nl/webshop/catalog/[email protected] (also 2 dots after myisp) Strange because the link in the email is correct: http://www.mydomain.nl/webshop/catalog/[email protected] :blink: :(
  6. Thank You!! It works now :) Again many thanks :thumbsup:
  7. <_< , $email_body .= $wishliststring is between { } But if I move the } before that line there's nothing between the { }
  8. Thanks dblake but that part is outside of the { } Here's my code if (tep_not_null($HTTP_POST_VARS['yourmessage'])) { $email_body .= $wishliststring.$HTTP_POST_VARS['yourmessage'] . "\n\n"; } $email_body .= sprintf(TEXT_EMAIL_SIGNATURE, STORE_NAME . "\n"). "<A HREF=\"". HTTP_SERVER . DIR_WS_CATALOG ."\"><h3><i>".STORE_NAME."</A> "."\n"; "\n\n" . $mywishlist .= $wishlist_query_array[1] ."\n";
  9. Same problem here; No note = no content :'( Anybody a solution Plz?!? Also I would like to use the same trick as I've used with my shopping cart. Contri Hide shopping cart when its empty I'm a PHP newbie :huh: How to implement the code to this line?: if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'wishlist.php'); Thanks in advance
  10. Got it working :) If you use STS, use this code in sts_user_code.php $sts_block_name = 'wishlistbox'; require(STS_START_CAPTURE); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'wishlist.php'); require(STS_STOP_CAPTURE); $template['wishlistbox'] = strip_unwanted_tags($sts_block['wishlistbox'], 'wishlistbox'); In the example code there's no if (tep_session_is_registered('customer_id')) I added it and it works fine now! B)
  11. Already solved the problem acdigital?!? I'm trying to install the latest wishlist (2.3). Also using a template contri (STS), I think it has something to do with STS. The same error in my browser :( 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by products_name' at line 1 select * from customers_wishlist WHERE customers_id = order by products_name [TEP STOP] (Browser message. No code!!) Would love to use this contribution...
  12. Jim, I'm grateful you're trying to help me with this. This is the source with the Maxi DVD WYSIWYG contri function send($newsletter_id) { $mail_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'"); $mimemessage = new email(array('X-Mailer: osCommerce bulk mailer')); // MaxiDVD Added Line For WYSIWYG HTML Area: BOF (Send TEXT Newsletter v1.7 when WYSIWYG Disabled) if (HTML_AREA_WYSIWYG_DISABLE_NEWSLETTER == 'Disable') { $mimemessage->add_text($this->content); } else { $mimemessage->add_html($this->content); // MaxiDVD Added Line For WYSIWYG HTML Area: EOF (Send HTML Newsletter v1.7 when WYSIWYG Enabled) } $mimemessage->build_message(); while ($mail = tep_db_fetch_array($mail_query)) { $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this->title); } Because the ($this->content); part is between the modified code I supose that's the place to paste the code for the Unsubscibe contri (like I've tryed earlier). Problem is that the while loop comes later :o How would you add this code to it? // Begin Unsubscribe hack $mimemessage = new email(array('X-Mailer: osCommerce bulk mailer')); while ($mail = tep_db_fetch_array($mail_query)) { $mimemessage->add_html($this->content . TEXT_UNSUBSCRIBE . '<a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . FILENAME_UNSUBSCRIBE . "?email=" . $mail['customers_email_address'] . '">' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . FILENAME_UNSUBSCRIBE . "?email=" . $mail['customers_email_address'] . '</a>'); $mimemessage->build_message(); $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this->title); } // End Unsubscribe hack
  13. Is there an alternative for displaying a unsubscribe link to the newsletter?
  14. Thanks Jim, Then somebody who's having a working version AND the HTML contri could solve my problem. More people asked questions about using this contri toghether with the MAXIDVD WYSIWYG HTML contri. I supose at least one of them has got this working (?) If so, please post the code!!
  15. Thanks in advance Jim! Hope you can solve my problem. I would also appreciate if other people help us/me ... Could it have something to do with security? Could someone give me a url to a shop with a working version of this contri?
  16. Any suggestions how to find out why te variable . $mail['customers_email_address'] . is not working?
  17. Thanks Jim, I've tryed it but there's no e-mailadress before the unsubscribe message. So something goes wrong with the variable . $mail['customers_email_address'] . But where? :blink:
  18. The error in Admin comes if I submit the Send button to send the newsletter...
  19. It gives an error in my Admin: Parse error: parse error in c:\domains\mydomain.nl\wwwroot\webshop\catalog\admin\includes\modules\newsletters\newsletter.php on line 67 Line 67 is (your modified line): $mimemessage->add_html($this->content . $mail['customers_email_address'] . 'TEXT_UNSUBSCRIBE . '<a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . FILENAME_UNSUBSCRIBE . "?email=" . $mail['customers_email_address'] . '">here</a>');
  20. Thanks for the reply. The link shows up in the newsletter but because the e-mailadress is missing it doesn't work. If I click the link I'm going to the url: http://www.mydomain.nl/webshop/catalog/uns...ribe.php?email= As you can see in my code posted earlier I've used the variable "?email=" . $mail['customers_email_address'] . '">here</a>'); But somehow it's not working, something wrong in the coding line?
  21. I'm also using the WYSIWYG HTMLArea MS2 v1.7 contribution. Would anybody be so kind to give the code to implement this nice unsubscribe contri together with WYSIWYG please? If I use it like this: function send($newsletter_id) { $mail_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'"); $mimemessage = new email(array('X-Mailer: osCommerce bulk mailer')); // MaxiDVD Added Line For WYSIWYG HTML Area: BOF (Send TEXT Newsletter v1.7 when WYSIWYG Disabled) if (HTML_AREA_WYSIWYG_DISABLE_NEWSLETTER == 'Disable') { $mimemessage->add_text($this->content . TEXT_UNSUBSCRIBE . '<a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . FILENAME_UNSUBSCRIBE . "?email=" . $mail['customers_email_address'] . '">here</a>'); } else { $mimemessage->add_html($this->content . TEXT_UNSUBSCRIBE . '<a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . FILENAME_UNSUBSCRIBE . "?email=" . $mail['customers_email_address'] . '">here</a>'); // MaxiDVD Added Line For WYSIWYG HTML Area: EOF (Send HTML Newsletter v1.7 when WYSIWYG Enabled) } $mimemessage->build_message(); while ($mail = tep_db_fetch_array($mail_query)) { $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this->title); } $newsletter_id = tep_db_prepare_input($newsletter_id); tep_db_query("update " . TABLE_NEWSLETTERS . " set date_sent = now(), status = '1' where newsletters_id = '" . tep_db_input($newsletter_id) . "'"); } } ?> there's no e-mailadres attached to the link :'(
×
×
  • Create New...