Posted In: Tips & Tricks

standard

How to change number of products in one row in the category page

May 26, 2015 - By 

The default theme of OpenCart 2 is great! It looks responsively in all devices.
But there are some parts we can not customize easier. I have seen many questions related to how to change number of products in one row in the category page. You will like the solution below.
Step 1: Install my free extension Custom JavaScript.

Step 2: Add code below to it

It’s all. You can see it in action here: http://demo.viethemes.com/opencart2/index.php?route=product/category&path=20.


standard

How to change language from a url link in OpenCart 2

April 23, 2015 - By 
multi-language2

Although the built-in language selection in OpenCart close to perfect, If you need a language switcher extension for any text anywhere on the site, here are simple code to create links that direct users to the store in a specific language.

Firstly, open file in catalog/controller/module/language.php.

And add this code before line 4:

Now you may test your language in URL. If you have English and Spanish on your site and you would use:
http://yourstore.com/?lang=en (for English) or
http://yourstore.com/?lang=es (for Spanish)


standard

How to increase number of categories in autocomplete box

April 7, 2015 - By 
category autocomplete

In this post, we will continue to improve OpenCart 2 with a small trick. Did you encounter a case when you want to select categories for product but the autocomplete box only shows 5 categories like the image below?

We will show you how to increase the number of categories in the autocomplete box. It is a easy step.

You can go to file admin/controller/catalog/category.php, find

and change 5 to number of categories you want to display.

For example,

 


standard

How to display module on all layouts in OpenCart 2

March 14, 2015 - By 

OpenCart 2 has new layout system. It allows you to display modules in layout easier. But it has a weakness.

If you want to display module, the Category module for example, in all pages, you have to edit each layout and add module to them.

It is time-consuming. To solve it, viethemes has just create a extension All Layouts. It allows to add module in one layout to show in all pages.

You can see the extension in details on OpenCat.com: All Layout by viethemes.

If you have any question about the extension, please don’t hesitate to contact us via email: viethemes@gmail.com.


standard

How to change the wish list icon in the default theme of OpenCart 2

February 12, 2015 - By 
wish_list_icon

The default theme is very beautiful theme. But in some cases, you want to customize it for your need, for example changing the wish list icon.

We have heard many questions about this. So in this post, I will show how to change the wish list icon of the default theme.

It is very simple. You can follow this guides below:

Step 1: Install our extensions Wishlist Icon Changer

Step 2: Go to admin > System > Settings > Edit store > Go to tab Icons Changer > Follow the guide in that section.

Step 3: Go to front-store to check it.

Here is the example result

Hope this post is useful for you. If you want to get more OpenCart tutorials, please follow our Twitter: http://twitter.com/viethemes


standard

Turn off responsive feature of the default theme in OpenCart 2

February 9, 2015 - By 

As we know that OpenCart 2 came with the default theme which displays responsively in all devices. It is very good news for us because many people are using mobile to view your stores.

But in some cases, you don’t need responsive feature for your store, just display it the same in all devices. To do that, viethemes has just created a extension Turn off Responsive Feature.

You can see it in action here:

If you like the extension, you can buy it on opencart.com: Turn off Responsive Feature.