Search found 17 matches

Page 1 of 1

Search found 17 matches

Re: OpenCart Alpha 3.1.0.0 has been released

We do that all the time. OpenCart supports view/*/before and view/*/after events, in most cases the view/*/after handlers are the easiest to use, allowing you to modify the final DOM tree. Can you give an example? Let's say I want to add a single "<br>" somewhere. Right now I can use ocmod to find ...

Jump to post
  • Mon Oct 12, 2020 5:32 am
  • Replies 149
  • Views 132901
Re: Samesite fix for Opencart 2.3 and PHP 7.1

ADD Creative wrote:
Wed Sep 30, 2020 6:14 pm
For OpenCart 2.3 and PHP 7.1 your best to start at this post, but read my notes in the post below.
viewtopic.php?f=190&t=216579&start=40#p798977
This one actually works, thank you!

Jump to post
  • Thu Oct 01, 2020 5:15 am
  • Replies 3
  • Views 419
Samesite fix for Opencart 2.3 and PHP 7.1

Hi, I have an Opencart 2.3 and PHP 7.1 installation that I need to fix the samesite cookie issues. Even though I have, more or less, managed to do it for test sites on PHP 7.3 I've had no luck getting it to work on PHP 7.1 Could anyone please point me to the right direction/provide me with a solutio...

Jump to post
  • Wed Sep 30, 2020 6:41 am
  • Replies 3
  • Views 419
Re: localhost email xampp

A bit late to the party but if everyone's interested there this little program that receives the mail sent to localhost. Papercut SMTP: https://github.com/ChangemakerStudios/Papercut-SMTP Simply run the program and have it listen to port 25 or whatever you have set it to in XAMPP. Then, whenever an ...

Jump to post
  • Sat Apr 18, 2020 12:21 am
  • Replies 6
  • Views 1323
Re: Make Extension or Module update its own files

I'm glad you are having fun but I'd prefer some doing it as safely (and easily) as possible.

What's the best way to download (and overwrite) a file to some admin or catalog subfolder?

Jump to post
  • Tue Jan 14, 2020 4:29 am
  • Replies 24
  • Views 1095
Re: Make Extension or Module update its own files

thekrotek wrote:
Tue Dec 24, 2019 2:45 am
Develop extension for WordPress then.
That's not a bad suggestion, there's money to be made there but for now I'd rather not.

Jump to post
  • Tue Dec 24, 2019 5:04 pm
  • Replies 24
  • Views 1095
Re: Make Extension or Module update its own files

Yes. Why do you ask? I'd like to implement an update mechanism for an extension I'm coding so whenever a new version gets released they can click a button and update (replace) all of the extension's files without having to go through the trouble of downloading files and then trying to install them ...

Jump to post
  • Tue Dec 24, 2019 2:30 am
  • Replies 24
  • Views 1095
Re: Make Extension or Module update its own files

Ok, let's rephrase it a bit.

Can a basic, already installed extension replace/modify files in catalog\controller\extension\analytics and other such directories without outside help, the same way it does with system\storage\download directory?

Jump to post
  • Mon Dec 23, 2019 3:41 am
  • Replies 24
  • Views 1095
Re: Make Extension or Module update its own files

No OC version posted. Mostly 3.x but I'd like 2.x as well. I think however that you have misunderstood, to some degree, what I'm asking. You have a smartphone, you open the appstore and find an app you like so you download it. A few days later the app's developer updates it so you open the appstore...

Jump to post
  • Sun Dec 22, 2019 11:05 pm
  • Replies 24
  • Views 1095
Make Extension or Module update its own files

Hi, Is there a way to have an extension or module automatically update its own files? If we have the usual php files in admin/controller/extension/etc or catalog/controller/extension/etc can we automatically download new files from "the internet" and replace the existing files in those folders (or e...

Jump to post
  • Sun Dec 22, 2019 10:26 pm
  • Replies 24
  • Views 1095
Re: One extension that Outputs to multiply URLs

opencartmart wrote:
Mon Oct 07, 2019 2:13 pm
You can use OC event. Here are the steps:
That's helpful, thanks!

Because I'm a noob, does some list of events exists somewhere?

I'd be interested in tracking changes to products, categories, options, addresses, etc.

Jump to post
  • Sun Dec 22, 2019 10:07 pm
  • Replies 8
  • Views 594
Re: One extension that Outputs to multiply URLs

If it is one extension outputting different content you have to tell the extension what to output. Use a parameter like: index.php?route=extension/analytics/my_extension&output=categories index.php?route=extension/analytics/my_extension&output=products For some reason it didn't occur to me to use p...

Jump to post
  • Mon Oct 07, 2019 12:28 am
  • Replies 8
  • Views 594
Re: One extension that Outputs to multiply URLs

You should be able to add rows in the url_alias table to map any URL to your extension. I suppose you mean "seo_url" for oc 3.x but that only "renames" the ugly route url, doesn't allow me to create different urls for 1 extension. Essentially, I want to have multiple $this->response->setOutput to a...

Jump to post
  • Tue Oct 01, 2019 5:54 am
  • Replies 8
  • Views 594
One extension that Outputs to multiply URLs

Hey everyone, I am trying to develop an extension (my_extension.php) that instead of outputting ($this->response->setOutput) to ...index.php?route=extension/analytics/my_extension it can, at the same time, output to any random URL or, at least, to more than one URL (my_extension_url_one, my_extensio...

Jump to post
  • Mon Sep 30, 2019 7:45 am
  • Replies 8
  • Views 594
Re: OC versions to check my extension for compatibility

Most minor point released (e.g. 2.3.0.0 to 2.3.0.1 or 2.3.0.0 to 2.3.1.0) don't have major changes that affect extensions. That may not always be true, but usually you can just check on the major version released (2.0, 2.1, 2.2, 2.3, 3.0). That's pretty much what I'm doing but I'd prefer having som...

Jump to post
  • Sun Sep 01, 2019 3:42 am
  • Replies 3
  • Views 378
OC versions to check my extension for compatibility

Hi all, I'm new to developing extensions for Opencart but I already have published one. What I'm wondering though is which opencart versions introduce breaking changes that I should be testing my extension against. 2.x extensions don't work on 3.x due to all the changes but is the same true for 2.3....

Jump to post
  • Sat Aug 31, 2019 6:24 pm
  • Replies 3
  • Views 378

Page 1 of 1

Search found 17 matches