Post by steveand007 » Fri Apr 13, 2012 8:49 pm

Hi

I need really urgent support, Can anyone please help me How to place opencart slideshow in header??

Thanks
Steve

User avatar
Newbie

Posts

Joined
Fri Apr 13, 2012 8:43 pm

Post by Avvici » Sat Apr 14, 2012 5:16 am

In header? You mean above your menu? If that's what you mean then just position it at top and move that code above your header DIV BLOCK.

In your home.tpl file:

<?php echo $content_top;?>
<?php echo $header; ?>

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by steveand007 » Mon Apr 30, 2012 9:05 pm

actually i want to display slideshow on every page, not only home page, can you please guide me how can i do this?

User avatar
Newbie

Posts

Joined
Fri Apr 13, 2012 8:43 pm

Post by pprmkr » Mon Apr 30, 2012 10:09 pm

The module Slideshow can be placed as many times and in every layout you want.
You can even use diferent sizes in the layouts.

Goto Extensions - Modules - Slideshow

Add as many modules as you like ...

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by steveand007 » Wed May 16, 2012 4:01 pm

Ya I did it before reading this, Thanks anyway. its working perfectly fine.

User avatar
Newbie

Posts

Joined
Fri Apr 13, 2012 8:43 pm

Post by Ljubo » Fri Sep 21, 2012 7:27 pm

Any solution for putting it somewhere i-n-s-i-d-e the header (not before or after)?

thanks

Active Member

Posts

Joined
Mon Jan 31, 2011 10:07 pm
Location - Serbia

Post by Tee.Mothiba » Sat Jun 08, 2013 11:59 pm

Been trying so hard to get my slideshow to fall on top of my menu with very little success

Here's the code to my home.tpl file

<?php echo $header; ?><?php echo $content_top; ?>
<?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content">
<h1 style="display: none;"><?php echo $heading_title; ?></h1>
<?php echo $content_bottom; ?></div>
<?php echo $footer; ?>

You can view my webiste on http://www.soundlouder.co.za

i would really really appreciate your help please

Car DVD Navigation, 2 din Navigation,Car Radio, In-dash Navigation, Car Audio and Rear View Camera Store - South Africa - http://www.soundlouder.co.za

[/b]


New member

Posts

Joined
Sun Nov 11, 2012 6:42 pm

Post by pprmkr » Wed Jun 12, 2013 7:52 pm

In order to load a module in an other position:
- add the new position (header_bottom) to the selection in admin - module - template

Code: Select all

                  <?php if ($module['position'] == 'header_bottom') { ?>
                  <option value="header_bottom" selected="selected">Header bottom</option>
                  <?php } else { ?>
                  <option value="header_bottom">Header bottom</option>
                  <?php } ?>
- edit catalog/controller/common/header.php to add the function wich loads an module

Code: Select all

		$this->load->model('setting/extension');
		
		$extensions = $this->model_setting_extension->getExtensions('module');		
		
		foreach ($extensions as $extension) {
			$modules = $this->config->get($extension['code'] . '_module');
		
			if ($modules) {
				foreach ($modules as $module) {
					if ($module['position'] == 'header_bottom' && $module['status']) {
						$module_data[] = array(
							'code'       => $extension['code'],
							'setting'    => $module,
							'sort_order' => $module['sort_order']
						);				
					}
				}
			}
		}
		
		$sort_order = array(); 
	  
		foreach ($module_data as $key => $value) {
      		$sort_order[$key] = $value['sort_order'];
    	}
		
		array_multisort($sort_order, SORT_ASC, $module_data);
		
		$this->data['modules'] = array();
		
		foreach ($module_data as $module) {
			$module = $this->getChild('module/' . $module['code'], $module['setting']);
			
			if ($module) {
				$this->data['modules'][] = $module;
			}
		}
- add code to header.tpl to display module

Code: Select all

  <?php foreach ($modules as $module) { ?>
  <?php echo $module; ?>
  <?php } ?>

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by Tee.Mothiba » Thu Jun 13, 2013 6:51 am

Hi

I think i might have made a mistake with the first part that refers to admin - module - template. i am not sure where I need to add the code, I tried it on home.tpl that messed up my side. In my understanding thats the code that allows you to set active the file in the admin. Can I provide you with temporary access to my site so that you can do it for much

Thanks a lot for your time

Car DVD Navigation, 2 din Navigation,Car Radio, In-dash Navigation, Car Audio and Rear View Camera Store - South Africa - http://www.soundlouder.co.za

[/b]


New member

Posts

Joined
Sun Nov 11, 2012 6:42 pm

Post by pprmkr » Thu Jun 13, 2013 3:34 pm

vQmod installed? Use attached SlideshowInHeader.xml
- Copy to vqmod/xml
- Edit Extensions - Modules _ Slideshow and add module to Position: Header bottom
- Result -> slideshow above menubar

Check height of #header in catalog/view/theme/YOUR_THEME/stylesheet/stylesheet.css !

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by Tee.Mothiba » Thu Jun 13, 2013 5:08 pm

Wow ppr this is exactly what I needed however I just have a small issue, the file separates the menu from the pag. Basically I want the menu to sit on the same position as on this page http://soundlouder.co.za/Car-DVD-Navigation and the slideshow above.

On a side note the image has a transparent background but somehow when using opencart. it automatically adds a white background. I think this link will better indicate everything I want www.milion.com

Car DVD Navigation, 2 din Navigation,Car Radio, In-dash Navigation, Car Audio and Rear View Camera Store - South Africa - http://www.soundlouder.co.za

[/b]


New member

Posts

Joined
Sun Nov 11, 2012 6:42 pm

Post by pprmkr » Thu Jun 13, 2013 5:15 pm

Create new slider images with a background that matches the header background.

You cannot use transparant images with module slideshow.

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by Tee.Mothiba » Thu Jun 13, 2013 6:44 pm

Thanks for the immediate reply. Isnt there an extension that can help me with adding images with transparent background

Car DVD Navigation, 2 din Navigation,Car Radio, In-dash Navigation, Car Audio and Rear View Camera Store - South Africa - http://www.soundlouder.co.za

[/b]


New member

Posts

Joined
Sun Nov 11, 2012 6:42 pm

Post by Tee.Mothiba » Sat Jun 15, 2013 7:58 pm

hi ppr i noticed that after my recent attempt to edit the header within the system files, i might have made messed up the site. i am no longer able to create an account on the site. here's a link to where the error resides www.soundlouder.co.za/register

Can you help me restore this

Car DVD Navigation, 2 din Navigation,Car Radio, In-dash Navigation, Car Audio and Rear View Camera Store - South Africa - http://www.soundlouder.co.za

[/b]


New member

Posts

Joined
Sun Nov 11, 2012 6:42 pm

Post by pprmkr » Sat Jun 15, 2013 9:32 pm

The error is: route=account/register/country not found

Check catalog/controller/account/register.php for public function country() {

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by Tee.Mothiba » Sun Jun 16, 2013 5:33 am

thanks a lot ppr god bless you. do you hv a couple of extensions i can buy from you as a token of appreciation for your help

Car DVD Navigation, 2 din Navigation,Car Radio, In-dash Navigation, Car Audio and Rear View Camera Store - South Africa - http://www.soundlouder.co.za

[/b]


New member

Posts

Joined
Sun Nov 11, 2012 6:42 pm

Post by beebee » Sun May 22, 2016 6:01 pm

pprmkr wrote:vQmod installed? Use attached SlideshowInHeader.xml
- Copy to vqmod/xml
- Edit Extensions - Modules _ Slideshow and add module to Position: Header bottom
- Result -> slideshow above menubar

Check height of #header in catalog/view/theme/YOUR_THEME/stylesheet/stylesheet.css !
Sorry to re-open this thread. I hope you could help me with my issue with slideshow.
I'm using the default slideshow in opencart ver2.2. However, I would like to use WOWSlider as well. So, basically, I want WOWSlider to be below my main menu and the then the Featured items and below that the default Slideshow.

I followed the steps to add these two slideshows to the home page, but now, only the WOWSlider one shows up. If I remove the WOWslider script the other one works. Could you please help me understand this?

Thanks in advance!

BeeBee
When the going gets weird, the weird turn Pro!!


User avatar
New member

Posts

Joined
Thu May 12, 2016 5:13 pm
Who is online

Users browsing this forum: mauprik and 36 guests