osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

How to show products in first page

This is a discussion on How to show products in first page within the osCMax v2 Features Discussion forums, part of the osCMax v2.0 Forums category; Hi. I want to cancel the " new product in month...." feature on the first page and I want to ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 07-24-2007, 03:44 AM
Lurker
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
idanag is on a distinguished road
Default How to show products in first page

Hi.

I want to cancel the " new product in month...." feature on the first page and I want to be able to show any product/s (multiple) on the first page.

Can anybody tell me how to do that ?
or..maybe how to cancel the date match on the new items in "month.."

10x

Idan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-24-2007, 03:30 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 444
Thanks: 3
Thanked 75 Times in 70 Posts
Rep Power: 6
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Re: How to show products in first page

so you want every first page to load with a random selection of products?
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07-24-2007, 11:21 PM
Lurker
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
idanag is on a distinguished road
Default Re: How to show products in first page

YEs , That might work.
Do you know how I can do that ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 07-25-2007, 10:40 AM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 444
Thanks: 3
Thanked 75 Times in 70 Posts
Rep Power: 6
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Re: How to show products in first page

One simple way is to use the new products, but change it so that it picks products from a random month... in this case modify the SQL

Old SQL:
Code:
 $new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, p.products_price as products_price from " . TABLE_PRODUCTS . " p where products_status = '1' and month(p.products_date_added) = month(now()) order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
New SQL
Code:
srand(time());
$randmonth = (rand()%12);
 $new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, p.products_price as products_price from " . TABLE_PRODUCTS . " p where products_status = '1' and month(p.products_date_added) = ".$randmonth." order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
Then modify the /includes/languages/english/ files as necessary

This is a simple hack, but it should do what you want. To make it a tad more complex you could

1) load a selection of products (say 50 products by month, by random selection of the fisrt letter in the products name... whatever you want to use to make the selection totally random) into an array
2) select MAX_DISPLAY_NEW_PRODUCTS (assume it will be under 50 ) from the array randomly and insert into another array
3) display the second array
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 07-28-2007, 03:47 PM
osCMax Testing Team
 
Join Date: Nov 2002
Location: Orlando
Posts: 201
Thanks: 10
Thanked 26 Times in 14 Posts
Rep Power: 7
JohnW will become famous soon enoughJohnW will become famous soon enough
Default Re: How to show products in first page

You might try this contribution that uses featured products that you set in the admin section. I used it on my old OSC site before I switched to oscmax and it was a really easy contribution to load.

osCommerce: Featured Products
__________________
John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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
using Easy Populate & the products show in the 'New Products For %s" table? neil osCMax v2 Customization/Mods 0 03-18-2007 04:50 PM
new products-link show all products, not 10 as I configure.. mikkvais osCommerce 2.2 Discussion 0 08-23-2005 01:31 PM
Show manufacturer's name on product page, not category page kellbot osCMax v1.7 Discussion 0 04-25-2005 04:57 AM
Show more than 10 products PaintballGT osCMax v1.7 Discussion 4 04-05-2005 09:02 AM


All times are GMT -8. The time now is 07:27 AM.


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