phpCOIN
Merry Christmas

  Reply to this topicStart new topicStart Poll

> Sending Product Name And Client Info On Order, sending product name and client info
qtriangle
Posted: April 15, 2012 07:55 am
Quote Post


Member
**

Group: Members
Posts: 19
Member No.: 3,942
Joined: August 19, 2009



When a customer puts an order, admin gets an email ("Order ID: #### was just input into the system and client showed paylink.")

Usually when you get this ack email, it does not have any other info.

You need to go to admin section and check which client has made the order and what product he has purchased.

At times it is required that we get client contact information and product name he purchased.

Few disclaimers before anything else:

1. I am not sure if this information can be obtained on client order using any admin parameters. I tried some but was not able to get required info.
2. I have not developed a custom mod, just written a few lines of code as a quick fix.

The code is (put in coin_modules/orders/orders_funcs_order.php):

around line 2169, put this code
CODE

   # Get contact information array
    $_cinfo = get_contact_info($_CCFG['MC_ID_ORDERS']);
    $c_id=$_cinfo['c_id']; //new code
    $clinfo=get_mtp_client_info($c_id);//new code



then around line 2183, put this:
CODE

    $mail['subject'] = $_CCFG['_PKG_NAME_SHORT'].$_LANG['_ORDERS']['ORD_P05_EMAIL_01'];
    $mail['message'] .= $_LANG['_ORDERS']['ORD_P05_EMAIL_02'].$insert_id_ord.$_LANG['_ORDERS']['ORD_P05_EMAIL_03'];//new code
    $mail['message'] .= $_nl."Package:".$adata['prod_name'].$_nl.$_nl.$clinfo['cl_info'];//new code


Hope it helps someone.

This post has been edited by dpsmails on April 15, 2012 08:00 am
PMEmail Poster
Top
nootkan
Posted: April 23, 2012 03:22 am
Quote Post


Advanced Member
***

Group: Members
Posts: 100
Member No.: 4,017
Joined: October 13, 2009



Great thanks for this. wink.gif
PMEmail Poster
Top
Jasmine
  Posted: November 21, 2017 09:19 pm
Quote Post


Newbie
*

Group: Probation
Posts: 1
Member No.: 4,649
Joined: November 21, 2017



QUOTE (qtriangle @ April 15, 2012 06:55 am)
When a customer puts an order, admin gets an email ("Order ID: #### was just input into the system and client showed paylink.")

Usually when you get this ack email, it does not have any other info.

You need to go to admin section and check which client has made the order and what product he has purchased.

At times it is required that we get client contact information and product name he purchased.

Few disclaimers before anything else:

1. I am not sure if this information can be obtained on client order using any admin parameters. I tried some but was not able to get required info.
2. I have not developed a custom mod, just written a few lines of code as a quick fix.

The code is (put in coin_modules/orders/orders_funcs_order.php):

around line 2169, put this code
CODE

   # Get contact information array
    $_cinfo = get_contact_info($_CCFG['MC_ID_ORDERS']);
    $c_id=$_cinfo['c_id']; //new code
    $clinfo=get_mtp_client_info($c_id);//new code



then around line 2183, put this:
CODE

    $mail['subject'] = $_CCFG['_PKG_NAME_SHORT'].$_LANG['_ORDERS']['ORD_P05_EMAIL_01'];
    $mail['message'] .= $_LANG['_ORDERS']['ORD_P05_EMAIL_02'].$insert_id_ord.$_LANG['_ORDERS']['ORD_P05_EMAIL_03'];//new code
    $mail['message'] .= $_nl."Package:".$adata['prod_name'].$_nl.$_nl.$clinfo['cl_info'];//new code


Hope it helps someone.




it's helpful for me Thanks


--------------------
Top 3 legal steroids https://legalsteroids.best 2017
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 


Inscrita el Registro Mercantil de Mallorca Tomo 2140, Hoja No. PM-51034, Folio 135
This website owned and operated by: Technology Services RPVW S.L. CIF# B57345084
Avda Constitucion 48 Bajos Alaro 07340 Baleares SPAIN
Tel:+34 971518362    Fax: +34 971518368    eMail: support@phpcoin.com