Post by Daniel » Sun Sep 29, 2013 3:04 pm

a blog module will not be added in the nxt version. I will add it in the version after 2.0. blogs are very easy to write.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Daniel » Sun Sep 29, 2013 3:06 pm

JNeuhoff wrote:Not quite a factory class yet. For instance, in index.php you still create the class instances directly:

Code: Select all

....
// Length
$registry->set('length', new Length($registry));
// Cart
$registry->set('cart', new Cart($registry));
....
Or the controller files are instantiated like this in your system/engine/front.php:

Code: Select all

require_once($action->getFile());
$class = $action->getClass();
$controller = new $class($this->registry);
With a real factory class, the factory might also instantiate possible extended classes, where the extended class might have overridden methods to modify some of the core class behavior.

For example, we use this in the Override Engine for library classes:

Code: Select all

// Factory
$factory = new Factory($registry);
$registry->set( 'factory', $factory );
....
// Length
$registry->set('length', $factory->newLength($registry));
// Cart
$registry->set('cart', $factory->newCart($registry));
....
And this for controller classes instantiated in the system/engine/front.php:

Code: Select all

$file = $action->getFile();
$class = $action->getClass();
$controller = $this->factory->newController( $file, $class );
We leave the business of loading the class file to the factory class. The factory may load the original class file, or a modified original class file (modified e.g. by your new VQmod-style modification class), or another file containing an extended class, in addition to the original class file. Using a factory class is more flexible than PHP's __autoload mechanism, because you can also load and instantiate extended classes from whatever is found from an additional override folder.


P.S.: I just noticed you have started adding some useful new methods to your system/engine/loader.php, such as

public function controller($route, $args = array())
public function model($model)
public function view($template, $data = array())
public function library($library)
public function helper($helper)
public function database

If you were to always use this new Loader class to instantiate all the other classes, then this could easily become the new core factory class with similar functionality! In fact, I could then easily port our Override Engine to using your updated Loader class. For example, a controller class could then be instantiated like this:

Code: Select all

$this->data['header'] = $this->load->controller( 'common/header', array($this->registry) );

I'm reffering to the load class being a factory class.

$this->load->model('test/test');

just because you create a factory class does not mean you use it for everything! its simpler to intiate a class the standard way instead of doing it cover some OOP design pattern for the sake of it.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Daniel » Sun Sep 29, 2013 3:11 pm

there are 2 routes i can go down.

1. is to add everything into the load class. currently like the loader class in the opencart dev github is now.

2. to use autoloader function. initiate all classes on the fly and set the system up ready for when php 1.5.3+ is used by more hosting company's so we can use $class = new model/account/Class($this->registry);

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by JNeuhoff » Mon Sep 30, 2013 12:00 am

Yes, I agree your current system/engine/loader.php with its Loader class already could act as a core factory class.

We have done loads of websites, so have hundreds of other Opencart users, using the Override Engine which is based upon the usage of a factory class. And I can say from experience there are hardly any performance penalties, but the benefits of using a factory class are significant, such as the possible instantiation of extended core classes with overridden methods.

Hence, about the 2 possible routes Opencart can go ( 1. Usage of Loader class, or 2. PHP autoloader), I think the usage of a Loader class (in a role of a factory) is more useful and futureproof.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by billkou » Fri Oct 04, 2013 8:30 am

I may be a little bit off topic, but I think it would be much better if the demo had many products in each category. There's no use in having empty categories. You could just leave one empty and populate the others with 5-10 products.

The look on the new template is quite good in my opinion.

New member

Posts

Joined
Mon Sep 02, 2013 6:41 am

Post by i2Paq » Sun Oct 06, 2013 3:07 am

will345 wrote:
anna_raiders wrote:If you add blog module as seen in your opencart website it will help lot of users.

I also second this about adding a blog module similar to whats on this site would be great and i also think a lot of users will appreciate this.

And why do we "need" a blog module?

OpenCart is not PrestaShop (as in: bloated with modules 90% never will use)!
If you want a blog-module then buy one.

Plus I have no clue why you want to ask for this in a topic about a theme?

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by kelemvor » Sun Oct 06, 2013 4:58 am

Are you making features toggleable so people don't have to modify the code just to turn off a certain feature?

The front end has Wishlist and Compare buttons more built into the interface. I don't use Wishlist or Compare as they don't apply to my site. Will there be settings for Wishlist (Enable/Disable), Compare (Enable/Disable), etc?

Otherwise this is going to suck for all the people who don't use those feature.

I'd prefer that just about every feature be togglable since everyone wants and doesn't want different features.

Active Member

Posts

Joined
Fri Oct 12, 2012 6:58 am

Post by i2Paq » Sun Oct 06, 2013 5:12 am

kelemvor wrote:Are you making features toggleable so people don't have to modify the code just to turn off a certain feature?

The front end has Wishlist and Compare buttons more built into the interface. I don't use Wishlist or Compare as they don't apply to my site. Will there be settings for Wishlist (Enable/Disable), Compare (Enable/Disable), etc?

Otherwise this is going to suck for all the people who don't use those feature.

I'd prefer that just about every feature be togglable since everyone wants and doesn't want different features.
This is about an theme, not about OpenCart 2,0!

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by GendelVova » Sun Oct 06, 2013 5:50 pm

Hello everyone!
Is there any way to get this theme (i mean download it)?
I would really appreciate this...

User avatar
Newbie

Posts

Joined
Sun Oct 06, 2013 5:47 pm
Location - Ukraine, Severodonetsk

Post by versu » Wed Oct 09, 2013 3:41 am

GendelVova wrote:Hello everyone!
Is there any way to get this theme (i mean download it)?
I would really appreciate this...
this is template for 2.0 version, how could you use it with old one? it will be available to download when 2.0 will be released, and as i think, it will be in a few monthes

Newbie

Posts

Joined
Tue Sep 10, 2013 12:40 am

Post by marvmen21 » Wed Oct 09, 2013 5:11 am

;[']
versu wrote:
GendelVova wrote:Hello everyone!
Is there any way to get this theme (i mean download it)?
I would really appreciate this...
this is template for 2.0 version, how could you use it with old one? it will be available to download when 2.0 will be released, and as i think, it will be in a few monthes

No it won't, It's a complete new template based on bootstrap so it's not compatible with the previous OC versions. However, if you know how to code/ design templates for OC, you could adapt it; In fact, someone here in the forums already did that.

Regards,


Marvin

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by GendelVova » Wed Oct 09, 2013 11:14 pm

Thanks, Marvin!

And Yes, i can understand code of others and try to adapt it to 1.5.x

PS: can you send me a link to that theme, if you remember, please!

User avatar
Newbie

Posts

Joined
Sun Oct 06, 2013 5:47 pm
Location - Ukraine, Severodonetsk

Post by marvmen21 » Thu Oct 10, 2013 7:11 am

You might want to contact pprmkr, he was the one who was testing it with OC 15.4.1.

Regards,

Marvin M
pprmkr wrote:Realy like this theme and layout. :good:

And I was asking me the same question, so I downloaded the version2 files and started testing.

- Quite a lot of changes, missing indexes and so on.
- All installed modules had to be adjusted
- New common.js. ( attr is replaced by prop )
- colorbox replaced

But: it works so far ... demo 1.5.4.1

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by dunks » Tue Oct 22, 2013 1:56 pm

Wow looks great and elegant, fast loading... but why product (name) title in product page is at the right?

thanks

Ingat Gadget, Ingat DroidLime https://www.droidlime.com/


User avatar
Active Member

Posts

Joined
Wed Apr 20, 2011 1:19 pm
Location - Jakarta - Indonesia

Post by ashpowell » Sun Oct 27, 2013 6:36 pm

Been waiting for this for so long, is it using Bootstrap 3.0? Lots of fixes and improvements in it.

Will also make it easier to theme as general Bootstrap themes should work fairly easy

Newbie

Posts

Joined
Sun Oct 27, 2013 6:34 pm

Post by tangara1 » Sat Nov 02, 2013 8:55 am

Hi Daniel

the new opencart 2.0 template is fantastic
just feel the display on mobile devices could be bit more simpler and cleaner
as in maybe the header tab is hard to see when reduced so smaller
(wordpress do header image nicely on mobile by responsively taking a percentage of image)
the info in the footer is a lot to scroll thru...maybe drop down menus could be used in mobile display
the other small detail is the drop down menu for categories on mobile is a bit unclear for a lot of mainstream users
maybe a downward pointing triangle would be clearer

cheers david

Newbie

Posts

Joined
Sat Nov 02, 2013 6:33 am

Post by ocprofi » Tue Nov 05, 2013 10:23 pm

It's beautiful!
Where can I download this template?

Newbie

Posts

Joined
Sun Dec 11, 2011 6:49 pm

Post by versu » Wed Nov 13, 2013 11:13 pm

ocprofi wrote:It's beautiful!
Where can I download this template?
Are you able to read? Its for OC2.0

Newbie

Posts

Joined
Tue Sep 10, 2013 12:40 am

Post by ocprofi » Thu Nov 14, 2013 12:13 am

versu wrote:
ocprofi wrote:It's beautiful!
Where can I download this template?
Are you able to read? Its for OC2.0
In the first post says "I'm adding it to github now".

Newbie

Posts

Joined
Sun Dec 11, 2011 6:49 pm

Post by ThePath » Sat Nov 16, 2013 4:16 am

Its a little off topic but Ive just released a similarly styled Bootstrap 3 theme for v1.5.6 (just about to test in earlier versions). http://www.opencart.com/index.php?route ... n_id=14631

It uses most of Bootstrap 3's styling and features, still got a few to add but overall its fairly bootstrapped up.

I see now on github that OC v2 theme will be using Bootstrap 3 too, so thats awesome. Good dev base. O0

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland
Who is online

Users browsing this forum: No registered users and 89 guests