OK, you said things look odd... what other things were looking odd?Originally Posted by Ajeh
![]()
OK, you said things look odd... what other things were looking odd?Originally Posted by Ajeh
![]()
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.
The part where things were not logically working ... but that was resolved with the missing parens ...Originally Posted by kotp
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!
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!
The patch that was in the fixes forum area? Yeah, that was when it broke.Originally Posted by Ajeh
Something is not right... I copy/pasted the replacement code.
Now I have this.
for that block of code.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;
}
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!
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.Originally Posted by Ajeh
The right side column disappears.
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:
Don't touch that function ...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;
}
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!
You are correct. I read too much into the "at the bottom" of the code.Originally Posted by Ajeh
![]()
It is fixed.
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!