This is a discussion on Adding more details to "Contact The Seller" Email sent to Seller within the v3.1 Modules & Modifications forums, part of the v3.1 Legacy Help & Support category; Is it possible to add some more info to the email sent to seller from the buyer ? Currently it ...
|
|||||||
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Is it possible to add some more info to the email sent to seller from the buyer ?
Currently it only says this .. The following message was sent to you by USER who has been viewing your listing at the XXXXXXXX web site. http://www.yoursite.com.au/viewlisting.php?view=1139 Comments testing Is it possible to include the email address and phone number of buyer in this email ? Cheers
__________________
Greg Version 3.1.9 Developer |
|
#2
|
||||
|
||||
|
Greg,
The only way to do this would be to alter the contact.php file. You would need to add the fields to the users query then add new lines where it says: //format the email//
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#3
|
|||
|
|||
|
Thanks for the reply..
Coud you please advise a little more on how this is done... I think you mean add to the users query here...but im not exactly sure what to add PHP Code:
Thanks
__________________
Greg Version 3.1.9 Developer |
|
#4
|
||||
|
||||
|
You should be able to do something like this:
PHP Code:
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#5
|
|||
|
|||
|
Ok, this IS working (sort of) BUT its placing the Sellers email address in the "Contact The Seller" email, which is not quite what I was trying to achieve. The seller already knows his own phone number! Its the buyers phone number I was trying to get in there.
In contact.php I now have this.. PHP Code:
and I also have this ... PHP Code:
PHP Code:
PHP Code:
Thanks
__________________
Greg Version 3.1.9 Developer Last edited by Greg H; 02-25-2008 at 04:45 PM. |
|
#6
|
||||
|
||||
|
In that case you need to create a phone form field and replace this line:
$htmlContent = str_replace("##phone##", $phone, $htmlContent); with: $htmlContent = str_replace("##phone##", $_POST['phone'], $htmlContent);
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#7
|
|||
|
|||
|
Thanks Eric,
Do I need to change anything here too ? PHP Code:
__________________
Greg Version 3.1.9 Developer Last edited by Greg H; 02-26-2008 at 06:03 PM. |
|
#8
|
||||
|
||||
|
From my understanding you want the phone number from the person contacting your user. In that case you would have to add a new field to the contact form and then get the data they entered and add it to the template. That is why I said use $_POST['phone']
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding Email Notifications | alisa | v3.1 Questions & Support | 14 | 12-07-2007 12:26 AM |
| Adding Seller Link to Results Page | art | v3.1 Questions & Support | 7 | 09-04-2006 12:51 AM |
| Adding site url to renewal email message | GSP | v3.0 Questions & Support | 5 | 04-17-2006 08:02 PM |