osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Editing New Product Display

This is a discussion on Editing New Product Display within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I'm setting up a virtual Comic Book/collectibles shop. Have found editing osCommerce to be pretty easy, but I'm having one ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-05-2003, 11:19 AM
Lurker
 
Join Date: Feb 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ajabby
Default Editing New Product Display

I'm setting up a virtual Comic Book/collectibles shop. Have found editing osCommerce to be pretty easy, but I'm having one problem that I just can not figure out.

Comic Books ship to shops on a weekly basis, so on the main page (/catalog/default.php) I want to display all the issues that are set for sale in a given week, that are enetered into the catalog to display in the middle of the page where it says "New Products for February". Below that section I'd like to continue to display upcoming Products that will be available in the future.

Right now only nine of the comics I've entered for this week display... I need to change that so that everything I've entered for this week, display. Whatever I have entered for a given week (and it will vary from week to week), needs to display.

In /catalog/products_new.php I changed $products_new_query_raw so that it looks like this:


$products_new_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_available, p.products_date_added, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where products_status = '1' and week(p.products_date_available) = week(now()) order by p.products_date_available DESC, pd.products_name";


First of all, is this the correct sql for pulling products that are available for the current week?

Next, how do I change the template parameters so that the main page displays all products available for the given week? I had thought that MAX_DISPLAY_PRODUCTS_NEW handled this, and at one point I had deleted all mention of it out of /catalog/products_new.php but I ended up creating errors on the page you access from 'What's New" link from the left hand column. I then restored all the MAX_DISPLAY_PRODUCTS_NEW parameters I removed earlier.

Can someone help me out here and point out how I can handle this? Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Product display issue dmiles osCMax v2 Installation issues 6 02-13-2006 08:35 PM
Modify Product Display Page cygnus osCMax v1.7 General Mods Discussion 1 07-20-2005 12:22 AM
1 product per line display - how? jloyzaga osCMax v1.7 Discussion 0 03-25-2004 01:24 AM
Is there away to display the Product Name in the Title Bar? interweb osCommerce 2.2 Modification Help 0 07-04-2003 07:09 PM
Anyone know of a mod to display multiple product images Dr_Evil osCommerce 2.2 Modification Help 8 02-17-2003 12:54 AM


All times are GMT -8. The time now is 05:28 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax