I Got the domain,host what next?

Click Here To View All Answers...

Quick question... I Got the domain,host what next? Thanks in advance for any answer or 2. Another question on my mind: What code do I need to display the following different results:.

All items within a category.

All items within a subcategory..

Comments (88)

That's a good question. I'm not sure what is the answer. I'll do some research and get back to you if I bump into an useful answer. You should email the people at iPage as they probably can answer it..

Comment #1

Yes ive done that, I'm creating a different look and design of oscommerce, so I need the actual php code that calls for these requests from the database..

Comment #2

Take a look at index.php and includes/modules/product_listing.php - it's all in there.


Comment #3

Can no one actually write the code on here??.

Ive looked at the code, I dont know alot about php, so can you actually write the code here for me?..

Comment #4

Nobody is going to hold your hand, but we will help you learn. Most everyone on here has learned the hard way, and when people dont show an intrest in learning just wanting free code, it tends to turn people off in helping you..

Matti has suggested the best place to start. Just try some things see what happens. Live and learn.


Comment #5

True, but looking at the product listing page that mat says is not helping me yet, I know the code is there somewhere, I come from an asp background and dont yet fully understand php, so if I had a start with one bit of coding that shows me how to call results from a database, and just that, then I could figure out how the rest works. Im sure it's not hard to for someone to write code that calls for all products within a subcategory, with that I would learn how everything else works...

Comment #6

Take a look at the code that begins around here in index.php - study it's relationship to product_listing.php which, along with classes/boxes.php and classes/split_page_results.php is used to format it:.

 } elseif ($category_depth == 'products'.

The final query that fetches the products is found in product_listing.php:.

 if ($listing_split->number_of_rows > 0) {.

   $rows = 0;.

   $listing_query = tep_db_query($listing_split->sql_query);.

   while ($listing = tep_db_fetch_array($listing_query)) {.


This makes use of the splitPageResults class - step through it all and study all the $variables and classes - there are a number of db queries for the final result, including a conditional manufacturer's filter - it will slowly begin to gel.


Comment #7

Thankyou, I finally managed to figure it out myself by writing a new class in boxes.php, my first php bit of coding :-).

I now have what I wanted, my images scrolling across:.


Needs some refinement but that will come later..

Comment #8

What code do I need to display the following different results:.

All items within a category.

All items within a subcategory..

Comment #9

Log into admin click on Catalog/which takes you to Categories / Products from here you create new Categories / Products..

PS when entering a new product click on folder icon for catagory not the text this is where I was first stuck...

Comment #10

This question was taken from a support group/message board and re-posted here so others can learn from it.