Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 General
 Suggestions - NOT QUESTIONS
 Improvements to Ask a Question and Email A Friend
Author « Topic »  

ITZAP
Ecommerce Template Guru

Australia
1017 Posts

Posted - 02/19/2018 :  19:19:15  
Hopefully the ECT team will adopt dbdave's suggestion to add an Email verification feature to the "Ask a Question / Email a Friend" form.

If you proceed to modify emailfriend.php/asp, then perhaps you could also consider making these very simple improvements ...

----------------------------------------
(1) Print line breaks in the "Comments" section of the email message body.
Alter LINE 78 of emailfriend.php as follows:

$yourcomments=str_replace(array("\r\n", "\n", "\r"),$emlNl,substr(getpost('yourcomments'),0,2000));

----------------------------------------
(2) In the email message body, print ProdID - ProdName ... just in case the visitor deletes that info from the comments field when entering their question. Also print VisitorName and VisitorEmail in the body.
Alter LINE 80 as follows:

$seBody='A question about: ' . getpost('origprodid') . $emlNl . 'Received from: ' . $yourname . ', ' . $youremail . $emlNl . $emlNl . $yourcomments . $emlNl;

----------------------------------------
(3) Enhance detail in email Subject line to include VisitorName and ProdID
Alter LINE 86 as follows:

$thesubject=$xxAsqSub . ' from ' . $yourname . ' about ' . $theprodid;

So if you added this language override to includes.php:
$xxAsqSub='A question';
Then the email message title would read something like: A question from Gary Flack about minicss-widgets

Gary

dbdave
ECT Moderator

USA
10406 Posts

Posted - 02/19/2018 :  20:12:13  
Great suggestions.
I do not use email a friend, but I have actually implemented some of your suggestions for ask a question.

We had a problem with customers erasing the product info, so we fixed that.
For the customer, the form is blank, but when we get the email, the product info is there.
I also did add the email verification.

It would be terrific if that was native and one less mod to do when updating.

Marshall
Ecommerce Template Guru

USA
1909 Posts

Posted - 02/19/2018 :  21:10:20  
If you use the optional fields for Ask a Question, 9 are available, you can add information there without altering the ECT files. I added the product URL to Ask a Question to make it easier for the seller to identify the product. It is in a read only field so the sender cannot erase it. This is what I put in the includes.asp
dim refurl
refurl=Request.ServerVariables ("HTTP_REFERER")
askquestionparam1=" " 'Needs to have a space, or text, to register
askquestionrequired1=FALSE
askquestionhtml1="<input type=""text"" name=""ectfield"" id=""ectfield"" readonly=""readonly"" value="&refurl&" style=""border:none;width:100%;"">"
Works like a charm.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

ITZAP
Ecommerce Template Guru

Australia
1017 Posts

Posted - 06/24/2018 :  20:42:00  
The code above is a really simple improvement to the "Email a Friend" feature.
Hoping that Ecommerce Templates will adopt these basic code changes soon ?



Ecommerce Templates PHP users who would like to try this now can download my modified emailfriend.php file here >>
Suitable for Ecommerce Plus PHP v6.8.0 released July 2017 and all later versions, you will need these entries in your includes.php config file:

$xxAsqSub='A question';
$xxAskCom='About: ';


Gary

Edited by - ITZAP on 06/27/2018 19:35:43

Vince
Administrator

42750 Posts

Posted - 06/28/2018 :  08:55:33  
Some good points here and most of the issues have been addressed for the next release.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000