opencart,opencart2.x , How to make vertical navigation bar in Opencart v2.0.1.1?


How to make vertical navigation bar in Opencart v2.0.1.1?

Question:

Tag: opencart,opencart2.x

I am using Opencart V2.0.1.1. Please suggest how to change the default Opencart navigation bar(Horizontal) to the Vertical. With Sub-Categories popping in right side.


Answer:

In catalog/view/theme/default/template/common/header.tpl remove the nav id="menu" tag and all that is inside it.

Then in the admin, go to System>Design>Layouts>Home and add the Category module to either Column Right or Column Left, whichever you prefer.

Actually you may need to add it to every route that you want it to appear since the header is called in every template. Experiment and see how it goes.


Related:


How does free checkout work in Opencart 2?


opencart,opencart2.x
I am trying to make a development site where I can add products to my cart and delivery options - and then checkout. I want to be able to do dummy orders without using real cards or payment gateways I have enabled free checkout but it does not appear on...

OpenCart show weight units in product page 1.5.6


opencart
guys.. How can i show the the weight (with units) in product page in 1.5.6. Example: Weight - 2.5 kg; Weight - 250 mg ... I've been reading some articles, but nothing working correctly. Thanks!...

Opencart shows variable instead text


variables,opencart
my store suddenly starts to show just the variables, instead the text of the variable. i already check the controller, and it looks okay. the footer shows like this: text_address text_address_cnt and the content of theses variables is $_['text_address'] = 'Endereço'; $_['text_address_cnt'] = 'Endereço da sua loja'; the controller looks...

OpenCart text at login page doesnt get changed if I change lines in language files


login,opencart
I run an opencart shop 1.5.6.4 with vqmod installed. I installed xml from opencart in order to force a login before reaching my shop. So it's a closed shop. I customized my login page inside css to hide all menu bars and I "copied" the language selector from the shop...

Opencart 2.0.2.0 mail error on mail.php line 168


php,opencart2.x
I have recently updated opencart 1.5.6.4 to opencart 2.0.2.0. The day I updated, Mail stopped working. Now I am unable to register any user or retrieve password. I was happily using the mail before, now with the same settings I can't send any email. Following are the mail settings I...

Adding price and total column in shipping invoice in opencart


php,opencart2.x
Opencart by default doesn't show price and total in the print shipping at the admin side. So I added two more columns to the table in shipping invoice in order_shipping.tpl in admin/view/template/sale/order_shipping.tpl but I got the error as Notice: Undefined variable: column_price in /home/blossewp/public_html/admin/view/template/sale/order_shipping.tpl on line 69 Notice: Undefined index:...

Opencart 2 - Echo Filter ID/Description in Category View


php,opencart
I'm working on a Opencart 2 - Project and need to echo the Filter IDs for each Product seperatly in Category View (e.g. as additional Classes for the Product-Thumbs, to apply different Styles to vegan/vegetarian food). I've been breaking my fingers for hours now, modyfing the Controller-, Model-, and View-Files,...

Opencart 2x Request multiple rows data


php,module,controller,opencart
I try to make a simple image module. No errors, the only problem is data not saved(maybe)/not loaded everytime I visit this module back. Here's my code in controller: if (isset($this->request->post['photo_image'])) { $photo_images = $this->request->post['photo_image']; } elseif (isset($this->request->get['photo_image'])) { $photo_images = $this->model_module_photo->getProductImages($this->request->get['photo_image']); } else { $photo_images = array(); } $data['photo_images']...

New template opencart


templates,download,opencart
I already have too website with opencart, the first one with opencart 1.5.5.1 et the second one with opencart 2.0.2.0. I don't know really how it works, some people put it for me for the two first website. I want to buy a new template opencart for a new website,...

Admin is showing different price to Front End


opencart,opencart2.x
I have set up an OpenCart store for my Australian company. In System>>Localisation>>Currencies I created a new Currency for Australian Dollars with the code AUD. Then in System>>Settings>>Store Name>>Local I set the Country to Australia and the Currency to AU Dollar: But when I add a new product and set...

Fatal error: Call to undefined method in opencart


php,opencart,opencart2.x
When i am trying to save a module details, it shows the below error, i don't know what is the mistake over there, but the data's are stored but every time i try to save i get this error. ERROR Fatal error: Call to undefined method ControllerPaymentIcicipg::redirect() in C:\xampp\htdocs\usa\admin\controller\payment\icicipg.php on...

Opencart 2.0 How to duplicate filters?


filter,opencart,colorfilter
We are creating filters on Opencart 2.0. We gonna create the "color" filter, but the problem is that this filter will go on every category. Do we have to put this filter manually in each category or is there any way to duplicate filter or to applicate it directly to...

Proper way to work using the real image of a product on OpenCart 2


opencart,opencart2.x
I'm currently looking for the proper way to work on a theme using the real image of a product and not its thumbnail (identified as $thumb in the default theme). I have found a abrupt trick by adding a line in the controller file: $this->data['cover'] = $product_info['image']; But does anybody...

Show unit of weight in product page for Opencart 2


php,opencart,opencart2.x
Hi! How to display the unit of weight (kg., gr., oz., ml.,) in product page in Opencart 2.0.2.0 Now only displays a number without units. I'm Using the default template in file template\product\product.tpl it looks like this: ...<li><?php echo $text_model; ?> <?php echo $model; ?></li> <?php if ($weight) { ?>...

Opencart module controller index function data source


model-view-controller,controller,opencart
Some module controllers on a website I work with have data passed to their index function. How is it done? I can't find the source file that sends data to controller.

How to insert module in header tpl file in opencart 2.0?


opencart2.x
How to insert a module in header.tpl file in opencart 2.0 ? I have a module. Does not have the layout position option for that module. So i need to place that manually in header.tpl file. I am already tried this but not working for opencart 2.0. Please any one...

Last child of breadcrumb font set to bold in opencart 2.0


opencart
In opencart 2.0.x on category page last child of breadcrumb text font is need to set as a bold. Any one please help me. Thanks...

Change default country in OpenCart


opencart2.x
I'm using latest version of OpenCart 2.0.2.0 whenever I go to register page site/index.php?route=account/register it shows United states as default. I know how to change this default country to another default country. Here what I need is, if a user go to register page it will show please select instead...

bug when I .load in opencart


javascript,php,html,opencart
I guys, I have this problem: I edited my checkout/cart.tpl and initially everything looks fine, but then when I "add cart" something the code changes automatically and everything be strange.. EXAMPLES: 1- Ok, when I enter in website and look to cart, everything looks fine 2- THE BUG/MISTAKE.. When I...

How to install VQmod extension for opencart 2.0.x.x without using FTP


opencart2.x,vqmod
I have installed vqmod extension for opencart 2.0.1.0 from following link http://www.opencart.com/index.php?route=extension/extension/info&extension_id=19501 I have followed installation steps till replaced files. Now, how I should upload Opencart modifications on localhost. On admin panel made following setting System->Setting->Store Edit->FTP FTP Host : localhost FTP Port : 22 FTP Username : XXXXXX FTP...

OpenCart 1.5: how to disable caching for SVG?


svg,opencart
I think to use svg for images of brands - svg is responsive and good for displays with high DPI. But I have problem with caching mechanism of Opencart 1.5 than can't correct cache vector images and in browser I not see image. I not found (in search) any solution...

How to get current category id - OpenCart 2.0


php,opencart2.x
I have a code for product tpl witch I need a condition if a category id=12 echo.. THe code below works on opencart 1.5.6.4 but on 2.0 doesn't generate anything. <?php if(isset($this->request->get['path'])) { $path = $this->request->get['path']; $cats = explode('_', $path); $cat_id = $cats[count($cats) - 1]; } ?> <?php if (isset($cat_id)...

Where is the “clearfix” DIV in OpenCart's featured.tpl


templates,opencart,clearfix
I am trying to locate the "clearfix" DIV in OpenCart's "featured.tpl", which is inserted in the live site but is not present in the actual template file. In the latest version of OpenCart, 2.0.2.0, and probably in older versions, for a reason I don't fathom, an extra DIV is inserted...

What is the proper way to use the Model in Laravel?


php,laravel,opencart
Can you help me with this? I am currently studying Laravel on my own and I followed the tutorials in the Laracasts and it is awesome. Before Laravel I am using CodeIgniter and Opencart in my projects and I started to study Laravel because I want to learn a new...

Opencart exclude products or cagegory from specials page


opencart
I'm trying to exclude some products from specials page, because I have the a product "day dress product x" and "evening dress product x" it's the same product but different categories... And they are next to each other .. 2 products that looks the same only the name difference, so...

How to disable some criteria for product sort order in OpenCart?


sorting,opencart
By default there are: Default Name (A-Z) ... Model (A-Z) Model (Z-A) I want disable Default and few others. Is there any tool in administrative panel to do that or do I need to do it programmatically?...

Issue in defining custom variable & showing in category page in opencart


opencart2.x
I am facing 1 weird issue in opencart. My version is 2.0.2.0. My approach to show any custom variable's value in header & footer is....I go to language file & add a variable there then in controller file with $data['...'] & then use that variable in view file. But my...

Password Encryption Using opencart database for sitewide login


php,encryption,opencart
Hello hopefully I can be pointed in the right direction and gain some clarity as I am now confused. I have a website that also has opencart (Version 1.5.6.1) attached the two are styled to look the same. I have come to a point where I need users to log...

Opencart Payment gateway error after opencart 2.0 upgrade


php,payment-gateway,opencart2.x
We have a payment gateway called atom for our opencart store. Recently we have upgraded Opencart from 1.5.6.4 to 2.0.1.0 version. Due to this payment method stopped working. I have gone through this post to understand the changes in opencart 2.0 Below is my updated code //catalog/controller/payment/atompay.php <?php class ControllerPaymentAtompay...

Opencart 2 - Custom shipping Methods


php,opencart,opencart2.x
I was wondering whrere the shipping methods are set up in Opencart 2 - not in the Admin-Panel, but on the server and database. I would like to set up my own (stub-) shipping method without the use of Extensions - maybe by cloning and customizing an existing one, but...

add custom header for checkout page in opencart


php,opencart
I want add a custom header for my checkout page of opencart store. I have a website in opencart store and I don't want to show categories and search button at my checkout page as user already ready for shop now he didn't need of categories and search button. So...

Redirect non-www to www adding URL query string


.htaccess,mod-rewrite,redirect,opencart
I use SEO URL on my opencart using .htaccess, now I want to redirect all non-www URL access to URL with www. So I add these lines in my .htaccess file: RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] Yes now the URL is always redirected to www if it is...

How to make vertical navigation bar in Opencart v2.0.1.1?


opencart,opencart2.x
I am using Opencart V2.0.1.1. Please suggest how to change the default Opencart navigation bar(Horizontal) to the Vertical. With Sub-Categories popping in right side.

403 Error when trying to remove products from Cart


php,server,e-commerce,opencart,cpanel
I am using a cPanel host and running PHP 5.5. Opencart version 1.5.1. When I try to remove a product from the cart I am getting a 403 forbidden error. This only seems to happen with products that have a lot of options and include text input options. I have...

Add Slider Extension in Opencart?


opencart,opencart2.x
I am Creating a Opencart Page with 1500 products. In homepage I want Slider Extension For Products With Time interval. . How can i Add the extension . . Help me Out Here. . For Extension Code.....

How to display class or id function in opencart 2.0 if select option value?


php,html5,opencart
<div class="form-group required"> <label class="col-sm-2 control-label" for="input-name">Type</label> <div class="col-sm-10"> <select name="name" id="input-name" class="form-control"> <option value="image" selected="selected">image</option> <option value="text">text</option> </select> </div> </div> I am using this code . In these if i select option image display only <div class="function1">Function1</div> If select option text display only <div...

states/regions not loading at checkout for guests or registration in opencart


opencart
im having a Opencart 1.5.4 installed... there is this problem where the users/guests are unable to register at the checkout because the states are not being populated based on the country... when a user registers at the register page it works but not at the checkout.. Below is the JS...

opencart 2.x: How to identify which submit button was pressed?


php,opencart2.x
On my front page in opencart I've got a panel with login (which says that user is logged or if not then asks for login and password) and it has IF condition inside the controller: if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { The contact page also has the same IF...

Footer don't change Opencart


php,html,task-parallel-library,opencart,footer
I am trying to edit the footer of my store. But nothing seems to happen. I have to add one more div in the content but it doesn't display on the store, neither the css. <div class="payment col-sm-12"> <div class="container"> <div class="row"> <p> <?php echo $text_payment; ?> </p> </div> </div>...

Manual 301 redirects in Opencart


regex,apache,.htaccess,redirect,opencart
I've changed a few URLs on my Opencart (version 1.5.6) website and then I've changed them one more time. Google started alerting me that there are dead links and now I'm trying fix things up by adding manual 301 redirects in .htaccess (I used to do this whenever I was...

Registration page of opencart


php,opencart
I want to edit my register.tpl file of registration process of my opencart page. I just want to keep the email, password and confirm password fields. When I remove all other fields including first name, last name, address etc and only leave in email, password and confirm password fields, it...

.htaccess redirect to subdomain only for homepage (OpenCart)


php,.htaccess,mod-rewrite,redirect,opencart
I want to redirect from mydomain.com to shop.mydomain.com but I also want to make this redirect work ONLY for the main page. It's an Opencart page so all the pages have urls similar to http://shop.mydomain.com/index.php?route=information/information&information_id=14 so making a rule for the index file only is a no go from my...