Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2006
    Posts
    413
    Plugin Contributions
    0

    Default Can I add a unique number to the beginning of theEmail Subject - Contact Us

    I would like a unique number to be placed in the email subject field, placing it before the 'Website Inquiry from '... define('EMAIL_SUBJECT', 'Website Inquiry from ' . STORE_NAME);

    So, for example, the received email subject would be something like: 3299 Website Inquiry from myStore

    Any ideas as to how to achieve this? Thanks.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Email Subject - Contact Us

    One would need to add a table or a record to an existing table as a counter
    Then add code to lookup this table/value and increment it by "1" and include it - code it into the contact us file

    Most likely as part of the "submit" action so that customers just navigating to this page do not add to the count
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2006
    Posts
    413
    Plugin Contributions
    0

    Default Re: Email Subject - Contact Us

    I see. Well the purpose of this is quite simple, it is to prevent emails being grouped within the same thread by subject and easier to fwd to sales reps without editing the subject, so anything unique within the subject field would work.

    What about the using Date and Time, eg Mon May 27 2013 16:54:20 EST. Can you advise how I might use OFFICE_DATE_TIME as part of my email subject?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Email Subject - Contact Us

    Just add your desired prefix into the define. You can use straight text, or dynamic such as the current date.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Apr 2006
    Posts
    413
    Plugin Contributions
    0

    Default Re: Email Subject - Contact Us

    Thanks, piece of cake. I used . date("D M j Y G:i:s T")

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Email Subject - Contact Us

    That's probably a lot more "date" than really needed. But yes it'll work.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Apr 2006
    Posts
    413
    Plugin Contributions
    0

    Default Re: Email Subject - Contact Us

    Indeed, I did end up cutting off the :s T portion of that. Unless I get more than one email per minute Google Apps will now threat them as separate emails and not combine them as part of a long thread.

 

 

Similar Threads

  1. v150 Contact Us - Add Subject support thread
    By gjh42 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 9 Jan 2019, 06:04 AM
  2. Replies: 1
    Last Post: 8 Mar 2011, 01:36 AM
  3. Captcha Number Subject -- Subject only not working
    By isbrucker in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 9 Feb 2010, 09:37 PM
  4. Add subject field to contact us
    By high2K in forum General Questions
    Replies: 0
    Last Post: 19 Jun 2007, 04:17 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR