Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Hi, I have looked through the forum for this and tried various "solutions" to no avail

    My order confirmation emails have the subject "SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT Order confirmation No:

    As this forum suggested I re uploaded my email extras files, shop and admin but that did not work. My language files are set to utf8. here is the relevant part of email extras

    // Admin additional email subjects
    define('SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT','[CREATE ACCOUNT]');
    define('SEND_EXTRA_GV_CUSTOMER_EMAILS_TO_SUBJECT','[GV CUSTOMER SENT]');
    define('SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT','[NEW ORDER]');
    define('SEND_EXTRA_CC_EMAILS_TO_SUBJECT','[EXTRA CC ORDER info] #');

    also in order confirmations the is a funny A before the £ sign
    1 x Collapsible Funnel (CNF1) = £18.33
    ------------------------------------------------------
    Sub-Total: £18.33
    Shipping by UK Postcode (Parcel To: TN34 3SB): £7.50
    VAT: £5.17
    Total: £31.00

    In admin, email options convert currencies for text emails is set to £,£:€,€

    site is 25a.co.uk,

    Thanks in advance

    Congerman

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    I don't necessarily have a direct solution for the extra character before the British pound symbol; however, with regards to the emails_extra issue...

    Seems like the most likely issue is that you have a file named emails_extra.php in your includes/languages/english/YOUR_TEMPLATE/ directory and that it does not have the SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT constant defined in it
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Quote Originally Posted by mc12345678 View Post
    I don't necessarily have a direct solution for the extra character before the British pound symbol; however, with regards to the emails_extra issue...

    Seems like the most likely issue is that you have a file named emails_extra.php in your includes/languages/english/YOUR_TEMPLATE/ directory and that it does not have the SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT constant defined in it
    I am not using that override file but thanks for the thought

    Any other clues?

  4. #4
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Just noticed that the wrong subject is not limited to order confirmation. It appears to be all mails sent to admin like this for create account email sent to admin ( [CREATE ACCOUNT] Welcome to 25A.co.uk was the subject )

  5. #5
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Quote Originally Posted by Congerman View Post
    I am not using that override file but thanks for the thought

    Any other clues?
    Not to be a pain, but when you say not using, the question is really does it exist in filename or not?

    The next set of questions or possibilities are,
    1) does your site offer any language other than english,
    2) has the english.php file in includes/languages been modified to remove loading of the FILENAME_EMAILS_EXTRA file.
    3) In developers toolkit, if you search for SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT in the loower left search box, how many instances appear and in what files? (Paste results between [CODE] and [/CODE] tags generated by clicking the # button in the reply message toolbar. Be sure not to include your admin folder name if it is in the results.)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Quote Originally Posted by Congerman View Post
    Just noticed that the wrong subject is not limited to order confirmation. It appears to be all mails sent to admin like this for create account email sent to admin ( [CREATE ACCOUNT] Welcome to 25A.co.uk was the subject )
    That one is actually correctly formatted. Notice in the OP that
    Code:
    define('SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT','[CREATE ACCOUNT]');
    The right side shows [CREATE ACCOUNT] as the text to be included...

    Any error logs in your logs directory (ZC 1.5.1 and above) or cache directory (ZC 1.5.0 and below)..
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    I am not overriding email extras so it is using the base one. Below is sample from that file

    define('SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT','[CREATE ACCOUNT]');
    define('SEND_EXTRA_GV_CUSTOMER_EMAILS_TO_SUBJECT','[GV CUSTOMER SENT]');
    define('SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT','[NEW ORDER]');
    define('SEND_EXTRA_CC_EMAILS_TO_SUBJECT','[EXTRA CC ORDER info] #');

    1) English only

    2) FILENAME_EMAILS_EXTRA not found in my english.php

    3)
    Code:
    /home/sites/25a.co.uk/public_html/includes/classes/order.php
    
    Line #1047 : zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
     
    /home/sites/25a.co.uk/public_html/includes/languages/english/email_extras.php
    
    Line #42 : define('SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT','[NEW ORDER]');

  8. #8
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    So this also leads to identifying if the email subject is properly formatted for substitution of the constant...

    In includes/classes/order.php around line 1099 the content should read as below (ZC 1.5.4 used for this example):
    Code:
    zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Quote Originally Posted by Congerman View Post
    2) FILENAME_EMAILS_EXTRA not found in my english.php
    Yeah, that's because I requested the wrong information. :) Oops..

    FILENAME_EMAIL_EXTRAS is the constant that should be expected... Under normal installations this should resolve to a define providing email_extras but...

    Now because the create account works correctly, it would help to then search for the constant that provides that replacement, so try searching for: SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT using the above methodology.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Quote Originally Posted by mc12345678 View Post
    So this also leads to identifying if the email subject is properly formatted for substitution of the constant...

    In includes/classes/order.php around line 1099 the content should read as below (ZC 1.5.4 used for this example):
    Code:
    zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
    I have
    Code:
     zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Starnge Payment Issue
    By holsterland in forum General Questions
    Replies: 1
    Last Post: 24 Mar 2011, 03:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg