Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please take a look again


grandmasterjack

Recommended Posts

Dont make me smack you with my small brain..

 

our brains are only smaller because they are more organized so that we can pull out all the nasty things you guys have done to us with the drop of a hat.. think of a mess closet, and a clean closet.. which has more room left.. You guys have messy brains.

Assuming the messy & clean closet have the same amount of attire in them only difference being their locations, then they have the same amount of room left. Hows that for a messy brain?

Link to comment
Share on other sites

  • Replies 55
  • Created
  • Last Reply

still on the right track, but you really dont want to get away from the cutesy do ya?? the baby in the middle and the butterfly and kitten are eh.. i think you are getting there though.. more and more movement in a good direction..

 

I LOVE the pale greay on the white.. I would definitely keep that!!!

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

Leaps and Bounds form your other ones!!

 

There is something funky going on with the baby.. though. A weird traparent shadoww on him

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

Fixed that I think. Downloaded productlist by catagorie and don't have a clue how to install it or how to edit it, any ideas?

 

<?php

 

/* Changes made by NEOVITA http://neovita.com.pl

- canged the code to create full featured infobox

- created variables for easy customizing the box

- corrected mysql query

 

See the comments where editing may be needed

*/

 

// calculate category path

if (isset($HTTP_GET_VARS['cPath'])) {

$cPath = $HTTP_GET_VARS['cPath'];

} elseif (isset($HTTP_GET_VARS['products_id']) && !isset($HTTP_GET_VARS['manufacturers_id'])) {

$cPath = tep_get_product_path($HTTP_GET_VARS['products_id']);

} else {

$cPath = '';

}

 

if (tep_not_null($cPath)) {

$cPath_array = tep_parse_category_path($cPath);

$cPath = implode('_', $cPath_array);

$current_category_id = $cPath_array[(sizeof($cPath_array)-1)];

} else {

$current_category_id = 0;

}

 

//edit following variables to match what you want to show

$limit = '100'; //limit number of products shownon the list

$width = '30'; //product image width in pixels

$height = ''; //product image height in pixels

 

 

//get info from database

//here you don't need to change enything

$result = mysql_query("

SELECT distinct

pd.products_id,

pd.products_name,

p.products_image,

p2c.categories_id,

p2c.products_id

FROM

products_description pd,

products p,

products_to_categories p2c

WHERE

p2c.products_id = pd.products_id AND

p.products_id = pd.products_id AND

p2c.categories_id = ".$cPath."

ORDER BY pd.products_name DESC

LIMIT ".$limit."

")

or die(mysql_error());

// end take info from database

?>

 

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => 'Lista produktów'); //edit infobox heading as you want

new infoBoxHeading($info_box_contents, true, true);

 

 

// Print out the contents of each row

$info_box_contents = array();

while($row = mysql_fetch_array( $result )) {

 

$info_box_contents[] = array('text' =>

//you can edit the following html to match your needs

'<table>

<tr>

<td>

<img src="'.DIR_WS_IMAGES.'/'.$row["products_image"].'" border="0" width="'.$width.'" height="'.$height.'">

</td>

<td>

<a " href="product_info.php?products_id='.$row["products_id"].'">'.$row['products_name'].'</a>

</td>

</tr>

</table>'

);

}

 

//View All link

//you can edit html as you want

$info_box_contents[] = array('text' =>

'<div align="center" style="text-align:left;">

<a href="index.php?cPath='.$cPath.'">

</a>

</div>'

);

 

new infoBox($info_box_contents);

?>

</td>

</tr>

 

Please keep it simple for this poor layman.

Jack

If at first you don't succeed.............................Cheat!!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...