Hello,
OC 2.3.0.2
I WAS using this extension: https://www.opencart.com/index.php?rout ... n_id=28057
But since it has no captcha I was getting lots of crap emails. (It is amazing I reenabled it 12 hours ago and in those 12 hours I received 5 spam emails).
All I am looking for is a way to have someone on a product page be able to click a link, direct them to the contact page with the product name added into the enquiry field so they can ask a question about the product. At least the contact form has a captcha.
I searched through the extensions and the forum and didn't find anything so if anyone has a suggestion I'd be thankful..
Thank you,
Mike
OC 2.3.0.2
I WAS using this extension: https://www.opencart.com/index.php?rout ... n_id=28057
But since it has no captcha I was getting lots of crap emails. (It is amazing I reenabled it 12 hours ago and in those 12 hours I received 5 spam emails).
All I am looking for is a way to have someone on a product page be able to click a link, direct them to the contact page with the product name added into the enquiry field so they can ask a question about the product. At least the contact form has a captcha.
I searched through the extensions and the forum and didn't find anything so if anyone has a suggestion I'd be thankful..
Thank you,
Mike
cue4cheap not cheap quality
Maybe we could add like a hidden field to the form.
This hidden field could help us detect spam bot, those bots don't usually click the mouse.
Then check if it's filled out or not.
If it's empty or something weird is in there, trigger an error message.
This hidden field could help us detect spam bot, those bots don't usually click the mouse.
Then check if it's filled out or not.
If it's empty or something weird is in there, trigger an error message.
View all extensions | Request custom work | Pricing | Contact Me
Funny, why not buying the Pro version of this extension?Cue4cheap wrote: ↑Sat Mar 16, 2024 4:06 amHello,
OC 2.3.0.2
I WAS using this extension: https://www.opencart.com/index.php?rout ... n_id=28057
But since it has no captcha I was getting lots of crap emails. (It is amazing I reenabled it 12 hours ago and in those 12 hours I received 5 spam emails).
All I am looking for is a way to have someone on a product page be able to click a link, direct them to the contact page with the product name added into the enquiry field so they can ask a question about the product. At least the contact form has a captcha.
I searched through the extensions and the forum and didn't find anything so if anyone has a suggestion I'd be thankful..
Thank you,
Mike
Beside this, adding a Honeypot to both is the easiest task for every simple developer.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Well, Form Builder Pro can do this, but it might be overkill for just that one need. If you do want to get it, feel free to contact me at www.getclearthinking.com/contact and I can help you set it up.
Otherwise, if you just need the product name, you could add it into a query string variable of a contact page URL, and then use that to preload the name into the field. Here's the edit you'd need to do in the contact page controller:
Then, you'd add a link on the product page that looks like this:
If you wanted to put it on all product pages, then you'd add a link somewhere in the product/product.twig file like this:
Hope that helps
Otherwise, if you just need the product name, you could add it into a query string variable of a contact page URL, and then use that to preload the name into the field. Here's the edit you'd need to do in the contact page controller:
Code: Select all
IN:
/catalog/controller/information/contact.php
REPLACE:
$data['enquiry'] = '';
WITH:
if (!empty($this->request->get['product'])) {
$data['enquiry'] = 'Question about ' . $this->request->get['product'] . ': ';
} else {
$data['enquiry'] = '';
}
Then, you'd add a link on the product page that looks like this:
Code: Select all
https://www.yoursite.com/index.php?route=information/contact&product=The Product Name
If you wanted to put it on all product pages, then you'd add a link somewhere in the product/product.twig file like this:
Code: Select all
https://www.yoursite.com/index.php?route=information/contact&product={{ product.name }}
Hope that helps
Or, by using the customer search table to pull the product ID whereas the current customer ID is currently logged in to avoid the SPAMs. OC 4 releases also uses tokens on the frontend to ensure reliability prior to form postings.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
That was exactly what I was looking for. Simple and to the point. They click and get directed to the contact page with product info filled into the form.Johnathan wrote: ↑Sat Mar 16, 2024 9:41 pmWell, Form Builder Pro can do this, but it might be overkill for just that one need. If you do want to get it, feel free to contact me at www.getclearthinking.com/contact and I can help you set it up.
-----
Hope that helps
Thank you very much,
Mike
cue4cheap not cheap quality
Who is online
Users browsing this forum: No registered users and 8 guests