Services

Lead Developer and Interactive Manager at kenmontdesigngroup.com, Owner and operator of Htmyell.com.

11 Responses to “Thank you! I like it really helped! …”

  1. George

    Hi! First I want to say you thanks. I found something like that about 8 hours.

    I have a question!

    Whit some modification I succeed to make this , work for OpenCart 1.5.0
    All works fine but if I want to put in header.tpl I see this ERROR:

    Notice: Undefined variable: content_middle in C:\wamp\www\MyShop\upload\catalog\view\theme\web7hztemplate\template\common\header.tpl on line 51

    What I want to do is to have 2 div display inline one will be logo and one will be slider .
    ________________________________________________
    | |
    | header |
    |________________________________________________|
    | | |
    | | |
    | Logo | Slider |
    | | |
    |______________________|_________________________|
    | |
    | currency cart language |
    |________________________________________________|

  2. George

    Because I can’t found modify button I what do ask you how can I put in content_middle the slideshow module. Actually I can put only the information module.

    Excuse my bad English!

    P.S. Also the first paragraph shall be Hi! First I want to say you thanks.I looked for something like this for about 8 hours and than I found you.

  3. Jamie Taylor

    You should be able to do that in your theme’s header.tpl and home.tpl files in “catalog/view/theme/*your-theme*/template/common/”

    in header.tpl look for:
    the php bit about the logo.

    and play with it’s positioning. Sorry I can’t be of more help, still new myself.

  4. gofer123

    Hi Jamie,
    Being new to Opencart I’ve been trying to find a way to insert a new module position and your article looks the goods but will this work in OC 1.4.9.1 ?
    What I’m trying to achieve is a module position in the header for a login module to appear on all pages.
    Cheers

  5. Ljubo

    hi there, very nice tutorial.
    following it, I have made it to make and put new position to a model.
    thank you.

    now, I can position the module to show before or after the header.
    but, what I really wanted to achieve is to position the module i-n-s-i-d-e the header.
    I have tried to echo the module in header.tpl file but Warning: Undefined variable… shows up.

    is there a solution for this?

    yes, I am using Opencart v.1.5.3.1 with custom theme.

  6. teeplates

    If you want to put the new module position inside the header, then you need to modify the controllor for the header. You need to let it know that your new position is a child.

    open catalog/controller/common/header.php

    find:

    $this->children = array(
    ‘module/language’,
    ‘module/currency’,
    ‘module/cart’
    );

    change to:

    $this->children = array(
    ‘common/content_middle’,
    ‘module/language’,
    ‘module/currency’,
    ‘module/cart’
    );

    You can now put this inside your header.tpl:

  7. Jamie Taylor

    Aaaah, thanks for sharing. That’s really helpful!