Thread: Post Admin name

Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Jul 2004
    Posts
    167
    Plugin Contributions
    0

    Default Post Admin name

    Hi

    How do I change the following code to post the actual 'admin_name' from the admin table into the 'sent_fistname' field in the coupon_email_track table?

    I think this is the code to alter in the relevent file:

    $db->Execute("insert into " . TABLE_COUPON_EMAIL_TRACK . "
    (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent)
    values ('" . $insert_id ."', '0', 'Admin',
    '" . $mail['customers_email_address'] . "', now() )");


    Thanks.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Post Admin name

    What are you trying to accomplish?

  3. #3
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Post Admin name

    Looks like he wants to add

    this coupon was sent curtesy of ( admin real name here )

  4. #4
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Post Admin name

    The following bolded statement is the one you need to modify from your quote above:


    $db->Execute("insert into " . TABLE_COUPON_EMAIL_TRACK . "
    (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent)
    values ('" . $insert_id ."', '0', 'Admin',
    '" . $mail['customers_email_address'] . "', now() )");
    it should be changed into the existent string that actually gathers the sender's firstname.

  5. #5
    Join Date
    Jul 2004
    Posts
    167
    Plugin Contributions
    0

    Default Re: Post Admin name

    Quote Originally Posted by TheOracle
    The following bolded statement is the one you need to modify from your quote above:



    it should be changed into the existent string that actually gathers the sender's firstname.
    I totally agree, what I want to substitute it with is, the detail of whatever the admin user who is logged in at the time is.

    For example, say John who works for us, is logged in to the admin backend of the store sends a credit to a customer, it would show him as the sender on the report.

    Hope you follow if not please feel free to let me know.

  6. #6
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Post Admin name

    I thought ... it was already like that.

    I'd sure be happy to make this modification. I will post the results shortly (if no one else post it before I do).

  7. #7
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Post Admin name

    this is only hindered by the fact that unless you use your employees real names for usernames it could look rather funny.

 

 

Similar Threads

  1. v150 change main host folder name and admin folder name after install?
    By Johnnycopilot in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 27 Aug 2012, 08:25 PM
  2. HEADING_TITLE as the post title, not the category name
    By woolexs in forum Basic Configuration
    Replies: 3
    Last Post: 6 May 2009, 11:24 AM
  3. field name for post amount ?
    By fulltilt in forum General Questions
    Replies: 0
    Last Post: 14 Feb 2009, 01:02 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