Re: privent google from indexing: xxx.com/?tracking=*** AND xxx.com/?coupon=*** links
That works greatADD Creative wrote: ↑Mon Feb 24, 2025 11:24 pmYou can set the noindex in htaccess.
Code: Select all
<If "%{QUERY_STRING} =~ m#(tracking|coupon)=#i"> Header set X-Robots-Tag "noindex" </If>

I tried using FilesMatch but couldn't get it work
. Jump to post
- General Support
- [SOLVED] prevent google from indexing: xxx.com/?tracking=*** AND xxx.com/?coupon=*** links
- Tue Feb 25, 2025 7:38 am
- Replies 5
- Views 2001
[SOLVED] prevent google from indexing: xxx.com/?tracking=*** AND xxx.com/?coupon=*** links
What do you guys put into your robots.txt to prevent search engines from indexing: xxx.com/?tracking=*** AND xxx.com/?coupon=*** PS I think below works, but I can't really use it because I use /?tracking=** in my google ads and I think this gets my ads disapproved. Disallow: /*?tracking Disallow: /*...
Jump to post- General Support
- [SOLVED] prevent google from indexing: xxx.com/?tracking=*** AND xxx.com/?coupon=*** links
- Mon Feb 24, 2025 1:44 am
- Replies 5
- Views 2001
Re: [SOLVED] error after making and install a new ocmod, help
After more digging into the issue and looking at the raw log file from my server I have realized this error is 100% happening becuase of a spam BOT visiting my contact page. Issue solved.
Jump to post- Sun Feb 23, 2025 6:46 am
- Replies 3
- Views 477
Re: error after making and install a new ocmod, help
You know I was thinking it could be a spam bot doing this because when I fill out the contact form, even when I fill it out incorrectly, I still don't get the error in my logs. Error only shows up in logs sometimes, could be a few days in between, and sometimes 2 times in an hour but I can't persona...
Jump to post- Sat Feb 22, 2025 6:37 am
- Replies 3
- Views 477
[SOLVED] error after making and install a new ocmod, help
I made this ocmod to add a few extra fields to the contact form. Ocmod works fine but once in a while I end up getting an error in my storage logs. I really don't understand why this error happens... Can someone take a look and see if you can spot why my OCmod would causing this error ONLY once in a...
Jump to post- Sat Feb 22, 2025 3:12 am
- Replies 3
- Views 477
Re: Is it possible to auto-fill in a text field via page URL or via URL query?
Ok thanks guys, got it to work ツ In theme view change: <input type="text" name="email" value="" required="required" id="emailField" class="form-control" /> TO: <input type="text" name="email" value="{{ email|e }}&qu...
Jump to post- Sat Feb 22, 2025 1:47 am
- Replies 3
- Views 390
[SOLVED] Is it possible to auto-fill in a text field via page URL or via URL query?
Is it possible to auto-fill a text file on a page via visiting the URL directly and by adding a query to the URL? Say by visiting account login page at: site.com/index.php?route=account/login Can I add a query to URL to fill in the email-address field? I was thinking maybe changing the URL to someth...
Jump to post- Fri Feb 21, 2025 11:16 am
- Replies 3
- Views 390
Re: [SOLVED] Add extra field to contact form, almost there, need a bit of help
I made a FREE ocmod for this if anyone needs it:
https://www.opencart.com/index.php?rout ... n_id=47024
.
- Wed Feb 19, 2025 11:17 am
- Replies 4
- Views 630
Re: Add extra field to contact form, almost there, need a bit of help
Actually never mind guys, chatgpt gave me an example and I was able to make it work
Code: Select all
$mail->setText(
"Enquiry: " . $this->request->post['enquiry'] . "\n" .
"Vehicle: " . $this->request->post['vehicle']
);
- Wed Feb 19, 2025 1:26 am
- Replies 4
- Views 630
[SOLVED] Add extra field to contact form, almost there, need a bit of help
Trying to add an extra field to OC3 contact forum. Have everything put into a OCmod and everything almost works. Can someone tell me how to add my 2 new fields: 'vehicle' and 'hearaboutus' to this line of code: $mail->setText($this->request->post['enquiry']); How do I change to 'enquiry' to include ...
Jump to post- Wed Feb 19, 2025 1:16 am
- Replies 4
- Views 630
Re: [SOLVED] Receive an email anytime admin logs in
Haha, I was gonna ask if you named the xml file: install.xml
And it's a not waste of time, forums are for learning... I'm sure this will help many others in future
.
- Sun Jan 05, 2025 1:55 am
- Replies 39
- Views 4295
Re: [SOLVED] Receive an email anytime admin logs in
I do all my coding and compression on a M1 MacBook Air and never had issues with a compressed ocmod "install.xml"
Double click the install.xml file, and click: "Compress install.xml", then rename the compressed file so that it ends with: XXX.ocmod.zip
.
- Sat Jan 04, 2025 11:58 pm
- Replies 39
- Views 4295
Re: Receive an email anytime admin logs in [SOLVED]
I just compared his code to your new OCmod code and there is nothing in there that I can see that would make his code not work.
No clue why his code didn't work lol
.
- Sat Jan 04, 2025 10:25 am
- Replies 39
- Views 4295
Re: Receive an email anytime admin logs in [SOLVED]
Does your admin/controller/common/login.php file have this line of code in it: $this->session->data['user_token'] = token(32); It should be there around line 15. Your OCmod file looks fine, I don't see why it woundn't work. Maybe someone else here sees an issue? "Send email on Admin Login"...
Jump to post- Sat Jan 04, 2025 9:32 am
- Replies 39
- Views 4295
Re: Receive an email anytime admin logs in [SOLVED]
Post a copy of your full XML ocmod file
PS did you refresh your modification after installation??
.
- Fri Jan 03, 2025 10:29 am
- Replies 39
- Views 4295
Re: Receive an email anytime admin logs in
You use the code below if you are making an ocmod for installation through admin->extensions->installer page... If you are hardcoding the code into the login.php file directly (hardcoding is never really recommended), you don't need the code below, and you don't need a bunch of other code from my or...
Jump to post- Thu Jan 02, 2025 3:23 pm
- Replies 39
- Views 4295
Re: Receive an email anytime admin logs in
Not sure why it's not working on your 3.0.4.0. Login.php file is pretty much the same as my 3.0.3.2.
Maybe someone else can tell us how to pull username another way.
PS put your code after line 15
Code: Select all
$this->session->data['user_token'] = token(32);
- Thu Jan 02, 2025 12:20 pm
- Replies 39
- Views 4295
Re: Receive an email anytime admin logs in
Thanks to everyone contributing this is what I came up with.. Just: -replace the email address with your email address -zip it -rename it: admin_login_email.ocmod.zip -and install it Simple, but does the job ツ <?xml version="1.0" encoding="utf-8"?> <modification> <name>Send emai...
Jump to post- Thu Jan 02, 2025 12:19 am
- Replies 39
- Views 4295
Re: Receive an email anytime admin logs in
@supak111, So it works for you or no? You stated two different things. I see you are using 3.0.3.2, that may be the issue. I made this on 3.0.3.8 and using it on 3.0.3.9. Either way, it is a simple mod and should be easily adaptable to most versions. No it does not send email upon admin login and I...
Jump to post- Wed Jan 01, 2025 10:32 pm
- Replies 39
- Views 4295
Re: Receive an email anytime admin logs in
just copy and adapt the logic of one of the admin mail events like admin/controller/mail/transaction.php and set the trigger on model admin/model/user/user/deleteLoginAttempts/before, that function is called when a user successfuly signs in. Total noob, don't really understand how to do this with e...
Jump to post- Tue Dec 31, 2024 10:45 am
- Replies 39
- Views 4295