Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

hello all,

 

I noticed that the newsdesk_date_available option is not used in the SQL statment, used to display the list of latest news. How come when it is a necessary option ?

 

I added "and newsdesk_date_available <= now()" on the page /catalog/includes/modules/newsdesk.php but it doesn't show anymore the news with a NULL 'newsdesk_date_available' in the table newsdesk. Only News with a past date are displayed (ie today minus 1,2,3 x days). Do you know why ?

 

WHERE p.newsdesk_id=p2c.newsdesk_id and p2c.categories_id=pc.categories_id and pd.newsdesk_id = p.newsdesk_id and pd.language_id = "' . $languages_id . '" and newsdesk_status = 1 and p.newsdesk_sticky = 0 and newsdesk_date_available <= now() ORDER BY newsdesk_date_added DESC LIMIT ' . MAX_DISPLAY_NEWSDESK_NEWS

 

What is the correct SQL statement ?

 

Thx,

Best to all

 

Ewad

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...