Opencart theme development from scratch - php

I am creating the theme for Opencart 2.2.
While creating a Opencart theme do I always need to copy the files from the default theme? What about I want to create my own layout? Is there any good tutorial are available for creating a opencart theme without using the default theme?
Looking for your reply.
Thanks and Regards,
Chirag

If you are creating your own new custom OpenCart theme, use default theme folder structure. If you want to change/improve functionality of your template, you need to edit controller and models too.
But do not change core files. Always use virtual mode to modify files.
In OpenCart, there are four ways to modify its core functionality:
vQmod, OCMOD, Override Engine and Event Handlers
vQMOD / OCMOD / Override engine / Event handlers allows developer to modify files without changing any of core file. This means that if a modification is removed none of the original OpenCart files need to be restored or fixed.

Creating a new theme for OpenCart 1.5 used to be pretty easy - make a folder in the theme directory and copy only the files from the default theme that you want to change. And that was about it.
OpenCart 2 is now outdated, 3 should be used for new builds ...
OpenCart 3 brings new features, but creating a theme is a little more difficult.
There are instructions and a free downloadable template theme here:
https://www.antropy.co.uk/blog/how-to-create-an-opencart-3-theme/

Related

Drupal theme does not change when it is modified

I am creating a drupal theme and use role theme switcher to change the theme according to user role
for the the role anonymous I've created a custom theme
the theme html script does not change whatever the changes I make
I've cleared the cache from performance
remove the cache from administrator->performance clear cache
change the default theme to new and fresh theme ( I am using zen) and run module and its custom theme
it may need modification in css or js files
Heed Drupal's unofficial moto when developing a theme:
Also, there are many base themes (Zen for instance) which have a setting to clear the cache on every page request during theme development. You turn this off once the theme is completed, but it's a nice feature when you're still working on things to avoid caching issues.

Magento product zoom extension not working in my custom theme

I am using a custom theme in magento. Now I install a pluging for product zoom functionality. But the plugin is not working. Finally I found that the while installing the plugin, the files are saved in default theme directory, but I am using a custom theme(themeheros).
To make the plugin working I cut and paste the
app/design/frontend/default/default/layout/[extension_name].xml
app/design/frontend/default/default/template/[extension_name]/*
files to
app/design/frontend/[your_interface]/[your_theme]/layout/[extension_name].xml
app/design/frontend/[your_interface]/[your_theme]/template/[extension_name]/*
But no luck. The plugin is still not working.
For product zoom I use number of plugins but no one was worked in custom theme.
But in my local machine these plugins are working because there I am using the default theme.
How can I make the plugin working in Custom theme in Magento. My magento version is 1.9.0.1.
Which javascript library does this module use? jQuery? Prototype? If
jQuery check existing noConflict() method.
Try to put layout and
template files in base/default directory.
In most situations any javascript lib doesn't work because of custom theme. For example in default magento image wrapper block is <div class="product-image"> and any module try to select this block $('.product-image'). But in your custom theme this block can have another class and module initialization will not work. So I recommend to switch to default theme.
Open on your product view page view:source code and find how much time jQuery (if it module use jQuery) attached
According your comment check if current handle use on this page. Anyway upload here your layout xml in your first post.

WordPress Redux Framework - Redux admin folder can't find plugin

I'm trying to get the Redux Framework working with my "blankslate" theme. I installed the plugin (downloaded the latest zip for Redux). Then I used the Redux Builder tool to create an admin folder. I copied the admin folder to my themes folder. The Redux menu item was successfully added to WordPress' left nav (in my case I named it CMS) and all the fields work and can be saved. But there is constantly an error that says "This theme recommends the following plugin: Redux Framework." Redux is obviously installed, so how can I get this error to go away? I'm sure there's just a configuration option somewhere that needs to be set.
The issue here is you are loading TGM before Redux has had a chance to load. Delay calling TGM until after a hook like this:
add_action('plugins_loaded', 'tgm_init_function', 25);
This will force all the plugins to load before it tries to run TGM. My guess is your plugin is named higher in the alphabet than Redux, and thus it's loaded first. ;)

Themeforest theme integration with Yii framework

I have gone through Yii documentation and successfully implemented two different themes for back end and front end of the website. Yii doesnt have good themes and I found themeforest having awesome bootstrap themes. So I installed Yii-booster and downloaded a themeforest theme with bootstrap support.
I was wondering how to integrate it?
1)Do I have to make a new folder in themes folder, and replace css,js, images folder in root
directory
OR
2)Replace the js,css and other folder/files at path protected/extensions/bootstrap/assets
OR
3) Any other way ??
Apply a simple logic. Just copy the theme and make particular layout ,then call the layout in the controllers according to your need.

WordPress themes and plugins development

I want to develop WordPress themes and plugins. What do I need to know to do this?
I have knowledge of PHP, HTML, CSS and JavaScript. I have developed a few projects using these. What is the best place to start (except Codex), is there any book? Where can I know how the core of WordPress works?
Check out this neat infographic for a good introduction to the anatomy of a wordpress theme.
http://yoast.com/wordpress-theme-anatomy/
Professional WordPress Plugin Development
Digging into WordPress
For Plugins:
There are two places where you can code for plugin in Wordpress.
1. functions.php
2. Create a folder in plugins folder, inside that folder. Create a blank .php file, and code there.
For Themes:
As you asked for learning wordpress themes. Go to themes folder, try to get the structure and flow of wordpress default themes.
You've to code within themes folder.

Categories