Zen Cart Logo
Forums / Addon Templates / Stirling Grand Responsive Template

Stirling Grand Responsive Template

Views: 141,762

Results 501 to 520 of 527
9 Feb 2016, 4:43 PM
#501
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Stirling Grand Responsive Template

margecc:

Good morning,

I am running Stirling Grand on 2 sites and it is working beautifully, except for one little issue, I seem to receive a fair amount of spam email. Thus far I have just been blocking the IP in Cpanel, but in poking around on the forum to see what others may be doing to stop the problem, there seems to be something about the mega menu and such, but I'm not really understanding what they are saying or if they are completely deleting the contact us form the menu, which I would prefer not to do since I think it's quite helpful. Any insight would be appreciated.

I found this post, and the poster is using one of Anne's templates so I am assuming it would be helpful, if I understood it :frusty:

https://www.zen-cart.com/showthread.php?219303-Contact-Us-form-Spam&p=1301605#post1301605

My sites:
valuelogs.com
af-company.com
(the one I am currently building)

If you are worried about spam I would recommend removing the contact us form from the drop down and replacing it with a link to the contact us page ;)

Thanks,

Anne

9 Feb 2016, 5:39 PM
#502
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: Stirling Grand Responsive Template

Thanks for the quick reply Anne! I'm not really worried about it since blocking the IP's eventually works quite well. I just thought perhaps I was missing some quick fix (that happens a lot). I'll just change it to a link....eventually.

2 Mar 2016, 9:50 PM
#503
amethyst_fairy avatar

amethyst_fairy

Zen Follower

Join Date:
Feb 2016
Location:
Salem, NH
Posts:
103
Plugin Contributions:
0

Re: Stirling Grand Responsive Template

Still total newbie was able to get my main issues fixed now to figure out how to fix a couple styling issues just don't know where to edit.

First one is this page http://www.thedragonskeep.net/index....&reviews_id=15 where and what to edit to fix this alignment this looks.

The other issue how would I edit css for the missing buttons for show_all and couple other ones. Tried and couldn't get it to work.

Thanks
Sandria

https://www.thedragonskeep.net

5 Mar 2016, 3:47 PM
#504
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Stirling Grand Responsive Template

Amethyst_fairy:

Still total newbie was able to get my main issues fixed now to figure out how to fix a couple styling issues just don't know where to edit.

First one is this page http://www.thedragonskeep.net/index....&reviews_id=15 where and what to edit to fix this alignment this looks.

The other issue how would I edit css for the missing buttons for show_all and couple other ones. Tried and couldn't get it to work.

Thanks
Sandria

https://www.thedragonskeep.net

The link is giving a 404 error.

If you want to make css changes to your site, I would recommend using chrome and the web developer tools. You can inspect the element to tell you the exact line of the file that needs to be edited.

Thanks,

Anne

16 Apr 2016, 11:11 PM
#505
xarum avatar

xarum

New Zenner

Join Date:
Apr 2016
Location:
Amsterdam
Posts:
6
Plugin Contributions:
0

Re: Stirling Grand Responsive Template

Would it be possible to replace the automatically generated links in the css top menu under "shop" with manually created links? I am asking because I am using Stirling Grand on a multi-page install where each web site should only show a few categories. This works fine in the multi-page module and the categories box on the left, but not in the top "shop" menu, see

http://www.xarum.com/intellectual-property-rights
http://www.xarum.net/process-agent

I am concerned that it would generate duplicate content if the links show up on the domain where they are
not intended to be shown and also the links not for http://www.xarum.com or http://www.xarum.net are not shown by the multi-page module.

My idea is to manually edit those links in each site's template, but I cannot figure out which php file actually generates the automatic links in the top menu.

Any help would be very much appreciated.

N.B. I also have the CEON module installed to have nicer url's. Could this maybe used to rewrite urls

domain1/product-not-listed-here

to

domain2/where-product-actually-is

Thanks
Jan

19 Apr 2016, 5:27 AM
#506
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Stirling Grand Responsive Template

Suspecting you mean the multi site module, you will save yourself a lot of (future) work if you edit the header code to make use of the multi site

Xarum:

Would it be possible to replace the automatically generated links in the css top menu under "shop" with manually created links? I am asking because I am using Stirling Grand on a multi-page install where each web site should only show a few categories. This works fine in the multi-page module and the categories box on the left, but not in the top "shop" menu, see

http://www.xarum.com/intellectual-property-rights
http://www.xarum.net/process-agent

I am concerned that it would generate duplicate content if the links show up on the domain where they are
not intended to be shown and also the links not for http://www.xarum.com or http://www.xarum.net are not shown by the multi-page module.

My idea is to manually edit those links in each site's template, but I cannot figure out which php file actually generates the automatic links in the top menu.

Any help would be very much appreciated.

N.B. I also have the CEON module installed to have nicer url's. Could this maybe used to rewrite urls

domain1/product-not-listed-here

to

domain2/where-product-actually-is

Thanks
Jan

19 Apr 2016, 6:13 AM
#507
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Re: Stirling Grand Responsive Template

You might also want to check out the

CSS_read_me.txt

file in includes/templates/template_default/css.

With a bit of thought you may be able to utilise the ability to write custom css for identifiable pages so that categories you don't want on pageX won't appear there, but will appear where you want.

Perhaps depends on the structure of your categories, but it should be possible to create custom classes for categories and use css display:none; to hide specific categories on specific pages.

You could get this working fairly easily were you to hand-code your category list/s in place of the auto-generated lists in tpl_mega_menu.php.

21 Apr 2016, 11:32 AM
#508
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Stirling Grand Responsive Template

Xarum:

Would it be possible to replace the automatically generated links in the css top menu under "shop" with manually created links? I am asking because I am using Stirling Grand on a multi-page install where each web site should only show a few categories. This works fine in the multi-page module and the categories box on the left, but not in the top "shop" menu, see

http://www.xarum.com/intellectual-property-rights
http://www.xarum.net/process-agent

I am concerned that it would generate duplicate content if the links show up on the domain where they are
not intended to be shown and also the links not for http://www.xarum.com or http://www.xarum.net are not shown by the multi-page module.

My idea is to manually edit those links in each site's template, but I cannot figure out which php file actually generates the automatic links in the top menu.

Any help would be very much appreciated.

N.B. I also have the CEON module installed to have nicer url's. Could this maybe used to rewrite urls

domain1/product-not-listed-here

to

domain2/where-product-actually-is

Thanks
Jan

You can edit the file includes/templates/stirling_grand/templates/tpl_modules_mobile_categories_tabs.php

Thanks,

Anne

25 Apr 2016, 12:27 AM
#509
xarum avatar

xarum

New Zenner

Join Date:
Apr 2016
Location:
Amsterdam
Posts:
6
Plugin Contributions:
0

Re: Stirling Grand Responsive Template

Thanks everyone for suggestions

If I uncomment using //

// 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);
// $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;

in both files you mentioned:

/includes/templates/stirling_grand/common/tpl_mega_menu.php
/includes/templates/stirling_grand/templates/tpl_modules_mobile_categories_tabs.php

and add the link manually in the style:

echo "<a href="Link1" title=" Linktitle "> Linktext</a>"
echo "<a href="Link2" title=" Linktitle "> Linktext</a>"

then it will certainly stop the automatically generated links and display only the ones above, but it does not change the links if an another language is chosen. E.g. somebody visiting the page in German would always see the (manually entered) links in English.

One possible solution I see is to make

domain1 - only English content
domain2 - only German content

It is possible to do this I found out by entering only an English or German description/name for the category/product (and ignoring the CEON warning that mappings could not be created as a result).

The Multi Side module can be configured to show English products on domain1 only and German products on domain2 only.

But then the language selector in sideboxes/languages_header.php will need to be edited to auto generate instead of

domain1/product-in-english?language=de

http://www.domain2/product-in-german?language=de

Does anyone know how to add http://www.domain1 for one language flag and http://www.domain2 for the other flag?

25 Apr 2016, 6:09 PM
#510
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Stirling Grand Responsive Template

Xarum:

Thanks everyone for suggestions

If I uncomment using //

// 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);
// $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;

in both files you mentioned:

/includes/templates/stirling_grand/common/tpl_mega_menu.php
/includes/templates/stirling_grand/templates/tpl_modules_mobile_categories_tabs.php

and add the link manually in the style:

echo "<a href="Link1" title=" Linktitle "> Linktext</a>"
echo "<a href="Link2" title=" Linktitle "> Linktext</a>"

then it will certainly stop the automatically generated links and display only the ones above, but it does not change the links if an another language is chosen. E.g. somebody visiting the page in German would always see the (manually entered) links in English.

One possible solution I see is to make

domain1 - only English content
domain2 - only German content

It is possible to do this I found out by entering only an English or German description/name for the category/product (and ignoring the CEON warning that mappings could not be created as a result).

The Multi Side module can be configured to show English products on domain1 only and German products on domain2 only.

But then the language selector in sideboxes/languages_header.php will need to be edited to auto generate instead of

domain1/product-in-english?language=de

http://www.domain2/product-in-german?language=de

Does anyone know how to add http://www.domain1 for one language flag and http://www.domain2 for the other flag?

If the functionality is there in the categories sidebox, then you should be able to make this work with the drop down menu. This sort of programming is not something that I can help you with on the forum, off of the top of my head ;) If you post the question more generally to the forum, maybe one of the php wizzes will see it and be able to help.

Thanks,

Anne

Thanks,

Anne

27 Apr 2016, 11:42 PM
#511
xarum avatar

xarum

New Zenner

Join Date:
Apr 2016
Location:
Amsterdam
Posts:
6
Plugin Contributions:
0

Re: Stirling Grand Responsive Template

Hi Anne

I take your advice an will post a new topic regarding the language flags. Still trying to find out which files of the template I need to edit to create the top menu manually and also language based. So far I could only spot that

/includes/templates/stirling_grand/common/tpl_mega_menu.php
/includes/templates/stirling_grand/templates/tpl_modules_mobile_categories_tabs.php

are responsible for this menu.

Regards
Jan

3 May 2016, 7:18 PM
#512
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Stirling Grand Responsive Template

Xarum:

Hi Anne

I take your advice an will post a new topic regarding the language flags. Still trying to find out which files of the template I need to edit to create the top menu manually and also language based. So far I could only spot that

/includes/templates/stirling_grand/common/tpl_mega_menu.php
/includes/templates/stirling_grand/templates/tpl_modules_mobile_categories_tabs.php

are responsible for this menu.

Regards
Jan

There is also:

includes/classes/categories_ul_generator.css

Thanks,

Anne

4 Jun 2017, 6:03 PM
#513
gsallen101289 avatar

gsallen101289

New Zenner

Join Date:
Aug 2009
Posts:
44
Plugin Contributions:
0

Re: Stirling Grand Responsive Template

Is there a way to remove the "details" section from products on the mobile environment?

24 Aug 2017, 3:05 PM
#514
gibby avatar

gibby

New Zenner

Join Date:
Aug 2017
Posts:
2
Plugin Contributions:
0

Re: Stirling Grand Responsive Template

Hi Anne,

Thanks for a great template!

After testing I have noticed a small issue with the shopping cart count on the mobile version of the site. It shows the following (attached).

Attachment 17242

Does anyone know how to resolve this issue?

Thanks

Craig

24 Aug 2017, 3:58 PM
#515
gunni avatar

gunni

Zen Follower

Join Date:
Aug 2010
Location:
Israel
Posts:
287
Plugin Contributions:
0

Re: Stirling Grand Responsive Template

Usually a missed ' or something like that.
Use your admin->tools->developers tools kit and search for the above text
and it will show you in which file it is.

28 Aug 2017, 5:12 AM
#516
gibby avatar

gibby

New Zenner

Join Date:
Aug 2017
Posts:
2
Plugin Contributions:
0

Re: Stirling Grand Responsive Template

Thanks gunni.

I was able to find the issue in the following file: /includes/templates/stirling_grand/templates/tpl_modules_mobile_categories_tabs.php

The following line of code was missing some php tags:

<li class="mshopping-cart"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?> - <? echo $_SESSION['cart']->count_contents();?> <?php echo HEADER_TITLE_CART_ITEMS; ?> - <? echo $currencies->format($_SESSION['cart']->show_total());?></a></li>

The code should be changed to:

<li class="mshopping-cart"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?> - <?php echo $_SESSION['cart']->count_contents();?> <?php echo HEADER_TITLE_CART_ITEMS; ?> - <?php echo $currencies->format($_SESSION['cart']->show_total());?></a></li>

Thanks

Craig

2 Oct 2018, 5:06 PM
#517
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Stirling Grand Responsive Template

picaflor-azul:

the template is only coded out to 4 levels deep so if you have more levels you will need to copy the styles for the additional levels
Hi Anne,

Which are the styles that have to be copied to get six levels instead of four?

I have a six level category structure and when hovering over level 3 categories, the sub menus for levels 4, 5, and 6 are all opening at the same time.

2 Oct 2018, 6:00 PM
#518
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Stirling Grand Responsive Template

Nevermind. I found them in the css

19 Dec 2018, 7:39 AM
#519
chibipaw avatar

chibipaw

Zen Follower

Join Date:
Jul 2011
Posts:
163
Plugin Contributions:
0

Re: Stirling Grand Responsive Template

Hi there. Trying to test out several different themes and Im having some issues a "PHP Warning: A non-numeric value encountered" error.

I have several themes loaded, including an older Aberdeen Neutral theme on the system.
They appear to run perfectly without any error generated to the log folder. However, only when I switch the Stirling Grand theme, my log folder fills up with this error. Things seems to be functional except for light box, which I haven't installed on yet into this theme until I can figure out what's causing this.

Any ideas?

Configuration is:
ZC 1.5.5f
PHP 7.1.23
mariadb 10.2.12

[18-Dec-2018 23:24:02 America/Los_Angeles] Request URI: /, IP address: 127.0.0.1
#1 zen_categories_ul_generator->buildBranch() called at [/home/www/includes/classes/categories_ul_generator.php:85]
#2 zen_categories_ul_generator->buildTree() called at [/home/www/includes/templates/stirling_grand/common/tpl_mega_menu.php:42]
#3 require(/home/www/includes/templates/stirling_grand/common/tpl_mega_menu.php) called at [/home/www/includes/templates/stirling_grand/common/tpl_header.php:145]
#4 require(/home/www/includes/templates/stirling_grand/common/tpl_header.php) called at [/home/www/includes/templates/stirling_grand/common/tpl_main_page.php:134]
#5 require(/home/www/includes/templates/stirling_grand/common/tpl_main_page.php) called at [/home/www/index.php:97]

[18-Dec-2018 23:24:02 America/Los_Angeles] PHP Warning: A non-numeric value encountered in /home/www/includes/classes/categories_ul_generator.php on line 58
[18-Dec-2018 23:24:02 America/Los_Angeles] Request URI: /, IP address: 127.0.0.1
#1 zen_categories_ul_generator->buildBranch() called at [/home/www/includes/classes/categories_ul_generator.php:85]
#2 zen_categories_ul_generator->buildTree() called at [/home/www/includes/templates/stirling_grand/templates/tpl_modules_mobile_categories_tabs.php:32]
#3 require(/home/www/includes/templates/stirling_grand/templates/tpl_modules_mobile_categories_tabs.php) called at [/home/www/includes/templates/stirling_grand/common/tpl_header.php:154]
#4 require(/home/www/includes/templates/stirling_grand/common/tpl_header.php) called at [/home/www/includes/templates/stirling_grand/common/tpl_main_page.php:134]
#5 require(/home/www/includes/templates/stirling_grand/common/tpl_main_page.php) called at [/home/www/index.php:97]

[18-Dec-2018 23:24:02 America/Los_Angeles] PHP Warning: A non-numeric value encountered in /home/www/includes/classes/categories_ul_generator.php on line 58

21 Jan 2019, 8:33 AM
#520
pm32 avatar

pm32

New Zenner

Join Date:
Jul 2014
Posts:
2
Plugin Contributions:
0

Re: Stirling Grand Responsive Template

Hi
Great template. Everything seems to be workin but I dont have "Activate Responsive Template" in Layout settings and the cell phone display the pictures in columns are tiled in each row.
Once again, thanks for your time.
Paul