Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Jun 2006
    Location
    Minnesota
    Posts
    39
    Plugin Contributions
    0

    Default Re: Header Positions Problem

    Quote Originally Posted by Ajeh
    Things look odd ... perhaps I could peek in your Admin ... if so, how about a PM for URL and access ...
    OK, you said things look odd... what other things were looking odd?

  2. #12
    Join Date
    Jun 2006
    Location
    Minnesota
    Posts
    39
    Plugin Contributions
    0

    Default Re: SideBox-Banners Problem

    Well, I ran a test entry on the admin > layouts > Banner Display Groups - Side Box banner_box SideBox-Banners

    When I changed the entry, the whole (right) column disappeared. I changed it back (cut and paste) to the previous default entry, and it stayed disappeared. It did appear when I went to login as a customer.

    Found a problem that may be preventing the side banners from coming up...
    Code:
    Fatal error: Call to undefined function: zen_get_upcoming_date_range() in /home/customp3/public_html/shop/includes/modules/upcoming_products.php on line 15
    Last edited by kotp; 10 Sep 2006 at 03:45 PM.

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Header Positions Problem

    Quote Originally Posted by kotp
    OK, you said things look odd... what other things were looking odd?
    The part where things were not logically working ... but that was resolved with the missing parens ...

    This appeared to be an issue on the Banner Positions when more than one Banner Group was used as the emphasis on status = 1 what not set regardless of the Banner Group name ...

    Took me a few to find that little quirk and why "some" things listened and others did not ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Header Positions Problem

    Check that the /includes/functions/functions_lookup.php is up to date ... that function is located down near the bottom below the function zen_get_new_date_range ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #15
    Join Date
    Jun 2006
    Location
    Minnesota
    Posts
    39
    Plugin Contributions
    0

    Default Re: Header Positions Problem

    Quote Originally Posted by Ajeh
    Check that the /includes/functions/functions_lookup.php is up to date ... that function is located down near the bottom below the function zen_get_new_date_range ...
    The patch that was in the fixes forum area? Yeah, that was when it broke.

    Something is not right... I copy/pasted the replacement code.

    Now I have this.


    PHP Code:
    // build date range for new products
      
    function zen_get_new_date_range($time_limit false) {
        if (
    $time_limit == false) {
          
    $time_limit SHOW_NEW_PRODUCTS_LIMIT;
        }

        
    // 120 days; 24 hours; 60 mins; 60secs
        
    $date_range time() - ($time_limit 24 60 60);
    // echo 'Now:      '. date('Y-m-d') ."<br />";
    // echo $time_limit . ' Days: '. date('Ymd', $date_range) ."<br />";
        
    $zc_new_date date('Ymd'$date_range);
        switch (
    true) {
        case (
    SHOW_NEW_PRODUCTS_LIMIT == 0):
          
    $new_range '';
          break;
        case (
    SHOW_NEW_PRODUCTS_LIMIT == 1):
          
    $zc_new_date date('Ym'time()) . '01';
          
    $new_range ' and p.products_date_added >=' $zc_new_date;
          break;
        default:
          
    $new_range ' and p.products_date_added >=' $zc_new_date;
        }
        return 
    $new_range;
      } 
    for that block of code.

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Header Positions Problem

    Be sure that you deleted the old function completely and replaced it with the new one ...

    If you are unsure ... restore the original file:
    /includes/functions/functions_lookups.php

    from a clean Zen Cart v1.3.5 download ... and then replace that function again ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #17
    Join Date
    Jun 2006
    Location
    Minnesota
    Posts
    39
    Plugin Contributions
    0

    Default Re: Header Positions Problem

    Quote Originally Posted by Ajeh
    Be sure that you deleted the old function completely and replaced it with the new one ...

    If you are unsure ... restore the original file:
    /includes/functions/functions_lookups.php

    from a clean Zen Cart v1.3.5 download ... and then replace that function again ...
    Yep, with the original code, I have the problem with all products showing as new, but the right side column works. When I put in the 'fix' code, it breaks.

    The right side column disappears.

  8. #18
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Header Positions Problem

    It looks like you are wiping out the function below the function zen_get_new_date_range ...

    There is another function before the end of the file:
    PHP Code:
    // build date range for upcoming products
      
    function zen_get_upcoming_date_range() {
        
    // 120 days; 24 hours; 60 mins; 60secs
        
    $date_range time();
    // echo 'Now:      '. date('Y-m-d') ."<br />";
    // echo 'Upcoming Days: '. date('Ymd', $date_range) ."<br />";
        
    $zc_new_date date('Ymd'$date_range);
        
    $new_range ' and p.products_date_available >=' $zc_new_date;
    //    $new_range = ' and ' . EXPECTED_PRODUCTS_FIELD . ' <=' . $zc_new_date;

        
    return $new_range;
      } 
    Don't touch that function ...

    Only change the function zen_get_new_date_range with the new function ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #19
    Join Date
    Jun 2006
    Location
    Minnesota
    Posts
    39
    Plugin Contributions
    0

    Default Re: Header Positions Problem

    Quote Originally Posted by Ajeh
    It looks like you are wiping out the function below the function zen_get_new_date_range ...

    There is another function before the end of the file:
    PHP Code:
    // build date range for upcoming products
      
    function zen_get_upcoming_date_range() {
        
    // 120 days; 24 hours; 60 mins; 60secs
        
    $date_range time();
    // echo 'Now:      '. date('Y-m-d') ."<br />";
    // echo 'Upcoming Days: '. date('Ymd', $date_range) ."<br />";
        
    $zc_new_date date('Ymd'$date_range);
        
    $new_range ' and p.products_date_available >=' $zc_new_date;
    //    $new_range = ' and ' . EXPECTED_PRODUCTS_FIELD . ' <=' . $zc_new_date;

        
    return $new_range;
      } 
    Don't touch that function ...

    Only change the function zen_get_new_date_range with the new function ...
    You are correct. I read too much into the "at the bottom" of the code.

    It is fixed.

  10. #20
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Header Positions Problem

    Thanks for the update and glad all of the code is functioning correctly for you on both the banners and the New Product dates ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. change atrribute positions
    By Andy-C27 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 10 Apr 2015, 09:03 AM
  2. Banner positions
    By Shane78 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Mar 2010, 08:49 PM
  3. Additional image positions
    By acanthuscarver in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 21 Dec 2009, 08:11 PM

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