Zen Cart Logo
Forums / Addon Templates / Westminster New

Westminster New

Views: 494,247

Results 961 to 980 of 1,865
10 May 2015, 6:16 AM
#961
missesbeehaven avatar

missesbeehaven

New Zenner

Join Date:
Apr 2009
Posts:
57
Plugin Contributions:
0

Westminster New

THanks you are correct and I too have made the same edits that you have made :-) in your post here
https://www.zen-cart.com/showthread.php?213334-Westminster-New&p=1268331#post1268331

RixStix:

If you look back in early January 2015, around POST 408 of this support thread, you will find several other similar edits that need to be made.

missesbeehaven:

Hi Anne,
After some digging and research on the forum I have found the fix to the problem with the product info display and it is a small code bug in the Westminster New template files that i fixed. I wanted to post the solution here so others can use the fix and that you could update your code for any future releases :-)

There are two files with a variable that is an empty string, the two files are:

includes/templates/westminster_new/templates/tpl_product_info_display.php
templates/westminster_new/common/html_header.php

Open includes/templates/westminster_new/templates/tpl_product_info_display.php and FIND:

<script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/easyResponsiveTabs.js' ?>" type="text/javascript"></script>
> 
> Replace with: 
> ```
<script src="<?php echo $template->get_template_dir('easyResponsiveTabs.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/easyResponsiveTabs.js' ?>" type="text/javascript"></script>

Next OPEN templates/westminster_new/common/html_header.php and FIND:

<script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/css_browser_selector.js' ?>" type="text/javascript"></script>
> 
> Replace with:
> ```
<script src="<?php echo $template->get_template_dir('css_browser_selector.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/css_browser_selector.js' ?>" type="text/javascript"></script>

I used the admin's Tools->Developers Tool Kit and search for $template->get_template_dir and checked for any variable that is an empty string.

10 May 2015, 1:14 PM
#962
missesbeehaven avatar

missesbeehaven

New Zenner

Join Date:
Apr 2009
Posts:
57
Plugin Contributions:
0

Re: Westminster New

Hi Anne,

Would you please be so kind to shed some light on a troublesome CSS issue I am having with my site. I am so close to having the site the way I envisioned but for this pesky problem with the display of the Heading for "New Products For May" etc on the home page.

The title appears to half show / load in firefox however in google Chrome I can see the headings in full with no trouble
http://www.beehavendesignz.com/shop/

I am leading to it being a CSS problem but 6 hours later I am still reading CSS and searching the web for answers but am hitting a wall :-( would you have a suggestion I could try to fix this issue?

Any suggestions are greatly appreciated :-)

Thank you.

10 May 2015, 11:30 PM
#963
missesbeehaven avatar

missesbeehaven

New Zenner

Join Date:
Apr 2009
Posts:
57
Plugin Contributions:
0

Re: Westminster New

Finally got this line height figured out.. :Dit was having the right use of line-height and font-size combinations :yes:

missesbeehaven:

Hi Anne,

Would you please be so kind to shed some light on a troublesome CSS issue I am having with my site. I am so close to having the site the way I envisioned but for this pesky problem with the display of the Heading for "New Products For May" etc on the home page.

The title appears to half show / load in firefox however in google Chrome I can see the headings in full with no trouble
http://www.beehavendesignz.com/shop/

I am leading to it being a CSS problem but 6 hours later I am still reading CSS and searching the web for answers but am hitting a wall :-( would you have a suggestion I could try to fix this issue?

Any suggestions are greatly appreciated :-)

Thank you.

11 May 2015, 5:36 PM
#964
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

missesbeehaven:

Finally got this line height figured out.. :Dit was having the right use of line-height and font-size combinations :yes:

I am happy that you figured it out ;)

Thanks,

Anne

14 May 2015, 9:34 AM
#965
sapir39 avatar

sapir39

New Zenner

Join Date:
Apr 2015
Location:
Israel
Posts:
23
Plugin Contributions:
0

Re: Westminster New

Hi, I have recently installed this template on my website and am very satisfied in the over all. I just have two questions:

  1. I want to add a third tab at the top of the page for manufacturers, can I do this through the admin? If not which file do I have to alter?
  2. I want to have a Specifications tab in some of my products. In my old site I used a plugin and all I had to do was write in the script while writing the product description: <!--%Specifications%--> and that would add the tab, since you have tabbed products in the template I didn't want to touch it. Is there a way to add a tab to a product other than your predefined tabs?

Thanks.

14 May 2015, 3:18 PM
#966
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

sapir39:

Hi, I have recently installed this template on my website and am very satisfied in the over all. I just have two questions:

  1. I want to add a third tab at the top of the page for manufacturers, can I do this through the admin? If not which file do I have to alter?
  2. I want to have a Specifications tab in some of my products. In my old site I used a plugin and all I had to do was write in the script while writing the product description: <!--%Specifications%--> and that would add the tab, since you have tabbed products in the template I didn't want to touch it. Is there a way to add a tab to a product other than your predefined tabs?

Thanks.

  1. You can edit the includes/templates/westminser_new/templates/tpl_modules_mobile_categories_tabs.php file

  2. You can add another tab by editing the includes/templates/westminser_new/templates/tpl_product_info_display.php file. If the info is the same for each product you can create a banner and add your info to the banner. If you want different info for each product you will need to create a custom product field and add it to a new tab.

Thanks,

Anne

16 May 2015, 6:56 AM
#967
frank18 avatar

frank18

Deceased

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

Re: Westminster New

Hi Anne,

may I request the addition of the following code(s) to your upcoming v1.4 of this great template.

  1. includes/templates/westminster_new/common/tpl_header.php

change

<?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><i class="fa fa-power-off"></i><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><i class="fa fa-gear"></i><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>

to this

<?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo ($_SESSION['customer_first_name'].' '.$_SESSION['customer_last_name']);?></a> | </li>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><i class="fa fa-power-off"></i><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><i class="fa fa-gear"></i><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>

This adds the customer name to the header when logged in.

  1. includes/templates/westminster_new/templates/tpl_modules_mobile_categories_tabs.php
<ul class="slimmenu">
    <li class="test"><a href="<?php HTTP_SERVER . DIR_WS_CATALOG;?>" class="mshop"><?php echo HEADER_TITLE_CATEGORIES; ?></a>

to this

<ul class="slimmenu">
    <?php if (!$this_is_home_page) { ?>
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a>
    <?php } ?>
    <li class="test"><a href="<?php HTTP_SERVER . DIR_WS_CATALOG;?>" class="mshop"><?php echo HEADER_TITLE_CATEGORIES; ?></a>

Adds the 'Home' link to the memnu bar if NOT on Home page.

Thanks

Cheers / Frank

17 May 2015, 8:51 AM
#968
sapir39 avatar

sapir39

New Zenner

Join Date:
Apr 2015
Location:
Israel
Posts:
23
Plugin Contributions:
0

Re: Westminster New

picaflor-azul:

  1. You can edit the includes/templates/westminser_new/templates/tpl_modules_mobile_categories_tabs.php file

  2. You can add another tab by editing the includes/templates/westminser_new/templates/tpl_product_info_display.php file. If the info is the same for each product you can create a banner and add your info to the banner. If you want different info for each product you will need to create a custom product field and add it to a new tab.

Thanks,

Anne

Hi Anne,
Thanks for your reply.
I know I have to edit the tpl_modules_mobile_categories_tabs.php file in order to add the manufacturers tab however I don't know much in php and couldn't figure out what I should add in order for this tab to be created and take the manufacturers information from my db. As for the tab in the products page - I will look into it.
Thanks again.

17 May 2015, 5:27 PM
#969
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:

Hi Anne,

may I request the addition of the following code(s) to your upcoming v1.4 of this great template.

  1. includes/templates/westminster_new/common/tpl_header.php

change

<?php if ($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><i class="fa fa-power-off"></i><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><i class="fa fa-gear"></i><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
> 
> to this
> 
> ```php
<?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo ($_SESSION['customer_first_name'].' '.$_SESSION['customer_last_name']);?></a> | </li>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><i class="fa fa-power-off"></i><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><i class="fa fa-gear"></i><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>

This adds the customer name to the header when logged in.

  1. includes/templates/westminster_new/templates/tpl_modules_mobile_categories_tabs.php
<ul class="slimmenu"> <li class="test"><a href="<?php HTTP_SERVER . DIR_WS_CATALOG;?>" class="mshop"><?php echo HEADER_TITLE_CATEGORIES; ?></a> ``` > > to this > > ```php <ul class="slimmenu"> <?php if (!$this_is_home_page) { ?> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a> <?php } ?> <li class="test"><a href="<?php HTTP_SERVER . DIR_WS_CATALOG;?>" class="mshop"><?php echo HEADER_TITLE_CATEGORIES; ?></a> ``` > > Adds the 'Home' link to the memnu bar if **NOT** on Home page. > > Thanks > > Cheers / Frank

Thank you so much for the code suggestions. I will make a note of these for a future template update ;) Please always let me know if you find any mistakes in the template code, even small ones, or have other code suggestions.

Thanks,

Anne

17 May 2015, 5:28 PM
#970
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

sapir39:

Hi Anne,
Thanks for your reply.
I know I have to edit the tpl_modules_mobile_categories_tabs.php file in order to add the manufacturers tab however I don't know much in php and couldn't figure out what I should add in order for this tab to be created and take the manufacturers information from my db. As for the tab in the products page - I will look into it.
Thanks again.

My advice would be to take a look at another template package that has the manufacturers drop down already and copy the code to this template package ;)

Thanks,

Anne

18 May 2015, 8:59 AM
#971
sapir39 avatar

sapir39

New Zenner

Join Date:
Apr 2015
Location:
Israel
Posts:
23
Plugin Contributions:
0

Re: Westminster New

picaflor-azul:

My advice would be to take a look at another template package that has the manufacturers drop down already and copy the code to this template package ;)

Thanks,

Anne

Thanks Anne,
Sorry for the bother, I have one last question. Does any of you templates include this tab by any chance?

Thanks again,
Sapir

18 May 2015, 10:14 AM
#972
sapir39 avatar

sapir39

New Zenner

Join Date:
Apr 2015
Location:
Israel
Posts:
23
Plugin Contributions:
0

Re: Westminster New

sapir39:

Thanks Anne,
Sorry for the bother, I have one last question. Does any of you templates include this tab by any chance?

Thanks again,
Sapir

Hi,
I copied from the tab from your sheffield blue template and it's working perfectly.

Thank you so much.

18 May 2015, 10:18 AM
#973
frank18 avatar

frank18

Deceased

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

Re: Westminster New

In the file includes/templates/westminster_new/templates/tpl_contact_us_default.php I am finding this code twice, once on line 20 and then again on line 52 (latest download of this template as of today):

<?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
<address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
<?php } ?>

I have recently installed this template on 5 of my client's sites. On every single site the store address shows up twice on the 'Contact Us' page - even 3 times if the define page contains the store address and other wording.

I did get around this (what I would call a bug) by editing that file and removing the chunk starting at line 20, then changing the chunk starting at line 52 to read

<?php if (DEFINE_CONTACT_US_STATUS == '0') { ?>
<address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
<?php } ?>

Cheers / Frank

18 May 2015, 10:43 AM
#974
frank18 avatar

frank18

Deceased

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

Re: Westminster New

Just noticed post #568 - that bug was reported earlier but it still leaves the possibility of 2 contact address blocks if the define page is not blank. So, changing line 52 onwards should be incorporated into the next update as well.

Cheers

18 May 2015, 2:15 PM
#975
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

sapir39:

Hi,
I copied from the tab from your sheffield blue template and it's working perfectly.

Thank you so much.

I am happy that you figured it out ;)

Thanks,

Anne

18 May 2015, 2:22 PM
#976
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:

In the file includes/templates/westminster_new/templates/tpl_contact_us_default.php I am finding this code twice, once on line 20 and then again on line 52 (latest download of this template as of today):

<?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?> <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address> <?php } ?> ``` > > I have recently installed this template on 5 of my client's sites. On every single site the store address shows up twice on the 'Contact Us' page - even 3 times if the define page contains the store address and other wording. > > I did get around this (what I would call a bug) by editing that file and removing the chunk starting at line 20, then changing the chunk starting at line 52 to read > > > ```php <?php if (DEFINE_CONTACT_US_STATUS == '0') { ?> <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address> <?php } ?> ``` > > > Cheers / Frank

Thanks for posting. This is a known bug and I have it on the list for the next template package update ;)

Thanks,

Anne

20 May 2015, 12:53 PM
#977
sapir39 avatar

sapir39

New Zenner

Join Date:
Apr 2015
Location:
Israel
Posts:
23
Plugin Contributions:
0

Re: Westminster New

Hi Anne,
I would like to add a link to google+ in my footer along with the rest of the social networks but I couldn't find where you placed the icons so that I can add an icon that'll look like the rest.

I know that the background of the icons is in the css however I don't know where the letters are coming from (fa-fa-'sn_name').

Thanks,
Sapir

20 May 2015, 1:49 PM
#978
picaflor_azul avatar

picaflor_azul

Totally Zenned

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

Re: Westminster New

sapir39:

Hi Anne,
I would like to add a link to google+ in my footer along with the rest of the social networks but I couldn't find where you placed the icons so that I can add an icon that'll look like the rest.

I know that the background of the icons is in the css however I don't know where the letters are coming from (fa-fa-'sn_name').

Thanks,
Sapir

The icons are using font awesome. Just do a google search for the site with complete usage instructions ;)

Thanks,

Anne

21 May 2015, 7:08 AM
#979
sapir39 avatar

sapir39

New Zenner

Join Date:
Apr 2015
Location:
Israel
Posts:
23
Plugin Contributions:
0

Re: Westminster New

picaflor-azul:

The icons are using font awesome. Just do a google search for the site with complete usage instructions ;)

Thanks,

Anne

Ok, thanks

25 May 2015, 9:46 PM
#980
gamenano avatar

gamenano

Zen Follower

Join Date:
Apr 2009
Location:
London
Posts:
127
Plugin Contributions:
0

Re: Westminster New

Hi Anne,

Firstly thank you for this awesome template. I have just installed it and playing with all the features today, and I was wondering if the text and the semi-transparent ribbon on the flex banner can be completely removed? or if easier, can I just set the text and the ribbon to transparent so I can't see them? Thank you!