Search found 105 matches

Search found 105 matches

Re: [RELEASED] Override Engine for OpenCart

For those who have followed me and my effort at bringing Unit Testing to Open Cart, I have good news! I finally have found a way to Unit Test classes that have been modded by using Override Engine! It's dirty but it works. 1) In addition to including the Unit Test php file you'll have to require_onc...

Jump to post
  • Wed Feb 19, 2014 7:34 pm
  • Replies 318
  • Views 131289
Re: [RELEASED] Override Engine for OpenCart

I am posting what I have found, for the posterity.

This is included in a StackOverflow.com question and answer.

Jump to post
  • Wed Nov 27, 2013 6:01 pm
  • Replies 318
  • Views 131289
Re: [RELEASED] Override Engine for OpenCart

Hello, I am back with another of my silly questions. I am unit testing my OpenCart installation and my add ons. Since my classes also use Override Engine, I had to include it when my tests are being performed. But I hit a snag: looks like PHPUnit creates its own var:// wrapper so OE bombs out with: ...

Jump to post
  • Sat Nov 23, 2013 9:07 pm
  • Replies 318
  • Views 131289
Re: Testability opencart

That's been a while! I use the GitHub Windows Client to do the heavy lifting. They also have a Mac Client if you're on OSX. There's an extensive help page at https://help.github.com that's great for getting started using GitHub. For those instances when I've needed to do command line work Lars Voge...

Jump to post
  • Fri Oct 25, 2013 4:55 pm
  • Replies 9
  • Views 1775
Re: [PLEASE VOTE]One store & one language OpenCart

Is it time without sql? SQL is killing opencart :( With optimized SQL opencart is acceptable fast :-) It's with default stuff, I am just beginning to optimize OC. I have implemented caching and stuff but still have to mod many parts to use it. PageSpeed and YSlow score A is no problem ;-) Customer ...

Jump to post
  • Thu Oct 24, 2013 12:49 am
  • Replies 16
  • Views 2805
Re: [RELEASED] Override Engine for OpenCart

Another question (yes I am very curious). I ask it to you because I see the OE customizations at work in there. I have noticed that the Controller::render function has 3 sections: 1) One deals with the children. foreach ($this->children as $child) { $this->data[basename($child)] = $this->getChild($c...

Jump to post
  • Wed Oct 23, 2013 11:40 pm
  • Replies 318
  • Views 131289
Re: [PLEASE VOTE]One store & one language OpenCart

Poll end set to infinity, sb wants vote xD Here you go! ;D By the way, I noticed a lot of talk and concerns about the category module. As of now I have yet to begin tackling my website's one, I'll have to implement 3 levels categories so I'll be going to get an impact from the queries. But I have n...

Jump to post
  • Wed Oct 23, 2013 11:16 pm
  • Replies 16
  • Views 2805
Re: [PLEASE VOTE]One store & one language OpenCart

Nice. How many products and categories do you have? What's your server hw? :) Not that many, the website is oriented to each country having it's own pricing on the territory for a set of products. I know, it looks odd, but that's what they want. Also, I am under N.D.A. so no disclosure for now. Jus...

Jump to post
  • Wed Oct 23, 2013 10:00 pm
  • Replies 16
  • Views 2805
Re: [PLEASE VOTE]One store & one language OpenCart

butte wrote:You didn't vote, dfumagalli, the counts and plots are unchanged, still 0:3:0:6, sigma 9, mean 4.5, never mind standard deviation and standard error of mean.
Hard to vote on an expired poll :P

Jump to post
  • Wed Oct 23, 2013 9:55 pm
  • Replies 16
  • Views 2805
Re: [RELEASED] Override Engine for OpenCart

JNeuhoff wrote:This is intended. The system/engine/controller.php is part of Opencart's core engine and should never be modified.
I have both 3rd party and in house made mods that need to modify it.

Jump to post
  • Wed Oct 23, 2013 6:48 pm
  • Replies 318
  • Views 131289
Re: [PLEASE VOTE]One store & one language OpenCart

I use: - multi-store - multi-language (7 languages) - multi currency (12 currencies) - multi geozone (180 states each with different prices) - multi modded: 50 in house developed vQMods plus several from the modules downloads area; 4 Override Engine modules, 3 in house developed "regular" modules (s...

Jump to post
  • Wed Oct 23, 2013 4:19 pm
  • Replies 16
  • Views 2805
Re: [RELEASED] Override Engine for OpenCart

Hello, I have another question. I noticed OE forces vQMod to ignore controller.php So I created a /override/FWMods/system/engine directory and put a derived class with this code: <?php class FWMods_Controller extends Controller { protected function render($CacheTimeout = 0) { foreach ($this->childre...

Jump to post
  • Wed Oct 23, 2013 6:59 am
  • Replies 318
  • Views 131289
Re: Testability opencart

Yes but I don't know what to do :(
Last time I have used a revision system it was SVN, in 1999 or earlier.

Jump to post
  • Sun Oct 20, 2013 10:39 pm
  • Replies 9
  • Views 1775
Re: Testability opencart

I have improved the original OpenCart test base class to make possible to debug some very complex controllers. I.e. the following test is impossible in the default code base as it won't find: - Some constants - The admin User object instance - The controller has children: the header and the footer. ...

Jump to post
  • Sun Oct 20, 2013 3:17 am
  • Replies 9
  • Views 1775
Re: Testability opencart

By the way, 2 of your examples have wrong text inside the functions. You half swapped the Cart test code with the Wishlist.

Image

Jump to post
  • Sat Oct 19, 2013 10:28 pm
  • Replies 9
  • Views 1775
Re: Testability opencart

Great ideas. I had similar one's and started a project which aims to provide simple and unobtrusive testing infrasctructure. You can find the project here: https://github.com/openmandragora/opencart-test-suite . I would welcome your feedback and contributions... Not sure if you'll still read this f...

Jump to post
  • Sat Oct 19, 2013 9:59 pm
  • Replies 9
  • Views 1775
Re: [RELEASED] Override Engine for OpenCart

JNeuhoff wrote:You could use PHPs set_error_handler and register_shutdown_function to capture all kinds of errors and to do a graceful exit, e.g. a redirection to a dedicated error page or the home page.
Thank you,

Jump to post
  • Mon Oct 14, 2013 3:51 pm
  • Replies 318
  • Views 131289
Re: [RELEASED] Override Engine for OpenCart

Hello again, I have been directed here by another poster after I created this thread . Basically, I'd like a way to intercept calls to controllers so that, in case of invalid controller name I don't get an ugly blank page (with or without PHP Notice printed on it) but I can redirect the user back to...

Jump to post
  • Thu Oct 10, 2013 4:07 pm
  • Replies 318
  • Views 131289
Re: How do I harden OC against "Cannot find controller" erro

You can "harden" it by the simple expedient of moving to a server with Apache, OC is meant to run on Apache not IIS or "NGinx and so on". It may seem polished to you but the software combination supporting it is not polished and is not even an appropriate vehicle, relative to OC. Try stackoverflow....

Jump to post
  • Thu Oct 10, 2013 3:59 pm
  • Replies 2
  • Views 1474

Search found 105 matches