Thread: Westminster New

Page 178 of 187 FirstFirst ... 78128168176177178179180 ... LastLast
Results 1,771 to 1,780 of 1865
  1. #1771
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,155
    Plugin Contributions
    11

    Default Re: Westminster New

    Using the developer's tool kit, you'll need to find the code that creates the
    Code:
    <div class="leftBoxContainer tabletHide mobileHide" id="whatsnew">
    There's an h3 after that, then the divs start
    Code:
    <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&nbsp;&nbsp;[more]</a>
    </h3>
    <div class="sideBoxContent centeredContent">
      <div class="sideBoxContentItem">
        <a href="https://www.flowertownengravable.gifts/index.php?main_page=product_info&amp;cPath=1_36_41&amp;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&amp;cPath=1_36_41&amp;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&amp;cPath=1_36_41&amp;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
    Code:
    .sideBoxContentItem a{font
    and used line 297/298 of the stylesheet.css to control the title
    Code:
    .box-title a{color:#171717;}
    .box-title{margin:0 auto 10px auto;width:90%;}
    It will work like they wanted if you move the
    Code:
    <div class="box-title">
    to match
    Code:
    <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&nbsp;&nbsp;[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&amp;cPath=1_36_41&amp;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&amp;cPath=1_36_41&amp;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&amp;cPath=1_36_41&amp;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.

  2. #1772
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default 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
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  3. #1773
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,155
    Plugin Contributions
    11

    Default Re: Westminster New

    Go to the bottom of the DTK and enter like the photo
    Attachment 19165
    That should find the filename for the offending area.

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

  4. #1774
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Westminster New

    Are you saying that what I'm looking for is and errant </a> ?
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  5. #1775
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Westminster New

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

    PHP Code:
    <?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_WIDTHSMALL_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 Code:
    <?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_WIDTHSMALL_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 Code:
    <?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_WIDTHSMALL_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";
    Last edited by wtashby; 28 Aug 2020 at 02:55 AM.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  6. #1776
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,155
    Plugin Contributions
    11

    Default Re: Westminster New

    The what's new
    Code:
    <?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
    Code:
    <?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
    Code:
    $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
    Code:
    , SMALL_IMAGE_HEIGHT)
    and press delete until you have
    Code:
    , 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.

  7. #1777
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default 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.

    Quote Originally Posted by dbltoe View Post
    The what's new
    Code:
    <?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
    Code:
    <?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
    Code:
    $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
    Code:
    , SMALL_IMAGE_HEIGHT)
    and press delete until you have
    Code:
    , 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.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  8. #1778
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,155
    Plugin Contributions
    11

    Default Re: Westminster New

    Did you get any log file when the site crashed?

  9. #1779
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Westminster New

    Quote Originally Posted by dbltoe View Post
    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.

    Name:  after.jpg
Views: 48
Size:  25.0 KB
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  10. #1780
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,155
    Plugin Contributions
    11

    Default 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?

 

 

Similar Threads

  1. v155 Getting ajax error in v155 with v154 Westminster template
    By godt in forum General Questions
    Replies: 3
    Last Post: 11 Jul 2016, 12:41 AM
  2. v155 Getting ajax error in v155 with v154 Westminster template
    By MCS_Computers in forum General Questions
    Replies: 10
    Last Post: 21 Mar 2016, 03:58 PM
  3. v154 Modifying Top Menu - Westminster New
    By chelseaneedshelp in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Mar 2015, 04:28 PM
  4. Westminster New doesn't work on mobile phone
    By Pompidompie in forum Addon Templates
    Replies: 3
    Last Post: 26 Mar 2015, 10:34 PM
  5. v151 westminster new Share and Connect
    By Larry0652 in forum Addon Templates
    Replies: 8
    Last Post: 24 Oct 2014, 03:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR