Zen Cart Logo
Forums / Addon Templates / Sheffield Blue Template Support Thread

Sheffield Blue Template Support Thread

Views: 123,068

Results 541 to 560 of 842
1 Feb 2014, 9:57 PM
#541
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Sheffield Blue Template Support Thread

cjcraven:

Thank you for this template. When viewing our test site from a PC the header has the language icon properly displayed. When viewing with a mobile application (HTC Butterfly/Sony Xperia) the language icon is missing. Please advise.

ZenCart 1.3.9h
Test Site https://www.uskgj.com/zc3

This is not the responsive version of the template. If you want to use this template on hand held devices, install the Responsive Sheffield Blue template.

Thanks,

Anne

2 Feb 2014, 2:15 AM
#542
cjcraven avatar

cjcraven

Zen Follower

Join Date:
Aug 2004
Location:
Osaka Japan
Posts:
149
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Hi Anne,
I looked at your demostration http://zenlyzen.com/responsive/index.php? in both a PC and mobile unit. I still don't see the language icon in the header when viewing with a mobile unit. This is a pretty common android phone here.

2 Feb 2014, 2:21 AM
#543
cjcraven avatar

cjcraven

Zen Follower

Join Date:
Aug 2004
Location:
Osaka Japan
Posts:
149
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

With the PC if I make the browser small, to the point the side boxes disappear, the language icon too will disappear too.

2 Feb 2014, 3:17 AM
#544
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

cjcraven:

With the PC if I make the browser small, to the point the side boxes disappear, the language icon too will disappear too.

I'll say it again, this is not the responsive version of this template. If you want a responsive template, use the Responsive Sheffield Blue.

Thanks,

Anne

2 Feb 2014, 3:27 AM
#545
cjcraven avatar

cjcraven

Zen Follower

Join Date:
Aug 2004
Location:
Osaka Japan
Posts:
149
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Hi Anne,
I am looking at your demonstration site http://zenlyzen.com/responsive/, not my test site. I think this is the template for mobile applications. Please point me to the correct location for the mobile demo site if I am wrong.

2 Feb 2014, 5:33 AM
#546
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Sheffield Blue Template Support Thread

cjcraven:

Hi Anne,
I am looking at your demonstration site http://zenlyzen.com/responsive/, not my test site. I think this is the template for mobile applications. Please point me to the correct location for the mobile demo site if I am wrong.

Right demo site, wrong thread to talk about it. Responsive-Sheffield-Blue

2 Feb 2014, 6:18 AM
#547
cjcraven avatar

cjcraven

Zen Follower

Join Date:
Aug 2004
Location:
Osaka Japan
Posts:
149
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

mc12345678:

Right demo site, wrong thread to talk about it. Responsive-Sheffield-Blue

Got it, thanks

4 Feb 2014, 9:52 PM
#548
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Hi Picaflor,

I have modified the main menu as you can see in www.kite-addic***tion.es/tienda (remove the ***)

I would like a drop menu coming to each of the products category, but have no idea how to do it. I guess it is simple but dont know how.

Right now the menus links work, which is good, but it would be nice to be able to have that drop menu for the categories.

Kind regards,

David

5 Feb 2014, 12:57 PM
#549
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

speedyrider:

Hi Picaflor,

I have modified the main menu as you can see in www.kite-addic***tion.es/tienda (remove the ***)

I would like a drop menu coming to each of the products category, but have no idea how to do it. I guess it is simple but dont know how.

Right now the menus links work, which is good, but it would be nice to be able to have that drop menu for the categories.

Kind regards,

David

DONE!!! its implemented now. I learned to pass variables to a class, and use the variable inside the class to start building the categories tree from there :)

5 Feb 2014, 4:20 PM
#550
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

speedyrider:

DONE!!! its implemented now. I learned to pass variables to a class, and use the variable inside the class to start building the categories tree from there :)

It would be helpful if you posted your code so that others with the same question can search and find the answer ;)

Thanks,

Anne

5 Feb 2014, 6:03 PM
#551
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

picaflor-azul:

It would be helpful if you posted your code so that others with the same question can search and find the answer ;)

Thanks,

Anne

In the tpl_mega_menu file:

<li class="escuela-li"><a href="index.php?main_page=index&cPath=12" class="drop"><?php echo HEADER_TITLE_NEOPRENOS; ?></a>
            <div class="dropdown_1column">
            <div class="col_1 firstcolumn">
               <div class="levels">
                   <?php

// load the UL-generator class and produce the menu list dynamically from there
require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
$zen_CategoriesUL = new zen_categories_ul_generator;
$menulist = $zen_CategoriesUL->buildTree(true,12);
$menulist = str_replace('"level4"','"level5"',$menulist);
$menulist = str_replace('"level3"','"level4"',$menulist);
$menulist = str_replace('"level2"','"level3"',$menulist);
$menulist = str_replace('"level1"','"level2"',$menulist);
$menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
$menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
echo $menulist;
?>
</div>
</div>
</div>

    </li>

then in includes / classes / categories_ul_generator.php

function buildTree($submenu=false, $variable)
{
$this->root_category_id = $variable;
return $this->buildBranch($this->root_category_id, '', $submenu);
}
}

So what i do is in the mega menu to call this buildtree function passing a variable that tells the categories generator where to start, the variable has to be your category number...works like a charm

5 Feb 2014, 6:05 PM
#552
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

I got now another problem, also posted in the multilanguage ezpages thread.

As you can see when you enter my site in the footer the useful links you can see a link in spanish called 'prueba' and 'test' in english. Its not appearing in the header menu under the info menu...ive reinstalled the multilanguage thread a couple of times but no success, its like its not reading the same ezpages database or something.

if i insert a new ezpage both languages appear.

Regards,

David

5 Feb 2014, 6:06 PM
#553
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

speedyrider:

In the tpl_mega_menu file:

<li class="escuela-li"><a href="index.php?main_page=index&cPath=12" class="drop"><?php echo HEADER_TITLE_NEOPRENOS; ?></a>
            <div class="dropdown_1column">
            <div class="col_1 firstcolumn">
               <div class="levels">
                   <?php

// load the UL-generator class and produce the menu list dynamically from there
require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
$zen_CategoriesUL = new zen_categories_ul_generator;
$menulist = $zen_CategoriesUL->buildTree(true,12);
$menulist = str_replace('"level4"','"level5"',$menulist);
$menulist = str_replace('"level3"','"level4"',$menulist);
$menulist = str_replace('"level2"','"level3"',$menulist);
$menulist = str_replace('"level1"','"level2"',$menulist);
$menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
$menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
echo $menulist;
?>
</div>
</div>
</div>

    </li>

then in includes / classes / categories_ul_generator.php

function buildTree($submenu=false, $variable)
{
$this->root_category_id = $variable;
return $this->buildBranch($this->root_category_id, '', $submenu);
}
}

So what i do is in the mega menu to call this buildtree function passing a variable that tells the categories generator where to start, the variable has to be your category number...works like a charm

That's great ;) I am sure that this will help others in the future.

Thanks,

Anne

5 Feb 2014, 6:16 PM
#554
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Not bad for someone with just 2 weeks into zencart haha :D

5 Feb 2014, 6:20 PM
#555
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

ezpages in header is set to 1

9 Feb 2014, 12:44 AM
#556
stitcher avatar

stitcher

New Zenner

Join Date:
Feb 2014
Location:
Indianapolis
Posts:
14
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Anne,
I have been beating my head against the wall all night and can't figure out what's going on. I can not get the social media links on my slider bar to go to my links. i have even reloaded the complete template and reloaded the social_define.php file. When I reloaded the file, I confirmed they were your links then changed them to mine and saved. Even went to another computer to load my site and social links loaded your links instead of mine. I searched the thread and found a couple of instances just like mine but all were either cut short or something else changed. My site is https://www.bearcreekleather.com and facebook link is https://www.facebook.com/bclleather any idea what could possibly be causing this!?! I'm literally at my wits end. There's not many problems I can't figure out but this is one for the record books. Thanks in advance for any help.

9 Feb 2014, 2:41 AM
#557
uswebworx avatar

uswebworx

Zen Follower

Join Date:
Sep 2006
Location:
USA
Posts:
297
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Stitcher:

Anne,
I have been beating my head against the wall all night and can't figure out what's going on. I can not get the social media links on my slider bar to go to my links. i have even reloaded the complete template and reloaded the social_define.php file. When I reloaded the file, I confirmed they were your links then changed them to mine and saved. Even went to another computer to load my site and social links loaded your links instead of mine. I searched the thread and found a couple of instances just like mine but all were either cut short or something else changed. My site is www.bearcreekleather.com and facebook link is www.facebook.com/bclleather any idea what could possibly be causing this!?! I'm literally at my wits end. There's not many problems I can't figure out but this is one for the record books. Thanks in advance for any help.

It should be in this file tpl_main_page.php which you can use Developers Toolkit to search for it!
/public_html/includes/templates/your_template/common

9 Feb 2014, 2:20 PM
#558
stitcher avatar

stitcher

New Zenner

Join Date:
Feb 2014
Location:
Indianapolis
Posts:
14
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

uswebworx:

It should be in this file tpl_main_page.php which you can use Developers Toolkit to search for it!
/public_html/includes/templates/your_template/common

I think that maybe I didn't ask the question correctly or there was a misunderstanding. All I want to do is change the links from your facebook page to mine, yet when I changed the links in the associated files according to the documentation, the links still go to your sites. You said in the link reply above, it should be in tpl_main_page.php yet I see nothing in there pertaining to the associated links?!? Could you please elaborate?

9 Feb 2014, 2:37 PM
#559
stitcher avatar

stitcher

New Zenner

Join Date:
Feb 2014
Location:
Indianapolis
Posts:
14
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

I found the problem, although I'm not quite sure why it was happening. I used the developers tool kit (THANKS to USWEBORX!!:cool:) and found the link I needed to change in the includes/languages/english/extra_definitions/sheffield_blue/footer_menu_defines.php. Although the social icon I was clicking on was in the slider on the side, this link was the one that allowed it to take me to my page instead of the original.

9 Feb 2014, 3:19 PM
#560
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

Stitcher:

I found the problem, although I'm not quite sure why it was happening. I used the developers tool kit (THANKS to USWEBORX!!:cool:) and found the link I needed to change in the includes/languages/english/extra_definitions/sheffield_blue/footer_menu_defines.php. Although the social icon I was clicking on was in the slider on the side, this link was the one that allowed it to take me to my page instead of the original.

I am happy that you figured out the problem. Thank you for posting your solution. This bug has already been fixed in the Responsive Sheffield Blue template package. It has many bug fixes and enhancements over this legacy package. I would recommend using the responsive package.

Thanks,

Anne