Zen Cart Logo
Forums / Addon Templates / Westminster New

Westminster New

Views: 494,103

Results 61 to 80 of 1,865
7 Jun 2014, 6:00 PM
#61
mr_chetanladdha avatar

mr_chetanladdha

New Zenner

Join Date:
Jul 2008
Posts:
84
Plugin Contributions:
0

Westminster New

Hi Anne,

I managed to add more tabs as you said. Now i have the number of tabs as i need. However, all show "contact us" and redirect to contact us page only.

Say, i want to make it "Festival Items" which should redirect to festival items category showing those products.

Attachment 14141

What part of code should i change to redirect it to the category url showing the description i want it to .

REgards

7 Jun 2014, 7:16 PM
#62
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

mr.chetanladdha:

Hi Anne,

I managed to add more tabs as you said. Now i have the number of tabs as i need. However, all show "contact us" and redirect to contact us page only.

Say, i want to make it "Festival Items" which should redirect to festival items category showing those products.

Attachment 14141

What part of code should i change to redirect it to the category url showing the description i want it to .

REgards

You would just put your information in the anchor tag like in a normal link:

<li><a href="your url">Your Text</a></li>

Thanks,

Anne

7 Jun 2014, 7:44 PM
#63
mr_chetanladdha avatar

mr_chetanladdha

New Zenner

Join Date:
Jul 2008
Posts:
84
Plugin Contributions:
0

Re: Westminster New

Thanks a lot Anne ! It was that simple ! :)

To remove the space between the top navigation bar, I removed the below code from tpl_header.php.

<div id="top-middle">
<div class="onerow-fluid <?php echo $fluidisFixed; ?>">

<!--bof-branding display-->
<div id="logoWrapper">
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?>
    </div>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    <div id="taglineWrapper">
<?php
              if (HEADER_SALES_TEXT != '') {
?>
      <div id="tagline">

<?php echo HEADER_SALES_TEXT;?>

      </div>
<?php
              }
?>
<?php
              if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                if ($banner->RecordCount() > 0) {
?>
      <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
                }
              }
?>
    </div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>

<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>

<div class="clearBoth"></div>
</div>

This made it look like below :

Attachment 14145

Perfect as I would like it. However, there are some minor problems that came up :

  1. The search box disappeared. !!!
  2. When I open it up on my iphone, there is no header links for categories / contact us / information and other links.

Huff !!!

9 Jun 2014, 11:10 AM
#64
yaritai avatar

yaritai

Zen Follower

Join Date:
Apr 2014
Posts:
154
Plugin Contributions:
0

Re: Westminster New

mr.chetanladdha:

Thanks a lot Anne ! It was that simple ! :)

To remove the space between the top navigation bar, I removed the below code from tpl_header.php.

<div id="top-middle"> <div class="onerow-fluid <?php echo $fluidisFixed; ?>"> <!--bof-branding display--> <div id="logoWrapper"> <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?> </div> <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?> <div id="taglineWrapper"> <?php if (HEADER_SALES_TEXT != '') { ?> <div id="tagline"> <?php echo HEADER_SALES_TEXT;?>
  </div>
<?php } ?> <?php if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) { if ($banner->RecordCount() > 0) { ?>
  <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php } } ?>
</div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?> <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div> <div class="clearBoth"></div> </div> ``` > > This made it look like below : > > Attachment 14145 > > Perfect as I would like it. However, there are some minor problems that came up : > > 1. The search box disappeared. !!! > 2. When I open it up on my iphone, there is no header links for categories / contact us / information and other links. > > Huff !!!

For the search box, I am going to assume it is in desktop view only. Tablet and mobile devices should be showing the search bar as it uses a separate header file. For the desktop, just look at the code you removed as it contains the search box. Your fix to delete the div to remove the space is 1 way to do it but it does not give you flexibility if you wanted to use that space again. For one, you took away control of having your logo present on your site which is important to give some sort of visual that your customers recognize you by. But if that is not important than just take the snippet of code for the search and place it where you want it.

Keep in mind that since you are now dealing with moving code out of pre-defined blocks that the developer has done, you will have to put the css calls to each instance where you want it. So you will have to put styling in both the main stylesheet and the responsive default files. The latter is not needed if you feel the search box does not interfere on minimizing the desktop view. If you wanted full confrol over the styling, just change the div of navMainSearch to something else. That way you can style it to your liking. Otherwise if you use the same id, just make sure to go through all the css files that use it and change it to your style.

As for your iphone, are you expecting the horizontal navigation to show as in your screenshot? By default, the mobile layout uses a responsive menu so look at the top right for a menu icon. Tap that and the dropdown of selections will appear including your new links you added.

10 Jun 2014, 11:07 AM
#65
frank18 avatar

frank18

Deceased

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

Re: Westminster New

Installed Fual Slimbox (Lightbox) on a local dev - just to see how it works with template native javascripts.

The result was completely unsatisfactory - the javascript of Fual Slimbox disabled the tabs on the product details pages, they become non-existent as tabs and all the page info is displayed in one single page instead of in tab details. The slim menu stops functioning altogether until one navigates away from the product details page. The LHS slideout disappers completely etc etc

The reason appears to be the usage of different versions of jquery, one overrides the other. The last loaded jquery dominates. Having two or more different versions of jquery on one site generally is not recommended, it always causes conflicts.

As soon as I disable Fual Slimbox, the site operates as normal.

Upon searching the forum for javascript conflicts relating to Fual Slimbox I came across numerous complaints.

My 5 cents: don't install Fual slimbox with this beautiful template - I uninstalled it.

Then I went on to install Zen Lightbox:

Much better result! Everything works fine BUT for one hiccup: the collapse menu (intended for small mobile screens) appears in the header of a desktop view (see screenshot).

Attachment 14150

After experimenting around with different versions of jquery I found that the template native googleapis script

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>

is overruled by the jquery of Zen Lightbox

<script type="text/javascript" src="includes/templates/westminster_new/jscript/jquery-1.4.4.min.js"></script>

Versions 1.10.2 and 1.4.4 are having a conflict.

Considering that Zen Lightbox is so popular, would it be possible to match the template native jquery 1.10.2 with the Zen Lightbox 1.4.4 query. IOW, get the code for the collapse menu updated?

Just a thought....

BTW - I am not a javascript guru.

Cheers / Frank

10 Jun 2014, 12:08 PM
#66
frank18 avatar

frank18

Deceased

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

Re: Westminster New

This link may help to prevent future jquery conflicts:

http://api.jquery.com/jQuery.noConflict/

10 Jun 2014, 12:12 PM
#67
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:

Installed Fual Slimbox (Lightbox) on a local dev - just to see how it works with template native javascripts.

The result was completely unsatisfactory - the javascript of Fual Slimbox disabled the tabs on the product details pages, they become non-existent as tabs and all the page info is displayed in one single page instead of in tab details. The slim menu stops functioning altogether until one navigates away from the product details page. The LHS slideout disappers completely etc etc

The reason appears to be the usage of different versions of jquery, one overrides the other. The last loaded jquery dominates. Having two or more different versions of jquery on one site generally is not recommended, it always causes conflicts.

As soon as I disable Fual Slimbox, the site operates as normal.

Upon searching the forum for javascript conflicts relating to Fual Slimbox I came across numerous complaints.

My 5 cents: don't install Fual slimbox with this beautiful template - I uninstalled it.

Then I went on to install Zen Lightbox:

Much better result! Everything works fine BUT for one hiccup: the collapse menu (intended for small mobile screens) appears in the header of a desktop view (see screenshot).

Attachment 14150

After experimenting around with different versions of jquery I found that the template native googleapis script

is overruled by the jquery of Zen Lightbox

Versions 1.10.2 and 1.4.4 are having a conflict.

Considering that Zen Lightbox is so popular, would it be possible to match the template native jquery 1.10.2 with the Zen Lightbox 1.4.4 query. IOW, get the code for the collapse menu updated?

Just a thought....

BTW - I am not a javascript guru.

Cheers / Frank

I do recommend using zen lightbox, I like it better than the slimbox module. Since the template does use jquery, if you add modules that also use jquery you will probably need to work out various conflicts.

I believe that it is better to use the latest stable version of jquery, which at the time of the template dev was the 1.10.2. I would just remove the lower 1.4.4 zen lightbox version which is old, or maybe the module can be updated using a newer version.

http://jquery.com/download

Thanks,

Anne

10 Jun 2014, 1:36 PM
#68
frank18 avatar

frank18

Deceased

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

Re: Westminster New

picaflor-azul:

I do recommend using zen lightbox, I like it better than the slimbox module. Since the template does use jquery, if you add modules that also use jquery you will probably need to work out various conflicts.

I believe that it is better to use the latest stable version of jquery, which at the time of the template dev was the 1.10.2. I would just remove the lower 1.4.4 zen lightbox version which is old, or maybe the module can be updated using a newer version.

http://jquery.com/download

Thanks,

Anne

Just had another play with this and (for the time being) got it all working to satisfaction.

It will need further testing though - so I might direct the developers of Zen Lightbox to this post for consideration.

I downloaded https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js and saved the code as includes/templates/westminster_new/jscript/jquery-1.10.2.min.js

Then changed line 12 in /includes/classes/zen_lightbox/slimbox.php

from this

echo '<script type="text/javascript" src="' . $template->get_template_dir('.js', DIR_WS_TEMPLATE, $current_page_base, 'jscript') . '/jquery-1.4.4.min.js"></script>';

to this

echo '<script type="text/javascript" src="' . $template->get_template_dir('.js', DIR_WS_TEMPLATE, $current_page_base, 'jscript') . '/jquery-1.10.2.min.js"></script>';

There seem to be no further errors after this change - but, as I said previously, it will need more testing.

Hope this helps.

Cheers / Frank

10 Jun 2014, 1:52 PM
#69
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:

Just had another play with this and (for the time being) got it all working to satisfaction.

It will need further testing though - so I might direct the developers of Zen Lightbox to this post for consideration.

I downloaded https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js and saved the code as includes/templates/westminster_new/jscript/jquery-1.10.2.min.js

Then changed line 12 in /includes/classes/zen_lightbox/slimbox.php

from this

echo '<script type="text/javascript" src="' . $template->get_template_dir('.js', DIR_WS_TEMPLATE, $current_page_base, 'jscript') . '/jquery-1.4.4.min.js"></script>';

> 
> to this
> 
> ```php
echo '<script type="text/javascript" src="' . $template->get_template_dir('.js', DIR_WS_TEMPLATE, $current_page_base, 'jscript') . '/jquery-1.10.2.min.js"></script>';

There seem to be no further errors after this change - but, as I said previously, it will need more testing.

Hope this helps.

Cheers / Frank

Since the jquery library version 1.10.2 is already being called in the template, there is no need to call it twice. You should just remove the call to it in the slimbox.php. See includes/templates/westminster_new/jscript/jscript_jquery.min.php

Thanks,

Anne

10 Jun 2014, 1:57 PM
#70
frank18 avatar

frank18

Deceased

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

Re: Westminster New

picaflor-azul:

Since the jquery library version 1.10.2 is already being called in the template, there is no need to call it twice. You should just remove the call to it in the slimbox.php. See includes/templates/westminster_new/jscript/jscript_jquery.min.php

Thanks,

Anne

Just did exactly that :laugh::laugh: - shortly before reading your post! All good :hug:

Thanks Anne!

10 Jun 2014, 1:58 PM
#71
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:

Just did exactly that :laugh::laugh: - shortly before reading your post! All good :hug:

Thanks Anne!

I am happy that everything worked out :smile:

Thanks,

Anne

10 Jun 2014, 5:34 PM
#72
mr_chetanladdha avatar

mr_chetanladdha

New Zenner

Join Date:
Jul 2008
Posts:
84
Plugin Contributions:
0

Re: Westminster New

Hi Yaritai,

Thanks for the reply. Yes, the search box comes up in the mobile. But the top right menu has somehow disappeared and I have nothing to tap and go ahead. Attaching as below. Also, there is blank space on the mobile between the top navigation bar and the slideshow.

Attachment 14153

For the search header, the above was too technical for me. :) Actually i do not need the header logo because i want the slideshow to be prominently displayed even on small laptop screens. The business logo I am going to keep at the logo where in the default template it shows clearance 40% banner.

10 Jun 2014, 8:52 PM
#73
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Westminster New

picaflor-azul:

That's great news ;)

I'll include the fix in an upcoming package update.

Thanks,

Anne

Anne have you updated this package yet on your site. I thought I remember reading somewhere in this form you have submitted a update with all the bug fixes and added a switch for a ez-page that DivaVocals mention. That post had vanish or I am in the wrong place or I and crazy, or both, in the wrong place and crazy.... :)

10 Jun 2014, 11:57 PM
#74
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

countrycharm:

Anne have you updated this package yet on your site. I thought I remember reading somewhere in this form you have submitted a update with all the bug fixes and added a switch for a ez-page that DivaVocals mention. That post had vanish or I am in the wrong place or I and crazy, or both, in the wrong place and crazy.... :)

The latest version of this package is on my site. I need to submit another update to the one here as I made some mistakes in the package ;(

Thanks,

Anne

11 Jun 2014, 12:39 AM
#75
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Westminster New

picaflor-azul:

The latest version of this package is on my site. I need to submit another update to the one here as I made some mistakes in the package ;(

Thanks,

Anne

So the the one on your site all good then? Yes

11 Jun 2014, 1:33 AM
#76
yaritai avatar

yaritai

Zen Follower

Join Date:
Apr 2014
Posts:
154
Plugin Contributions:
0

Re: Westminster New

mr.chetanladdha:

Hi Yaritai,

Thanks for the reply. Yes, the search box comes up in the mobile. But the top right menu has somehow disappeared and I have nothing to tap and go ahead. Attaching as below. Also, there is blank space on the mobile between the top navigation bar and the slideshow.

Attachment 14153

For the search header, the above was too technical for me. :) Actually i do not need the header logo because i want the slideshow to be prominently displayed even on small laptop screens. The business logo I am going to keep at the logo where in the default template it shows clearance 40% banner.

Would you have a link to your site so I can see what is going on. Or if not, is the changes you posted before the only changes done where

  1. you deleted the "top-middle" section
  2. moved the navigation up
  3. added custom links

Other than that was there anything else? Such as changes to css files.

But regarding your logo, I do understand what your end goal is. However, let me say that the specials box will go away on mobile phones. So what you should of instead done was to keep the deleted section and just add "display:none" in your css for the section elements you did not want showing. And for the logo and tagline section you would display:none and then on the mobile css you would bring it out with display:block. This way your logo will be present on ALL devices.

As for the gap on the slideshow that is normal as a stock download. I will check on what changes I did as I think I removed the padding-top on the centerbox. I am not exactly sure what I had done but will check my friends site later tonight and give you an update. Bascially, I remember doing this as I had to move it up on the home page centerbox only.

11 Jun 2014, 7:34 AM
#77
mr_chetanladdha avatar

mr_chetanladdha

New Zenner

Join Date:
Jul 2008
Posts:
84
Plugin Contributions:
0

Re: Westminster New

yaritai:

Would you have a link to your site so I can see what is going on. Or if not, is the changes you posted before the only changes done where

  1. you deleted the "top-middle" section
  2. moved the navigation up
  3. added custom links

Other than that was there anything else? Such as changes to css files.

But regarding your logo, I do understand what your end goal is. However, let me say that the specials box will go away on mobile phones. So what you should of instead done was to keep the deleted section and just add "display:none" in your css for the section elements you did not want showing. And for the logo and tagline section you would display:none and then on the mobile css you would bring it out with display:block. This way your logo will be present on ALL devices.

As for the gap on the slideshow that is normal as a stock download. I will check on what changes I did as I think I removed the padding-top on the centerbox. I am not exactly sure what I had done but will check my friends site later tonight and give you an update. Bascially, I remember doing this as I had to move it up on the home page centerbox only.

Well, apart from those changes, no other changes.
Here is the url : http://spicesonline.info/indian-spices/test

Chetan

11 Jun 2014, 8:41 AM
#78
yaritai avatar

yaritai

Zen Follower

Join Date:
Apr 2014
Posts:
154
Plugin Contributions:
0

Re: Westminster New

mr.chetanladdha:

Well, apart from those changes, no other changes.
Here is the url : http://spicesonline.info/indian-spices/test

Chetan

Now for menu button that is supposed to be in the upper right corner I see where the problem is as the menu is actually being forced above the screen view. This is because you have now moved the slimmenu up and taking away the top-wrapper section. So to fix this, it will be a multiple part process as you will have to change each instance the menu should appear correctly in each screen size view. To get you started, this is what you want to look for:

In your responsive_default.css file, you will see it broken into multiple sections of media queries for different screen size layout. In this example, look for the start of this section: "@media (max-width:767px){" and then below it in that section look for:

#menu {margin-top:-130px;width:98%;}

change to:

#menu {margin-top:-5px;width:98%;}

This will fix the layout for this size view only. Just go through all the changes in each css file, there are 3 of them which needs to be done for mobile, tablet and default desktop view. Just look for the "#menu" element and change the margin-top value.

Another thing is that you do have another change in that you have 2 flexsliders present on tablet view. You seemed to clone the code in the main page file and pasted it in the header file. Go back and delete the one in the header file as it is causing alignment issues.

11 Jun 2014, 9:42 AM
#79
yaritai avatar

yaritai

Zen Follower

Join Date:
Apr 2014
Posts:
154
Plugin Contributions:
0

Re: Westminster New

And one last thing I will comment on. The handheld mobile section your moved up is actually suppose to be contained in a max-width which is set stock at 1230px. But since you did remove a whole bunch of code that was not really apart of the logo section, you now have a menu that is full screen. So those with wide monitors will actually be hindered at your coding as the menu would be extremely small and spread out. To fix that, put back the first part snippets of the class one-row fluid. It is this part:

<div class="onerow-fluid <?php echo $fluidisFixed; ?>">
   
     // menu and others things you want here

</div>
11 Jun 2014, 12:23 PM
#80
frank18 avatar

frank18

Deceased

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

Re: Westminster New

When accessing a demo site with my mobile I found that the 'Log In' and 'Log Out' links are somewhat hidden withing the menu. I found them eventually...

To make it a bit easier for customers I modified the file

includes/templates/westminster_new/templates/tpl_modules_mobile_categories_tabs.php

Around line 91 we find

<li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>" class="mcontact"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>

Right after that line I added

  <?php if ($_SESSION['customer_id']) { // bof log in / log out addition to mobile menu - added by frank18 ?>
  <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
   <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
   <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL'); ?>"><?php echo TITLE_NEWSLETTERS; ?></a></li>
    <?php } else { ?>
  <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
   <li><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a></li>
   <?php } // eof log in / log out addition to mobile menu - added by frank18 ?>

The next line is the closing </ul> tag.

The original lines 47 to 54 of this file could be deleted so we avoid duplication of the links ....

Just a thought for consideration to make it easier for customers.

Demo/development site here: isonetwork [DOT] net [DOT] au [SLASH] velagiftz [SLASH]

Cheers / Frank