Zen Cart Logo
Forums / Addon Templates / Westminster New

Westminster New

Views: 494,137

Results 1,761 to 1,780 of 1,865
26 Jul 2020, 9:55 AM
#1761
elemi avatar

elemi

Zen Follower

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

Westminster New

Thank you very much for your comments, and even more so re the change in </br> :-)
That will save me some typing time!

I'm trying to get the right fonts in for my tagline "The Art of Bespoke Aromatherapy" however that can wait until I've worked out how the fonts work in this version.

26 Jul 2020, 10:22 AM
#1762
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Westminster New

Just keep in mind that no matter how pretty a font you pick, it might be substituted by the browser. Make sure the font is going to show up on the other end.

27 Aug 2020, 2:16 AM
#1763
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Westminster New

I'm sure it's been asked, but given the number of posts, searching for the answer is a daunting task. So, here's hoping for a response.

When I hover over a product name, which is in dark grey, it vanishes, or, blends in with the white background. How can I change this so when you hover over a product name, you can still see it, just maybe a different color? Does that make any sense?

I'm using zen-cart-v1.5.7-06232020
Wesninster-New 2.0

You can see what I mean here: https://www.flowertownengravable.gifts/index.php?main_page=index&cPath=1_36

Thanks.

27 Aug 2020, 4:29 AM
#1764
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Westminster New

You'll need to look at your stylesheets for an a:hover that is white, #FFF, or #FFFFFF.

Probably, line 496 of stylesheet.css. Change the color to something that works and meets contrast requirements.

27 Aug 2020, 8:14 PM
#1765
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Westminster New

dbltoe:

You'll need to look at your stylesheets for an a:hover that is white, #FFF, or #FFFFFF.

Probably, line 496 of stylesheet.css. Change the color to something that works and meets contrast requirements.

Thank you! That worked perfectly. You were spot on.

27 Aug 2020, 8:43 PM
#1766
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Westminster New

Glad that worked.

You have a nested code error in your template's What's New sidebox. It's adding a div inside an <a> tag.

Page and accessibility errors - https://wave.webaim.org/report#/https%3A%2F%2Fwww.flowertownengravable.gifts%2Findex.php%3Fmain_page%3Dindex%26cPath%3D1_36

Might want to get a favicon from https://favicomatic.com/ Recommend the "Every #$@# size, sir!" Then add the list to includes/templates/YOUR_TEMPLATE/common/html_header.php. Should wind up looking like this around line 60```

<?php if (defined('FAVICON')) { ?><link rel="apple-touch-icon-precomposed" sizes="57x57" href="apple-touch-icon-57x57.png" /> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114.png" /> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72.png" /> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144x144.png" /> <link rel="apple-touch-icon-precomposed" sizes="60x60" href="apple-touch-icon-60x60.png" /> <link rel="apple-touch-icon-precomposed" sizes="120x120" href="apple-touch-icon-120x120.png" /> <link rel="apple-touch-icon-precomposed" sizes="76x76" href="apple-touch-icon-76x76.png" /> <link rel="apple-touch-icon-precomposed" sizes="152x152" href="apple-touch-icon-152x152.png" /> <link rel="icon" type="image/png" href="favicon-196x196.png" sizes="196x196" /> <link rel="icon" type="image/png" href="favicon-96x96.png" sizes="96x96" /> <link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" /> <link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" /> <link rel="icon" type="image/png" href="favicon-128.png" sizes="128x128" /> <meta name="application-name" content=" "/> <meta name="msapplication-TileColor" content="#FFFFFF" /> <meta name="msapplication-TileImage" content="mstile-144x144.png" /> <meta name="msapplication-square70x70logo" content="mstile-70x70.png" /> <meta name="msapplication-square150x150logo" content="mstile-150x150.png" /> <meta name="msapplication-wide310x150logo" content="mstile-310x150.png" /> <meta name="msapplication-square310x310logo" content="mstile-310x310.png" /> <?php } //endif FAVICON ?> ```

Lastly, you might want to rethink the size of your logo. Most folks want to see product when going to a site (or at least a link to it) but, the size of your image puts all that below the fold.

27 Aug 2020, 9:53 PM
#1767
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Westminster New

Thank you again. This is all very helpful and I'm taking it to heart. Where do I upload all of the favicon images?

dbltoe:

Glad that worked.

You have a nested code error in your template's What's New sidebox. It's adding a div inside an <a> tag.

Page and accessibility errors - https://wave.webaim.org/report#/https%3A%2F%2Fwww.flowertownengravable.gifts%2Findex.php%3Fmain_page%3Dindex%26cPath%3D1_36

Might want to get a favicon from https://favicomatic.com/ Recommend the "Every #$@# size, sir!" Then add the list to includes/templates/YOUR_TEMPLATE/common/html_header.php. Should wind up looking like this around line 60```

<?php if (defined('FAVICON')) { ?><link rel="apple-touch-icon-precomposed" sizes="57x57" href="apple-touch-icon-57x57.png" /> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114.png" /> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72.png" /> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144x144.png" /> <link rel="apple-touch-icon-precomposed" sizes="60x60" href="apple-touch-icon-60x60.png" /> <link rel="apple-touch-icon-precomposed" sizes="120x120" href="apple-touch-icon-120x120.png" /> <link rel="apple-touch-icon-precomposed" sizes="76x76" href="apple-touch-icon-76x76.png" /> <link rel="apple-touch-icon-precomposed" sizes="152x152" href="apple-touch-icon-152x152.png" /> <link rel="icon" type="image/png" href="favicon-196x196.png" sizes="196x196" /> <link rel="icon" type="image/png" href="favicon-96x96.png" sizes="96x96" /> <link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" /> <link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" /> <link rel="icon" type="image/png" href="favicon-128.png" sizes="128x128" /> <meta name="application-name" content=" "/> <meta name="msapplication-TileColor" content="#FFFFFF" /> <meta name="msapplication-TileImage" content="mstile-144x144.png" /> <meta name="msapplication-square70x70logo" content="mstile-70x70.png" /> <meta name="msapplication-square150x150logo" content="mstile-150x150.png" /> <meta name="msapplication-wide310x150logo" content="mstile-310x150.png" /> <meta name="msapplication-square310x310logo" content="mstile-310x310.png" /> <?php } //endif FAVICON ?> ``` > > Lastly, you might want to rethink the size of your logo. Most folks want to see product when going to a site (or at least a link to it) but, the size of your image puts all that below the fold.
27 Aug 2020, 9:59 PM
#1768
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Westminster New

In the root.

27 Aug 2020, 9:59 PM
#1769
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Westminster New

Also, I'm sure where or how to fix the nested error you mentioned in my What's New Sidebox.

Thanks,
Tom

27 Aug 2020, 10:00 PM
#1770
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Westminster New

Yep, got it. Thanks. Now, how do I fix that nested code error?

27 Aug 2020, 10:39 PM
#1771
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Westminster New

Using the developer's tool kit, you'll need to find the code that creates the ```
<div class="leftBoxContainer tabletHide mobileHide" id="whatsnew">


There's an h3 after that, then the divs start```
<div class="leftBoxContainer tabletHide mobileHide" id="whatsnew"><h3 class="leftBoxHeading" id="whatsnewHeading">
<a href="https://www.flowertownengravable.gifts/index.php?main_page=products_new">What's New  [more]</a>
</h3>
<div class="sideBoxContent centeredContent">
  <div class="sideBoxContentItem">
    <a href="https://www.flowertownengravable.gifts/index.php?main_page=product_info&cPath=1_36_41&products_id=364">
      <img src="images/LTM944.jpg" alt="Royal Blue 14 oz. Polar Camel Pilsner Tumbler with Clear Lid" title="Royal Blue 14 oz. Polar Camel Pilsner Tumbler with Clear Lid" width="200" height="200" />
        <div class="box-title">Royal Blue 14 oz. Polar Camel Pilsner Tumbler with Clear Lid</a>
        </div>
        <div class="box-price"><span class="productBasePrice">$26.00</span></div>
        </div>
  <div class="sideBoxContentItem"><a href="https://www.flowertownengravable.gifts/index.php?main_page=product_info&cPath=1_36_41&products_id=363"><img src="images/LTM943.jpg" alt="Red 14 oz. Polar Camel Pilsner Tumbler with Clear Lid" title="Red 14 oz. Polar Camel Pilsner Tumbler with Clear Lid" width="200" height="200" /><div class="box-title">Red 14 oz. Polar Camel Pilsner Tumbler with Clear Lid</a></div><div class="box-price"><span class="productBasePrice">$26.00</span></div></div>
  <div class="sideBoxContentItem"><a href="https://www.flowertownengravable.gifts/index.php?main_page=product_info&cPath=1_36_41&products_id=365"><img src="images/LTM945.jpg" alt="Pink 14 oz. Polar Camel Pilsner Tumbler with Clear Lid" title="Pink 14 oz. Polar Camel Pilsner Tumbler with Clear Lid" width="200" height="200" /><div class="box-title">Pink 14 oz. Polar Camel Pilsner Tumbler with Clear Lid</a></div><div class="box-price"><span class="productBasePrice">$26.00</span></div></div></div>
</div>
```Apparently, someone wanted to be able to control the title of each item and didn't want to use ```
.sideBoxContentItem a{font
``` and used line 297/298 of the stylesheet.css to control the title```
.box-title a{color:#171717;}
.box-title{margin:0 auto 10px auto;width:90%;}
```It will work like they wanted if you move the ```
<div class="box-title">
```to match```
<div class="leftBoxContainer tabletHide mobileHide" id="whatsnew"><h3 class="leftBoxHeading" id="whatsnewHeading">
<a href="https://www.flowertownengravable.gifts/index.php?main_page=products_new">What's New  [more]</a>
</h3>
<div class="sideBoxContent centeredContent">
  <div class="sideBoxContentItem">
    <div class="box-title">
       <a href="https://www.flowertownengravable.gifts/index.php?main_page=product_info&cPath=1_36_41&products_id=364">
         <img src="images/LTM944.jpg" alt="Royal Blue 14 oz. Polar Camel Pilsner Tumbler with Clear Lid" title="Royal Blue 14 oz. Polar Camel Pilsner Tumbler with Clear Lid" width="200" height="200" />Royal Blue 14 oz. Polar Camel Pilsner Tumbler with Clear Lid</a>
    </div>
        <div class="box-price"><span class="productBasePrice">$26.00</span></div>
        </div>
  <div class="sideBoxContentItem"><a href="https://www.flowertownengravable.gifts/index.php?main_page=product_info&cPath=1_36_41&products_id=363"><img src="images/LTM943.jpg" alt="Red 14 oz. Polar Camel Pilsner Tumbler with Clear Lid" title="Red 14 oz. Polar Camel Pilsner Tumbler with Clear Lid" width="200" height="200" /><div class="box-title">Red 14 oz. Polar Camel Pilsner Tumbler with Clear Lid</a></div><div class="box-price"><span class="productBasePrice">$26.00</span></div></div>
  <div class="sideBoxContentItem"><a href="https://www.flowertownengravable.gifts/index.php?main_page=product_info&cPath=1_36_41&products_id=365"><img src="images/LTM945.jpg" alt="Pink 14 oz. Polar Camel Pilsner Tumbler with Clear Lid" title="Pink 14 oz. Polar Camel Pilsner Tumbler with Clear Lid" width="200" height="200" /><div class="box-title">Pink 14 oz. Polar Camel Pilsner Tumbler with Clear Lid</a></div><div class="box-price"><span class="productBasePrice">$26.00</span></div></div></div>
</div>
```That will need to be done in the php page that creates the sidebox.
28 Aug 2020, 1:07 AM
#1772
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Westminster New

I'm loving the help, but I'm afraid you've gone over my pay grade now. I'm not exactly sure what you're suggesting, nor am I sure what to enter in the dtk to find the code that creates <div class="leftBoxContainer tabletHide mobileHide" id="whatsnew">. Just searching for that brings up nothing.

Tom

28 Aug 2020, 1:31 AM
#1773
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Westminster New

Go to the bottom of the DTK and enter like the photo
[Attachment no longer available]
That should find the filename for the offending area.

You can then open the file in something like notepad++ and edit as needed.

28 Aug 2020, 1:47 AM
#1774
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Westminster New

Are you saying that what I'm looking for is and errant </a> ?

28 Aug 2020, 1:53 AM
#1775
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Westminster New

These are the three files I found using your search suggestion:
tpl_whats_new.php

<?php
/**
 * Side Box Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2011 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: tpl_whats_new.php 18698 2011-05-04 14:50:06Z wilt $
 * Modified by Picaflor Azul (Picaflor-Azul.com) Westminster New v2.0
 */
  $content = "";
  $content .= '<div class="sideBoxContent centeredContent">';
  $whats_new_box_counter = 0;
  while (!$random_whats_new_sidebox_product->EOF) {
    $whats_new_box_counter++;
    $whats_new_price = zen_get_products_display_price($random_whats_new_sidebox_product->fields['products_id']);
    $content .= "\n" . '  <div class="sideBoxContentItem">';
    $content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($random_whats_new_sidebox_product->fields['master_categories_id']) . '&products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
    $content .= '<div class="box-title">' . $random_whats_new_sidebox_product->fields['products_name'] . '</a></div>';
    $content .= '<div class="box-price">' . $whats_new_price . '</div>';
    $content .= '</div>';
    $random_whats_new_sidebox_product->MoveNextRandom();
  }
  $content .= '</div>' . "\n";

tpl_featured.php

<?php
/**
 * Side Box Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2011 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: tpl_featured.php 18698 2011-05-04 14:50:06Z wilt $
 * Modified by Picaflor Azul (Picaflor-Azul.com) Westminster New v2.0
 */
  $content = "";
  $content .= '<div class="sideBoxContent centeredContent">';
  $featured_box_counter = 0;
  while (!$random_featured_product->EOF) {
    $featured_box_counter++;
    $featured_box_price = zen_get_products_display_price($random_featured_product->fields['products_id']);
    $content .= "\n" . '  <div class="sideBoxContentItem">';
    $content .=  '<div class="box-title"><a href="' . zen_href_link(zen_get_info_page($random_featured_product->fields["products_id"]), 'cPath=' . zen_get_generated_category_path_rev($random_featured_product->fields["master_categories_id"]) . '&products_id=' . $random_featured_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_featured_product->fields['products_image'], $random_featured_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
    $content .= '<br />' . $random_featured_product->fields['products_name'] . '</a></div>';
    $content .= '<div class="box-price">' . $featured_box_price . '</div>';
    $content .= '</div>';
    $random_featured_product->MoveNextRandom();
  }
  $content .= '</div>' . "\n";

tpl_specials.php

<?php
/**
 * Side Box Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2011 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: tpl_specials.php 18698 2011-05-04 14:50:06Z wilt $
 * Modified by Picaflor Azul (Picaflor-Azul.com) Westminster New v2.0
 */
  $content = "";
  $content .= '<div class="sideBoxContent centeredContent">';
  $specials_box_counter = 0;
  while (!$random_specials_sidebox_product->EOF) {
    $specials_box_counter++;
    $specials_box_price = zen_get_products_display_price($random_specials_sidebox_product->fields['products_id']);
    $content .= "\n" . '  <div class="sideBoxContentItem">';
    $content .= '<div class="box-title"><a href="' . zen_href_link(zen_get_info_page($random_specials_sidebox_product->fields["products_id"]), 'cPath=' . zen_get_generated_category_path_rev($random_specials_sidebox_product->fields["master_categories_id"]) . '&products_id=' . $random_specials_sidebox_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_specials_sidebox_product->fields['products_image'], $random_specials_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
    $content .= '<br />' . $random_specials_sidebox_product->fields['products_name'] . '</a></div>';
    $content .= '<div class="box-price">' . $specials_box_price . '</div>';
    $content .= '</div>';
    $random_specials_sidebox_product->MoveNextRandom();
  }
  $content .= '</div>' . "\n";
28 Aug 2020, 2:28 AM
#1776
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Westminster New

The what's new```

<?php/** * Side Box Template * * @package templateSystem * @copyright Copyright 2003-2011 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: tpl_whats_new.php 18698 2011-05-04 14:50:06Z wilt $ * Modified by Picaflor Azul (Picaflor-Azul.com) Westminster New v2.0 */ $content = ""; $content .= '<div class="sideBoxContent centeredContent">'; $whats_new_box_counter = 0; while (!$random_whats_new_sidebox_product->EOF) { $whats_new_box_counter++; $whats_new_price = zen_get_products_display_price($random_whats_new_sidebox_product->fields['products_id']); $content .= "\n" . ' <div class="sideBoxContentItem">'; $content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($random_whats_new_sidebox_product->fields['master_categories_id']) . '&products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); $content .= '<div class="box-title">' . $random_whats_new_sidebox_product->fields['products_name'] . '</a></div>'; $content .= '<div class="box-price">' . $whats_new_price . '</div>'; $content .= '</div>'; $random_whats_new_sidebox_product->MoveNextRandom(); } $content .= '</div>' . "\n"; ```Should be ``` <?php/** * Side Box Template * * @package templateSystem * @copyright Copyright 2003-2011 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: tpl_whats_new.php 18698 2011-05-04 14:50:06Z wilt $ * Modified by Picaflor Azul (Picaflor-Azul.com) Westminster New v2.0 */ $content = ""; $content .= '<div class="sideBoxContent centeredContent">'; $whats_new_box_counter = 0; while (!$random_whats_new_sidebox_product->EOF) { $whats_new_box_counter++; $whats_new_price = zen_get_products_display_price($random_whats_new_sidebox_product->fields['products_id']); $content .= "\n" . ' <div class="sideBoxContentItem">'; $content .= '<div class="box-title">'; $content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($random_whats_new_sidebox_product->fields['master_categories_id']) . '&products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . $random_whats_new_sidebox_product->fields['products_name'] . '</a></div>'; $content .= '<div class="box-price">' . $whats_new_price . '</div>'; $content .= '</div>'; $random_whats_new_sidebox_product->MoveNextRandom(); } $content .= '</div>' . "\n"; ``` Notice that the ``` $content.= '<div class="box-title">' ``` for the box-title is moved before the <a href and a semicolon is added at the end of the line. Then, place your cursor at the end of ``` , SMALL_IMAGE_HEIGHT) ```and press delete until you have ``` , SMALL_IMAGE_HEIGHT) . $random_whats_new_ ```In other words move the product name up to the image info. They should wind up as shown with a ( . ) space, period, space between them. That's important.
28 Aug 2020, 2:39 PM
#1777
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Westminster New

I made the changes you suggested, in fact, copied and pasted. When I uploaded, it broke the entire site. When I uploaded the original, the site worked fine.

dbltoe:

The what's new```

<?php/** * Side Box Template * * @package templateSystem * @copyright Copyright 2003-2011 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: tpl_whats_new.php 18698 2011-05-04 14:50:06Z wilt $ * Modified by Picaflor Azul (Picaflor-Azul.com) Westminster New v2.0 */ $content = ""; $content .= '<div class="sideBoxContent centeredContent">'; $whats_new_box_counter = 0; while (!$random_whats_new_sidebox_product->EOF) { $whats_new_box_counter++; $whats_new_price = zen_get_products_display_price($random_whats_new_sidebox_product->fields['products_id']); $content .= "\n" . ' <div class="sideBoxContentItem">'; $content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($random_whats_new_sidebox_product->fields['master_categories_id']) . '&products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); $content .= '<div class="box-title">' . $random_whats_new_sidebox_product->fields['products_name'] . '</a></div>'; $content .= '<div class="box-price">' . $whats_new_price . '</div>'; $content .= '</div>'; $random_whats_new_sidebox_product->MoveNextRandom(); } $content .= '</div>' . "\n"; ```Should be ``` <?php/** * Side Box Template * * @package templateSystem * @copyright Copyright 2003-2011 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: tpl_whats_new.php 18698 2011-05-04 14:50:06Z wilt $ * Modified by Picaflor Azul (Picaflor-Azul.com) Westminster New v2.0 */ $content = ""; $content .= '<div class="sideBoxContent centeredContent">'; $whats_new_box_counter = 0; while (!$random_whats_new_sidebox_product->EOF) { $whats_new_box_counter++; $whats_new_price = zen_get_products_display_price($random_whats_new_sidebox_product->fields['products_id']); $content .= "\n" . ' <div class="sideBoxContentItem">'; $content .= '<div class="box-title">'; $content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($random_whats_new_sidebox_product->fields['master_categories_id']) . '&products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . $random_whats_new_sidebox_product->fields['products_name'] . '</a></div>'; $content .= '<div class="box-price">' . $whats_new_price . '</div>'; $content .= '</div>'; $random_whats_new_sidebox_product->MoveNextRandom(); } $content .= '</div>' . "\n"; ``` > > Notice that the ``` $content.= '<div class="box-title">' ``` for the box-title is moved before the <a href and a semicolon is added at the end of the line. > > Then, place your cursor at the end of ``` , SMALL_IMAGE_HEIGHT) ```and press delete until you have ``` , SMALL_IMAGE_HEIGHT) . $random_whats_new_ ```In other words move the product name up to the image info. They should wind up as shown with a ( . ) space, period, space between them. That's important.
28 Aug 2020, 5:59 PM
#1778
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Westminster New

Did you get any log file when the site crashed?

28 Aug 2020, 6:09 PM
#1779
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Westminster New

dbltoe:

Did you get any log file when the site crashed?

No, I just re-uploaded the original file. I honestly can't see what the nested error is doing to the site, but that fix you suggested (see attached screenshot) broke everything below the header.

Attachment 19169

28 Aug 2020, 6:12 PM
#1780
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Westminster New

It's doing a partial blank screen. It should have created a debug file. Did you check your logs folder for a debug?