Zen Cart Logo
Forums / Addon Templates / Westminster New

Westminster New

Views: 494,173

Results 1,701 to 1,720 of 1,865
18 Oct 2019, 10:24 AM
#1701
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Westminster New

Okay, finally sorted it. Here's how I fixed it...

  1. Changed template to Responsive in Admin/Tools
  2. Uploaded the Flexible Footer mod and installed it over the existing Wesminster template
  3. Activated the Footer mod - Yay, it worked!
  4. Reinstalled the Westminster template Flexible Footer Files.
  5. Changed the template back to Westminster and Voila... I have a footer and a happy website.... so far!

The instructions don't mention about downloading and installing the Flexible Footer Mod before installing the template... it's mentioned afterwards, and that didn't work for me as a fresh install.

:-)
:-)

26 Oct 2019, 2:57 AM
#1702
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Westminster New

Hello Elemi - was your install on zen cart v1.5.6 ?? (latest version?)

cheers,
Mike

26 Oct 2019, 1:16 PM
#1703
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Westminster New

ZC v1.5.6c

There seems to be an issue with the easyResponsiveTabs on the product_info page. I'm in the process of migrating a 1.5.5f site to 1.5.6c so it's not live yet.

Loading a product info page is error free but clicking on a non-selected tab causes a 'ReferenceError: $info is not defined' error in my browser console (both Chrome and Firefox). The page then hangs/inoperative in Firefox but not Chrome.

The tpl_product_info_display.php code in question is:

<script src="includes/templates/westminster_new/jscript/easyResponsiveTabs.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('#horizontalTab').easyResponsiveTabs({
            type: 'default', //Types: default, vertical, accordion           
            width: 'auto', //auto or any width like 600px
            fit: true,   // 100% fit in a container
                    activate: function(event) { // Callback function if tab is switched
                var $tab = $(this);
               [B] var $name = $('span', $info);[/B]

                $name.text($tab.text());

                $info.show();
            }
        });

        $('#verticalTab').easyResponsiveTabs({
            type: 'vertical',
            width: 'auto',
            fit: true
        });
    });
</script>

You can see the javascript code is called after the easyresponsiveTabs.js - and is also after the jquery.

To establish whether it's just me, the website is this recent post also has the same problem: https://www.zen-cart.com/showthread.php?213334-Westminster-New&p=1362473#post1362473, I believe it uses the v2.0 of this mod.

If anyone else with the latest version of this mod, on ZC 1.5.6c, can confirm it is an issue, that would be great.

26 Oct 2019, 1:59 PM
#1704
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Westminster New

It turns out that it hangs in Firefox only when the Inspector window is open. This not withstanding the error persists, although no longer a serious issue.

27 Oct 2019, 9:56 AM
#1705
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Re: Westminster New

shags38:

was your install on zen cart v1.5.6 ?? (latest version?)

Hi Mike

Yes it was!

27 Oct 2019, 10:02 AM
#1706
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Re: Westminster New

Hi Simon

I still have some weird stuff going on although I sorted out the footer...

Do you understand this one?
[13-Oct-2019 06:56:17 UTC] Request URI: /index.php?main_page=popup_attributes_qty_prices&products_id=159&products_tax_class_id=1, IP address: 125.236.139.99
#1 require(/home/sentialz/public_html/includes/modules/pages/popup_attributes_qty_prices/header_php.php) called at [/home/sentialz/public_html/index.php:36]
--> PHP Warning: Use of undefined constant NAVBAR_TITLE_1 - assumed 'NAVBAR_TITLE_1' (this will throw an Error in a future version of PHP) in /home/sentialz/public_html/includes/modules/pages/popup_attributes_qty_prices/header_php.php on line 12.

I'm on the latest PHP version, and what I have been entering to date is viewable on https://www.essentialz.co.nz. I'm creating it live so I can actually see what's happening for me.

Tania :-)

27 Oct 2019, 12:48 PM
#1707
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Westminster New

I'm afraid I don't know enough about the operation of 'popup_attributes_qty_prices.php to be able to help - others have posted on this topic e.g. https://www.zen-cart.com/showthread.php?225770-Quantity-Discounts-Available-pop-up-window-gives-log-error&highlight=Use+of+undefined+constant+NAVBAR_TITLE_1

Although with no definitive solution.

Edit: I don't believe it is an issue with this template.

27 Oct 2019, 1:14 PM
#1708
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Westminster New

simon1066:

I'm afraid I don't know enough about the operation of 'popup_attributes_qty_prices.php to be able to help - others have posted on this topic e.g. https://www.zen-cart.com/showthread.php?225770-Quantity-Discounts-Available-pop-up-window-gives-log-error&highlight=Use+of+undefined+constant+NAVBAR_TITLE_1

Although with no definitive solution.

Edit: I don't believe it is an issue with this template.
Agreed, it appears to be a 'base' Zen Cart issue. Since that popup bypasses the 'normal' /common/tpl_main_page.php processing and doesn't use the breadcrumb, I believe that the most expedient solution is to edit /includes/modules/pages/popup_attributes_qty_prices/header_php.php

<?php
/**
 * Pop Up for attributes qty prices
 *
 * @package page
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: header_php.php 2982 2006-02-07 07:56:41Z birdbrain $
 */
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
$breadcrumb->add(NAVBAR_TITLE_1);
?>

and simply comment-out that line:

<?php
/**
 * Pop Up for attributes qty prices
 *
 * @package page
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: header_php.php 2982 2006-02-07 07:56:41Z birdbrain $
 */
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
[B]//-Removed, no NAVBAR_TITLE_1 defined: [/B]$breadcrumb->add(NAVBAR_TITLE_1);
?>
30 Oct 2019, 1:53 AM
#1709
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Westminster New

Hello - I would like to remove the dropdown menu (for desktop) that appears just under the logo at the top of the page - I think it is called slimmenu but believe it is required for mobile use?. refer image for clarification.

cheers,
Mike

[Attachment no longer available]

30 Oct 2019, 8:16 PM
#1710
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Westminster New

add after stylesheet.css line 333

ul.slimmenu {display: none;}
31 Oct 2019, 1:11 AM
#1711
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Westminster New

dbltoe:

add after stylesheet.css line 333

ul.slimmenu {display: none;}


Thanks dbltoe for your quick response - unfortunately it isn't working for me, the drop down menu is still showing (after clearing browser cache a few times and using two browsers) - I believe I have placed the code where you indicated however I do slip up from time to time .... here is that section of stylesheet.css after adding that code below line 333 at what has now become the new line 334 - does this look OK to you? cheers, Mike

/bof mobile menu/
.menu-collapser {position:relative;background:transparent;color:#000;text-shadow: 0 1px 0 rgba(0,0,0,0.5);width: 100%;height: 48px;line-height: 48px;font-size: 16px;padding: 0 8px;box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;}
.collapse-button {position: absolute;right: 8px;top: 50%;width: 40px;background: #171717;box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 0 rgba(255, 255, 255, 0.075);padding: 7px 10px;text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);cursor: pointer;font-size: 14px;text-align: center;transform: translate(0, -50%);-o-transform: translate(0, -50%);-ms-transform: translate(0, -50%);-moz-transform: translate(0, -50%);-webkit-transform: translate(0, -50%);box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box}
.collapse-button:hover, .collapse-button:focus {background-image: none;background: #666;color: #fff;}
.collapse-button .icon-bar {background-color: #fff;border-radius: 1px 1px 1px 1px;box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);display: block;height: 2px;width: 18px;margin: 3px 0;}
#menu{float:left;margin-top:20px;width:100%;}
ul.slimmenu, ul.slimmenu1 {list-style-type: none;margin: 0;padding: 0;width: 100%;}
ul.slimmenu {display: none;}
ul.slimmenu li, ul.slimmenu1 li {position: relative;display: inline-block;background:transparent;}
ul.slimmenu > li, ul.slimmenu1 > li { margin-right: -5px; border-left: 0px solid #999 }
ul.slimmenu > li:first-child, ul.slimmenu1 > li:first-child { border-left: 0 }
ul.slimmenu > li:last-child, ul.slimmenu1 > li:last-child { margin-right: 0 }
ul.slimmenu li a {display: block;color: #a0a0a0;text-transform:uppercase;padding: 12px 34px 12px 6px;font-size: 120%;font-weight: normal;transition: background-color 0.5s ease-out;-o-transition: background-color 0.5s ease-out;-moz-transition: background-color 0.5s ease-out;-webkit-transition: background-color 0.5s ease-out;}
ul.slimmenu1 li a{display: block;color: #444;padding: 12px 34px 12px 6px;font-size: 16px;font-weight: normal;transition: background-color 0.5s ease-out;-o-transition: background-color 0.5s ease-out;-moz-transition: background-color 0.5s ease-out;-webkit-transition: background-color 0.5s ease-out;}
ul.slimmenu li a:hover, ul.slimmenu1 li a:hover {background:#171717;text-decoration: none;color:#fff;}
ul.slimmenu li .sub-collapser, ul.slimmenu1 li .sub-collapser {background: none;position: absolute;right: 0;top: 0;width: 28px;height: 100%;text-align: center;z-index: 999;cursor: pointer;}
ul.slimmenu li .sub-collapser:before, ul.slimmenu1 li .sub-collapser:before {content: '';display: inline-block;height: 100%;vertical-align: middle;margin-right: -0.25em;}
ul.slimmenu li .sub-collapser > i, ul.slimmenu1 li .sub-collapser > i {color:#a0a0a0;font-size:13px;display:inline-block;vertical-align:middle;}
ul.slimmenu li ul, ul.slimmenu1 li ul {margin: 0;list-style-type: none;}
ul.slimmenu li ul li, ul.slimmenu1 li ul li {background:#171717;width:190px;padding-left:20px;font-size:95%;}
ul.slimmenu li ul li a:hover, ul.slimmenu1 li ul li a:hover{color:#fff;}
ul.slimmenu li > ul, ul.slimmenu1 li > ul {display: none;position: absolute;left: -40px;top: 100%;z-index: 9999;}
ul.slimmenu li > ul > li ul, ul.slimmenu1 li > ul > li ul {display: none;position: absolute;left: 75%;top: 0;z-index: 999;}
ul.slimmenu.collapsed li, ul.slimmenu1.collapsed li {display: block;width: 99%;box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box}
ul.slimmenu.collapsed li a, ul.slimmenu1.collapsed li a {display: block;border-bottom: 1px solid rgba(0, 0, 0, 0.075);box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box}
ul.slimmenu.collapsed li .sub-collapser, ul.slimmenu1.collapsed li .sub-collapser {height: 45px;width:100px;}
ul.slimmenu.collapsed li > ul, ul.slimmenu1.collapsed li > ul {display: none;position: static;}
ul.slimmenu.collapsed li ul.level2, ul.slimmenu1.collapsed li ul.level2 {margin-left:-30px;width:99%;}
ul.slimmenu.collapsed li ul.level2 li ul, ul.slimmenu1.collapsed li ul.level2 li ul {margin-left:-30px;width:99%;}

31 Oct 2019, 1:27 AM
#1712
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: Westminster New

#menu{float:left;margin-top:20px;width:100%;}
``` add display:none; to that and test
31 Oct 2019, 2:37 AM
#1713
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Westminster New

barco57:

#menu{float:left;margin-top:20px;width:100%;}


Hi barco57 - that worked but too well - it removed the menu from mobile rendering as well.

So looking for a way to remove it from desktop render but retain it on mobile render - any ideas?

cheers, Mike
31 Oct 2019, 3:22 AM
#1714
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: Westminster New

Might work if you put it in the responsive_default inside the section that begins with ```
@media (min-width:768px) and (max-width:2400px) {

so right after that you would add a line that looks like this```
#menu {display:none;}
31 Oct 2019, 3:59 AM
#1715
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Westminster New

barco57:

Might work if you put it in the responsive_default inside the section that begins with ```
@media (min-width:768px) and (max-width:2400px) {

> so right after that you would add a line that looks like this```
#menu {display:none;}

Nice try barco57 but unfortunately that didn't work :dontgetit

31 Oct 2019, 4:46 AM
#1716
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: Westminster New

Add it to this section, begins at line 366 in responsive_default.css

@media (min-width:980px)
{
#mobile-nav1{display:none;}
#menu {display:none;}
}

and if it works you can collapse that to

@media (min-width:980px)
{
#mobile-nav1, #menu{display:none;}
}
4 Nov 2019, 9:37 PM
#1717
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Re: Westminster New

lat9:

Agreed, it appears to be a 'base' Zen Cart issue. Since that popup bypasses the 'normal' /common/tpl_main_page.php processing and doesn't use the breadcrumb, I believe that the most expedient solution is to edit /includes/modules/pages/popup_attributes_qty_prices/header_php.php

<?php /** * Pop Up for attributes qty prices * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 2982 2006-02-07 07:56:41Z birdbrain $ */ require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php')); $breadcrumb->add(NAVBAR_TITLE_1); ?>
> and simply comment-out that line:
> ```
<?php
/**
 * Pop Up for attributes qty prices
 *
 * @package page
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: header_php.php 2982 2006-02-07 07:56:41Z birdbrain $
 */
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
[B]//-Removed, no NAVBAR_TITLE_1 defined: [/B]$breadcrumb->add(NAVBAR_TITLE_1);
?>

Thank you, have done that wee update and it appears to have disappeared... yayyyy :-)

4 Nov 2019, 9:41 PM
#1718
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Re: Westminster New

Okay, so 1.5.6c, PHP latest version, New install
Mods: This template, Captcha, Bank Deposit

This seems to be the only debug I have left... which is popping up every minute... any suggestions on how I fix it... read earlier parts of this thread but I couldn't work out what the solution was...

[04-Nov-2019 09:09:40 UTC] Request URI: /index.php?main_page=product_info&products_id=187, IP address: 66.220.149.19
#1 require(/home/sentialz/public_html/includes/modules/westminster_new/additional_images.php) called at [/home/sentialz/public_html/includes/templates/template_default/templates/tpl_modules_additional_images.php:13]
#2 require(/home/sentialz/public_html/includes/templates/template_default/templates/tpl_modules_additional_images.php) called at [/home/sentialz/public_html/includes/templates/westminster_new/templates/tpl_product_info_display.php:73]
#3 require(/home/sentialz/public_html/includes/templates/westminster_new/templates/tpl_product_info_display.php) called at [/home/sentialz/public_html/includes/modules/pages/product_info/main_template_vars.php:177]
#4 require(/home/sentialz/public_html/includes/modules/pages/product_info/main_template_vars.php) called at [/home/sentialz/public_html/includes/templates/westminster_new/common/tpl_main_page.php:216]
#5 require(/home/sentialz/public_html/includes/templates/westminster_new/common/tpl_main_page.php) called at [/home/sentialz/public_html/index.php:97]
--> PHP Warning: Use of undefined constant LARGE_IMAGE_WIDTH - assumed 'LARGE_IMAGE_WIDTH' (this will throw an Error in a future version of PHP) in /home/sentialz/public_html/includes/modules/westminster_new/additional_images.php on line 205.

[04-Nov-2019 09:09:40 UTC] Request URI: /index.php?main_page=product_info&products_id=187, IP address: 66.220.149.19
#1 require(/home/sentialz/public_html/includes/modules/westminster_new/additional_images.php) called at [/home/sentialz/public_html/includes/templates/template_default/templates/tpl_modules_additional_images.php:13]
#2 require(/home/sentialz/public_html/includes/templates/template_default/templates/tpl_modules_additional_images.php) called at [/home/sentialz/public_html/includes/templates/westminster_new/templates/tpl_product_info_display.php:73]
#3 require(/home/sentialz/public_html/includes/templates/westminster_new/templates/tpl_product_info_display.php) called at [/home/sentialz/public_html/includes/modules/pages/product_info/main_template_vars.php:177]
#4 require(/home/sentialz/public_html/includes/modules/pages/product_info/main_template_vars.php) called at [/home/sentialz/public_html/includes/templates/westminster_new/common/tpl_main_page.php:216]
#5 require(/home/sentialz/public_html/includes/templates/westminster_new/common/tpl_main_page.php) called at [/home/sentialz/public_html/index.php:97]
--> PHP Warning: Use of undefined constant LARGE_IMAGE_HEIGHT - assumed 'LARGE_IMAGE_HEIGHT' (this will throw an Error in a future version of PHP) in /home/sentialz/public_html/includes/modules/westminster_new/additional_images.php on line 205.

I'll donate a coffee for the person who can fix this for me :-)

5 Nov 2019, 5:07 AM
#1719
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Westminster New

Neither of those variables are in a standard 1.5.6c load. Have you used the Developer's tool kit to search for them?

You may have a hold over from an earlier version or a mod you did not list. Earlier version or mod may be in YOUR_ADMIN/includes/modules/update_product.php

5 Nov 2019, 7:24 AM
#1720
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Re: Westminster New

dbltoe:

Neither of those variables are in a standard 1.5.6c load. Have you used the Developer's tool kit to search for them?

You may have a hold over from an earlier version or a mod you did not list. Earlier version or mod may be in YOUR_ADMIN/includes/modules/update_product.php

Brand new website, brand new CPanel, brand new install so definitely no carry over.

By variable I assume you mean LARGE_IMAGE_WIDTH and LARGE_IMAGE_HEIGHT? If so, they are both in the Westminster New template only.

As for the rest of what is written up there, I don't actually understand it :-(