Zen Cart Logo
Forums / Addon Templates / Westminster New

Westminster New

Views: 494,273

Results 1,101 to 1,120 of 1,865
27 Jul 2015, 1:44 AM
#1101
kwright avatar

kwright

Zen Follower

Join Date:
Nov 2004
Posts:
355
Plugin Contributions:
0

Westminster New

picaflor-azul:

I would add a display:none; to the responsive_default.css file for the media query that is appropriate to the screen size for which you want to hide the categories tabs.

Thanks,

Anne

Thanks Anne,

As always, you're spot on! Added #menu{display:none;} to @media (min-width:980px) in responsive_default.css.

CSS saves the day again! :clap:

27 Jul 2015, 2:05 AM
#1102
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Re: Westminster New

Well I figured it out partially before supper but see Anne beat me to it. Thank you. I actually put a media request into my stylesheet.css, which wouldn't work because it kept getting overwritten by an inline style piece of code:

<ul class="slimmenu" style="display: block;">

which I couldn't not find.

So I did this:

@media (min-width: 400px){
.slimmenu{display:none; visibility: hidden;}

}

I just did the 400px to force it to enter that piece of code and added visibility to make it go away (but it still occupied space so I knew it wasn't the answer).

So Anne, if you have time to add (both learning questions)

  1. Is it legit to add the media to the stylesheet or is it just nicer code to keep all the media in the responsive stylesheet?
  2. You changed #menu, I changed #slimmenu, does it make a difference?

Thanks
lruskauff

27 Jul 2015, 12:58 PM
#1103
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

lruskauff:

Well I figured it out partially before supper but see Anne beat me to it. Thank you. I actually put a media request into my stylesheet.css, which wouldn't work because it kept getting overwritten by an inline style piece of code:

<ul class="slimmenu" style="display: block;"> ``` > which I couldn't not find. > > So I did this: > ``` @media (min-width: 400px){ .slimmenu{display:none; visibility: hidden;}

}

> 
> I just did the 400px to force it to enter that piece of code and added visibility to make it go away (but it still occupied space so I knew it wasn't the answer).
> 
> So Anne, if you have time to add (both learning questions)
> 1.  Is it legit to add the media to the stylesheet or is it just nicer code to keep all the media in the responsive stylesheet?
> 2.  You changed #menu, I changed #slimmenu, does it make a difference?
> 
> Thanks
> lruskauff

No, that is not best practice.  Edit the responsive_default.css for media queries that effect devices that are not tablets or mobiles.  The style should be on the #menu element

Thanks,

Anne
27 Jul 2015, 5:03 PM
#1104
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Re: Westminster New

picaflor-azul:

No, that is not best practice. Edit the responsive_default.css for media queries that effect devices that are not tablets or mobiles. The style should be on the #menu element

Thanks,

Anne

Thank you for the tips.

Lruskauff

8 Aug 2015, 4:11 PM
#1105
chrissyann avatar

chrissyann

New Zenner

Join Date:
Oct 2014
Location:
United Kingdom
Posts:
24
Plugin Contributions:
0

Re: Westminster New

I have a problem with my admin giving me a warning error message since installing this template last week, It would seem that this is because I originally did not install the template correctly, I have since tried to re-install but it has not fixed the problem with the admin. I have tried to search for a possible answer as too what I need to do to fix it but cannot find anything that helps. I think it may be a problem with the configure.php files in the includes and the admin includes folder but I am really not 100% sure if that is the case or even if there maybe any other file that should be fixed. I was hoping that someone may know which files i have to fix to get back into the admin.

8 Aug 2015, 4:15 PM
#1106
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Re: Westminster New

What error message do you get?

Lruskauff

8 Aug 2015, 4:50 PM
#1107
chrissyann avatar

chrissyann

New Zenner

Join Date:
Oct 2014
Location:
United Kingdom
Posts:
24
Plugin Contributions:
0

Re: Westminster New

The error is

WARNING: An Error occurred, please refresh the page and try again.

8 Aug 2015, 5:10 PM
#1108
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

chrissyann:

I have a problem with my admin giving me a warning error message since installing this template last week, It would seem that this is because I originally did not install the template correctly, I have since tried to re-install but it has not fixed the problem with the admin. I have tried to search for a possible answer as too what I need to do to fix it but cannot find anything that helps. I think it may be a problem with the configure.php files in the includes and the admin includes folder but I am really not 100% sure if that is the case or even if there maybe any other file that should be fixed. I was hoping that someone may know which files i have to fix to get back into the admin.

Look in your logs folder for errors and correct them.

Thanks,

Anne

8 Aug 2015, 5:32 PM
#1109
chrissyann avatar

chrissyann

New Zenner

Join Date:
Oct 2014
Location:
United Kingdom
Posts:
24
Plugin Contributions:
0

Re: Westminster New

I am not quite sure but from what I have read is that if I can get the banner problem fixed that should rectify my admin error, but I maybe wrong. I have attached a screenshot of the home page which shows the error I have with the install of the template. I dont know if that helps but willing to give what info is necessary to determine what I need to do. Sorry for being a pain, just want to find a way to fix it all.

Attachment 15515

8 Aug 2015, 5:42 PM
#1110
chrissyann avatar

chrissyann

New Zenner

Join Date:
Oct 2014
Location:
United Kingdom
Posts:
24
Plugin Contributions:
0

Re: Westminster New

Yes I have looked in the log files but there is no information to help with finding what the error could be,

This is the only error in the log

Duplicate entry 'configZenLightbox' for key 'page_key' :: INSERT INTO pht_admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order)VALUES
('configZenLightbox', 'BOX_CONFIGURATION_ZEN_LIGHTBOX', 'FILENAME_CONFIGURATION', CONCAT('gID=',@cgi), 'configuration', 'Y', @cgi); in /home3/**************/store/includes/classes/db/mysql/query_factory.php on line 120

8 Aug 2015, 6:10 PM
#1111
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

chrissyann:

Yes I have looked in the log files but there is no information to help with finding what the error could be,

This is the only error in the log

Duplicate entry 'configZenLightbox' for key 'page_key' :: INSERT INTO pht_admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order)VALUES
('configZenLightbox', 'BOX_CONFIGURATION_ZEN_LIGHTBOX', 'FILENAME_CONFIGURATION', CONCAT('gID=',@cgi), 'configuration', 'Y', @cgi); in /home3/**************/store/includes/classes/db/mysql/query_factory.php on line 120

Do you already have the lightbox plugin installed?

Thanks,

Anne

8 Aug 2015, 6:12 PM
#1112
chrissyann avatar

chrissyann

New Zenner

Join Date:
Oct 2014
Location:
United Kingdom
Posts:
24
Plugin Contributions:
0

Re: Westminster New

yes I do, is that what is causing the problem, I did notice a reference to it but didnt think it could be connected with this problem

8 Aug 2015, 6:47 PM
#1113
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

chrissyann:

yes I do, is that what is causing the problem, I did notice a reference to it but didnt think it could be connected with this problem

If you already have that plugin installed, go to the admin/includes/installers/westminster_new/1_3.php file and remove this part:

//Zen Lightbox
$db->Execute("INSERT IGNORE INTO " . TABLE_CONFIGURATION_GROUP . " VALUES (NULL, 'Zen Lightbox', 'Configure Zen Lightbox settings', '0', '1');");
$db->Execute("UPDATE " . TABLE_CONFIGURATION_GROUP . " SET sort_order = LAST_INSERT_ID() WHERE configuration_group_id = LAST_INSERT_ID();");
$db->Execute("SELECT @cgi := configuration_group_id FROM " . TABLE_CONFIGURATION_GROUP . " WHERE configuration_group_title = 'Zen Lightbox';");

$db->Execute("INSERT IGNORE INTO " . TABLE_CONFIGURATION . " (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES
(NULL, '<b>Zen Lightbox</b>', 'ZEN_LIGHTBOX_STATUS', 'true', '<br />If true, all product images on the following pages will be displayed within a lightbox:<br /><br />- document_general_info<br />- document_product_info<br />- page (EZ-Pages)<br />- product_free_shipping_info<br />- product_info<br />- product_music_info<br />- product_reviews<br />- product_reviews_info<br />- product_reviews_write<br /><br /><b>Default: true</b>', @cgi, 100, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '),
(NULL, 'Overlay Opacity', 'ZEN_LIGHTBOX_OVERLAY_OPACITY', '0.8', '<br />Controls the transparency of the overlay.<br /><br /><b>Default: 0.8</b>', @cgi, 101, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''0'', ''0.1'', ''0.2'', ''0.3'', ''0.4'', ''0.5'', ''0.6'', ''0.7'', ''0.8'', ''0.9'', ''1''), '),
(NULL, 'Overlay Fade Duration', 'ZEN_LIGHTBOX_OVERLAY_FADE_DURATION', '400', '<br />Controls the fade duration of the overlay.<br /><br />Note: This value is measured in milliseconds.<br /><br /><b>Default: 400</b><br />', @cgi, 102, NOW(), NOW(), NULL, NULL),
(NULL, 'Resize Duration', 'ZEN_LIGHTBOX_RESIZE_DURATION', '400', '<br />Controls the speed of the image resizing.<br /><br />Note: This value is measured in milliseconds.<br /><br /><b>Default: 400</b><br />', @cgi, 103, NOW(), NOW(), NULL, NULL),
(NULL, 'Resize Transition', 'ZEN_LIGHTBOX_RESIZE_TRANSITION', 'false', '<br />Allows for custom control over the transition effect used to animate the lightbox.<br /><br /><b>Default: false</b><br />', @cgi, 104, NOW(), NOW(), NULL, NULL),
(NULL, 'Initial Width', 'ZEN_LIGHTBOX_INITIAL_WIDTH', '250', '<br />If Enable Resize Animations is set to true, the lightbox will resize its width from this value to the current image width, when first displayed.<br /><br />Note: This value is measured in pixels.<br /><br /><b>Default: 250</b><br />', @cgi, 105, NOW(), NOW(), NULL, NULL),
(NULL, 'Initial Height', 'ZEN_LIGHTBOX_INITIAL_HEIGHT', '250', '<br />If Enable Resize Animations is set to true, the lightbox will resize its height from this value to the current image height, when first displayed.<br /><br />Note: This value is measured in pixels.<br /><br /><b>Default: 250</b><br />', @cgi, 106, NOW(), NOW(), NULL, NULL),
(NULL, 'Image Fade Duration', 'ZEN_LIGHTBOX_IMAGE_FADE_DURATION', '400', '<br />Controls the fade duration of images.<br /><br />Note: This value is measured in milliseconds.<br /><br /><b>Default: 400</b><br />', @cgi, 107, NOW(), NOW(), NULL, NULL),
(NULL, 'Caption Animation Duration', 'ZEN_LIGHTBOX_CAPTION_ANIMATION_DURATION', '400', '<br />Controls the animation duration of the caption.<br /><br />Note: This value is measured in milliseconds.<br /><br /><b>Default: 400</b><br />', @cgi, 108, NOW(), NOW(), NULL, NULL),
(NULL, 'Display Image Counter', 'ZEN_LIGHTBOX_COUNTER', 'true', '<br />If true, the image counter will be displayed (below the caption of each image) within the lightbox.<br /><br /><b>Default: true</b>', @cgi, 109, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),'),
(NULL, 'Close on Image Click', 'ZEN_LIGHTBOX_CLOSE_IMAGE', 'true', '<br />If true, the lightbox will close when the image being displaying is clicked.<br /><br /><b>Default: false</b>', @cgi, 110, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '),
(NULL, 'Close on Overlay Click', 'ZEN_LIGHTBOX_CLOSE_OVERLAY', 'true', '<br />If true, the lightbox will close when the overlay is clicked.<br /><br /><b>Default: false</b>', @cgi, 111, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '),
(NULL, 'Always show Prev / Next', 'ZEN_LIGHTBOX_PREV_NEXT', 'true', '<br />If true, the lightbox will always show Previous & Next buttons when using additional images. NOTE: This setting will be overwritten automatically when Close on Image Click is set to TRUE.<br /><br /><b>Default: false</b>', @cgi, 112, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '),
(NULL, '<b>Keyboard Navigation</b>', 'ZEN_LIGHTBOX_KEYBOARD_NAVIGATION', 'true', '<br />If true, keyboard inputs will also be used to control the lightbox.<br /><br /><b>Default: true</b>', @cgi, 200, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '),
(NULL, 'Close Lightbox', 'ZEN_LIGHTBOX_ESCAPE_KEYS', '27,88,67', '<br />The lightbox will close when any of these keys are pressed.<br /><br />Note: Only <a href=\"http://en.wikipedia.org/wiki/ASCII\" target=\"_blank\">ASCII</a> decimal values should be entered and separated with a comma (if listing multiple values).<br /><br /><b>Default: 27,88,67</b><br />', @cgi, 201, NOW(), NOW(), NULL, NULL),
(NULL, 'Previous Image', 'ZEN_LIGHTBOX_PREVIOUS_KEYS', '37,80', '<br />The lightbox will display the previous image (if available) when any of these keys are pressed.<br /><br />Note: Only <a href=\"http://en.wikipedia.org/wiki/ASCII\" target=\"_blank\">ASCII</a> decimal values should be entered and separated with a comma (if listing multiple values).<br /><br /><b>Default: 37,80</b><br />', @cgi, 202, NOW(), NOW(), NULL, NULL),
(NULL, 'Next Image', 'ZEN_LIGHTBOX_NEXT_KEYS', '39,78', '<br />The lightbox will display the next image (if available) when any of these keys are pressed.<br /><br />Note: Only <a href=\"http://en.wikipedia.org/wiki/ASCII\" target=\"_blank\">ASCII</a> decimal values should be entered and separated with a comma (if listing multiple values).<br /><br /><b>Default: 39,78</b><br />', @cgi, 203, NOW(), NOW(), NULL, NULL),
(NULL, '<b>Gallery Mode</b>', 'ZEN_LIGHTBOX_GALLERY_MODE', 'true', '<br />If true, the lightbox will allow additional images to quickly be displayed using previous and next buttons.<br /><br /><b>Default: true</b>', @cgi, 300, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),'),
(NULL, 'Include Main Image in Gallery', 'ZEN_LIGHTBOX_GALLERY_MAIN_IMAGE', 'true', '<br />If true, the main product image will be included in the lightbox gallery.<br /><br /><b>Default: true</b>', @cgi, 301, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),'),
(NULL, '<b>EZ-Pages Support</b>', 'ZEN_LIGHTBOX_EZPAGES', 'true', '<br />If true, the lightbox effect will be used for linked images on all EZ-Pages.<br /><br /><b>Default: true</b>', @cgi, 400, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),'),
(NULL, 'File Types', 'ZEN_LIGHTBOX_FILE_TYPES', 'jpg,png,gif', '<br />On EZ-Pages, the lightbox effect will be applied to all images with one of the following file types.<br /><br /><b>Default: jpg,png,gif</b><br />', @cgi, 401, NOW(), NOW(), NULL, NULL);");
$db->Execute("INSERT INTO " . TABLE_ADMIN_PAGES . " (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order)VALUES 
 ('configZenLightbox', 'BOX_CONFIGURATION_ZEN_LIGHTBOX', 'FILENAME_CONFIGURATION', CONCAT('gID=',@cgi), 'configuration', 'Y', @cgi);");

Thanks,

Anne

8 Aug 2015, 7:24 PM
#1114
chrissyann avatar

chrissyann

New Zenner

Join Date:
Oct 2014
Location:
United Kingdom
Posts:
24
Plugin Contributions:
0

Re: Westminster New

Just wanted to say I have done what you suggested and it has worked perfectly Anne, so thank you very much I really appreciate it.

I would never have guessed that it was to do with the image handler, but thank you again

8 Aug 2015, 7:33 PM
#1115
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

chrissyann:

Just wanted to say I have done what you suggested and it has worked perfectly Anne, so thank you very much I really appreciate it.

I would never have guessed that it was to do with the image handler, but thank you again

It was because you already had lightbox installed.

Don't forget, with any new template install, if you have plugins installed that have template override files, you need to copy these over to the new template override folder or they will not work, cause errors, blank pages, etc.

Thanks,

Anne

8 Aug 2015, 7:44 PM
#1116
chrissyann avatar

chrissyann

New Zenner

Join Date:
Oct 2014
Location:
United Kingdom
Posts:
24
Plugin Contributions:
0

Re: Westminster New

oh okay thank you I had not realised that, so useful information to remember. I am learning slowly :-)

10 Aug 2015, 11:51 PM
#1117
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Westminster New

On one of my client's sites we were getting this error when adding an item to the cart or updating a quantity.

I know that this error has also been reported in the Winchester Responsive thread.

An unknown response null::text/html::SyntaxError:Unexpected token < was received while processing an ajax call. The action you requested could not be completed.

Solution:

Simply remove the file

** includes/templates/westminster_new/jscript/jscript_framework.php**

which differs from the standard ZC file

**includes/templates/template_default/jscript/jscript_framework.php**

for no logical reason.

The site now uses the template_default file. No error and checkout works fine.

Cheers / Frank

11 Aug 2015, 2:45 PM
#1118
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

frank18:

On one of my client's sites we were getting this error when adding an item to the cart or updating a quantity.

I know that this error has also been reported in the Winchester Responsive thread.

Solution:

Simply remove the file

** includes/templates/westminster_new/jscript/jscript_framework.php**

which differs from the standard ZC file

**includes/templates/template_default/jscript/jscript_framework.php**

for no logical reason.

The site now uses the template_default file. No error and checkout works fine.

Cheers / Frank

Yes, that is correct, thank you for posting. I do already have this marked down for future template upgrades ;)

Thanks,

Anne

11 Aug 2015, 4:21 PM
#1119
chrissyann avatar

chrissyann

New Zenner

Join Date:
Oct 2014
Location:
United Kingdom
Posts:
24
Plugin Contributions:
0

Re: Westminster New

The links in the footer dont seem to be working, I have checked the flexible footer menu in admin and the links are all present, so I am not sure what I am missing to do somewhere?

12 Aug 2015, 5:19 PM
#1120
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

chrissyann:

The links in the footer dont seem to be working, I have checked the flexible footer menu in admin and the links are all present, so I am not sure what I am missing to do somewhere?

If you post a link to your site I can take a look.

Thanks,

Anne