Enhanced Contact Us for 2.3.1
#1
Posted 29 January 2012 - 11:25 AM
I take no credit for this modification, all I have done is take the Contact-Us page from the Anti-Hacker-account-Mods by Spooks and made it work on 2.3.1.
I hate looking at Contact Us Pages that only contain a web-based enquiry form, I like to know who and where the shop is. This change will provide a more professional look to the stock OSC Contact Us page, with enhanced functions.
What It does:
The Enhanced Contact Us page provides more information to the customer, such as Store Address, Telephone Number, Opening Hours, Anticipated Response Times Etc. (tailor these in the language files)
Also, if the customer is logged in to their account, it pre-populates their email address and allows them to select a previous order to enquire about from a drop-down box.
The email that is sent to the store contains the originators IP address, Date and time etc.
Easy Installation - 1 New File + 2 Language file additions.
Screen shot included.
Please feel free to Improve on this - but please only post Full Packages.
If you want to see the mods I have installed, then see my profile.
#2
Posted 29 January 2012 - 01:33 PM
If you want to see the mods I have installed, then see my profile.
#3
Posted 29 January 2012 - 10:28 PM
Mort-lemur, on 29 January 2012 - 11:25 AM, said:
Heather, thanks for tackling this update. Spooks did some great work on earlier versions of Osc and I have a lot of them on my 2.2 shops. The Spooks version of Contact Us add on for 2.3.1 was something I wanted to get to.
I installed and tested your version and it worked great with both a registered and non registered customer.
I made some changes to the catalog/contact_us.php file by scrubbing out some residuals from 2.2 coding. I did this using the post by Kymation. My preference is to do away with the Osc gifs such as table_background_contact_us.gif, pixel_trans.gif, etc. so I removed the coding that did that too. Lastly, to get a white background, (again my preference) I had to do some styleseet.css changes as well.
I don't plan to post anything until I let the shop sit for a little while and make sure no surprises came up because of these changes I made on top of what you did. I can only think the stylesheet change might give me some unexpected results but I don't think so. We'll see after a bit of watching how things go.
Thanks again for taking the time to do this. I know it took some time and effort on your behalf.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.
#4
Posted 01 February 2012 - 12:28 AM
#5
Posted 01 February 2012 - 06:32 PM
Contains code cleanup and removal of old images by Altoid
Also now has an optional recaptch element to protect from automated contact us spam mail - by Mort Lemur
If you want to see the mods I have installed, then see my profile.
#6
Posted 02 February 2012 - 01:55 AM
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.
#7
Posted 03 February 2012 - 12:17 AM
altoid, on 02 February 2012 - 01:55 AM, said:
Just was testing the recaptcha...that works in its own right, but something has effected the result in that the body of the received email no longer contains any of this info:
Message from:
Date Sent:
Telephone Number
Client Number:
At IP:
Inquiry:
The message itself shows but none of the above.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.
#8
Posted 03 February 2012 - 01:28 AM
Around line 40 in the "recaptcha" version replace
if (tep_validate_email($email) && ($resp->is_valid)) {
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email);
with
if (tep_validate_email($email) && ($resp->is_valid)) {
$enquiry = MESSAGE_FROM . $name . "\n" . $date . "\n" . ($phone ? ENTRY_TELEPHONE_NUMBER . $phone . "\n" : '' ) . ($customer_id ? MAIL_CLIENT_ID . $customer_id . "\n" : '') . ($orders_id ? MAIL_ORDER_ID . $orders_id . "\n" : '') . "\n" . MAIL_IP . $xipaddress . '.' . "\n\n" . ENTRY_ENQUIRY . "\n" . $enquiry;
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email);
Still needs some work as the "subject" isn't showing.
Note my signature...not a professional coder, so that disclaimer is out there.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.
#9
Posted 03 February 2012 - 04:16 PM
The fix for this is :
in catalog/contact_us.php find (around line 40)
if (tep_validate_email($email) && ($resp->is_valid)) {
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email);
Replace with:
if (tep_validate_email($email) && ($resp->is_valid)) {
$enquiry = MESSAGE_FROM . $name . "\n" . $date . "\n" . ($phone ? ENTRY_TELEPHONE_NUMBER . $phone . "\n" : '' ) . ($customer_id ? MAIL_CLIENT_ID . $customer_id . "\n" : '') . ($orders_id ? MAIL_ORDER_ID . $orders_id . "\n" : '') . "\n" . MAIL_IP . $xipaddress . '.' . "\n\n" . ENTRY_ENQUIRY . "\n" . $enquiry;
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $subject, $enquiry, $name, $email);
I have tested this several times and it works on my site.
I will post an update in due course.
My signature should read " I really dont have a clue what Im doing - Im just stumbling along"
Thanks
If you want to see the mods I have installed, then see my profile.
#10
Posted 04 February 2012 - 02:31 PM
Mort-lemur, on 03 February 2012 - 04:16 PM, said:
Same here. Thank you.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.
#11
Posted 22 February 2012 - 10:28 PM
Can someone please help
#12
Posted 24 February 2012 - 09:39 PM
Billybill, on 22 February 2012 - 10:28 PM, said:
Can someone please help
Hi,
This contribution plucks the address from the store address in Admin/configuration settings, just add your address and phone number there.
Thanks
If you want to see the mods I have installed, then see my profile.
#13
Posted 12 March 2012 - 03:43 PM
Attached Files
#14
Posted 13 March 2012 - 09:23 PM
Backup first then make changes to the colours called up in infobox lines until you get the result you need.
Maybe someone will update the contribution at sometime so that it works with the themeswitcher
If you want to see the mods I have installed, then see my profile.
#15
Posted 13 March 2012 - 09:42 PM
Mort-lemur, on 13 March 2012 - 09:23 PM, said:
#16
Posted 13 March 2012 - 10:09 PM
You need to modify the hex code in stylesheet css to add the hex code of the colours you require. the colour is controlled by this line:
.infoBox {
background: #ffffff;
}
If you want to see the mods I have installed, then see my profile.
#17
Posted 15 March 2012 - 01:33 AM
1. I did this upgrade cause I am not receiving customer emails. After doing the upgrade, I am still not receiving any emails from anyone.
2. How do I get rid of the grey background. I would like to make the background transparent.
www.RonisRingsNThings.com if you want to see what I am talking about. I have not changed any of the wording or anything yet, but just want to get it working. Other than that, the site is fully up and running. Just realized I was not getting any emails. Please help.
#18
Posted 15 March 2012 - 07:29 AM
Check your email settings in admin-config are set to send emails
Edited by Mort-lemur, 15 March 2012 - 07:30 AM.
If you want to see the mods I have installed, then see my profile.
#19
Posted 15 March 2012 - 10:41 AM
#20
Posted 15 March 2012 - 12:22 PM
Hi there, I see you've made some other posts regarding email problems. I'm not a coder (see my sig) but as a suggestion since you don't know when this started considering looking back to any mods you have made that may have effected email function in osC.
Somewhile ago I was having an email problem and had to do some digging through various threads here on osC to figure out where the problem may be. I think you'll find some threads dedicated to email problems.
Another thing to consider is that sometimes the emailing issue is due to your site host set up. I think this is mentioned in some of those threads.
Anyway...I wish I could point something more specific to help you out, but I'd start with basic email functionality issues first, get those resolved, then move onto email upgrades (such as the enhanced contact, etc.) and other email tweaks.
Good luck
Edited by altoid, 15 March 2012 - 12:24 PM.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.










