Post by naveed.ahmed » Thu Mar 19, 2009 7:23 pm

hi buddies!

i am trying to put the cart module on the place of the search+language module on the top right position but it is giving error.

can it be possible to put cart module on the place of the search+language module on the top right position.

plz give me some solution about that....

thanks in advance

Newbie

Posts

Joined
Tue Feb 24, 2009 10:12 pm

Post by Qphoria » Thu Mar 19, 2009 9:29 pm

How are you doing it?

First, the search is in the header, while the cart is currently in the layout. So you need to add the cart module to the header.

First:
EDIT:
catalog/controller/module/header.php
FIND:

Code: Select all

$this->children = array(
	'module/language',
	'module/search'
);
REPLACE WITH:

Code: Select all

$this->children = array(
	'module/language',
	'module/search',
	'module/cart'
);
Then:
EDIT:
catalog/view/template/module/header.tpl
FIND:

Code: Select all

<div class="div3"><?php echo $language; ?><?php echo $search; ?></div>
REPLACE WITH:

Code: Select all

<div class="div3"><?php echo $language; ?><?php echo $cart; ?></div>
Give that a shot

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by naveed.ahmed » Wed Mar 25, 2009 6:54 pm

thanks dear.

it has been done successfully.

there is another problem that

i want to put link about us & contact us on top header then how can it be done?

Newbie

Posts

Joined
Tue Feb 24, 2009 10:12 pm

Post by Qphoria » Wed Mar 25, 2009 7:45 pm

EDIT catalog/view/theme/default/template/module/header.tpl

FIND:
<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>

AFTER, ADD:
<a href="index.php?route=information/information&information_id=4">About Us</a>
<a href="index.php?route=information/contact">Contact Us</a>

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mal-schauen » Thu Mar 26, 2009 12:31 am

Can the cart-modul so they represent only the quantity of items and displays the total price? So the whole article is not individually listed.It is narrow and can also be integrated in the header.

Alles für die Anwendung im deutschen Sprachraum
Hier gehts zum deutschen Forumbereich


User avatar
Moderator

Posts

Joined
Sun Feb 08, 2009 11:16 pm
Location - Germany

Post by Qphoria » Thu Mar 26, 2009 3:01 am

mal-schauen wrote:Can the cart-modul so they represent only the quantity of items and displays the total price? So the whole article is not individually listed.It is narrow and can also be integrated in the header.
Sure it could.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mal-schauen » Thu Mar 26, 2009 3:53 am

How can i make it? ;)

Alles für die Anwendung im deutschen Sprachraum
Hier gehts zum deutschen Forumbereich


User avatar
Moderator

Posts

Joined
Sun Feb 08, 2009 11:16 pm
Location - Germany

Post by khr.atul » Mon Apr 07, 2014 11:50 pm

I am also trying to put Cart module on top right position but i am missing header.php in catalog/controller/module directory. ???
I am using opencart 1.5.6.1.
Can someone give me a solution?

P.S: Give preference to CSS or HTML rather than PHP, if possible.

Newbie

Posts

Joined
Mon Apr 07, 2014 11:39 pm
Who is online

Users browsing this forum: No registered users and 2 guests