porpoise1954 Posted October 5, 2007 Share Posted October 5, 2007 I've been playing around with the code for the stats_low_stock_attrib.php page. Basically, I found it a real pain when stock-taking to have to print out the whole inventory. I wanted to be able to do the stock on a per manufacturer basis (as stock usually arrives from a specific manufacturer I wanted to be able to just pull up that manufacturer's products on the stats page) so I added some code to make a drop-down list to select a manufacturer - as per the screen-shot. I also tidied up the table slightly - increasing indents and bolding main items to make the list easier to read when printed. If anyone else is interested, I can add it to the contrib. Quote * * * * * * * * * * * * * * * * * * * * * Porpoises are most happy when wet! \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ Link to comment Share on other sites More sharing options...
cleverflo Posted November 6, 2007 Share Posted November 6, 2007 I've been playing around with the code for the stats_low_stock_attrib.php page. Basically, I found it a real pain when stock-taking to have to print out the whole inventory. I wanted to be able to do the stock on a per manufacturer basis (as stock usually arrives from a specific manufacturer I wanted to be able to just pull up that manufacturer's products on the stats page) so I added some code to make a drop-down list to select a manufacturer - as per the screen-shot. I also tidied up the table slightly - increasing indents and bolding main items to make the list easier to read when printed. If anyone else is interested, I can add it to the contrib. Hi there, I thought I would ask for your expertise if possible. I'm using Products Listing contribution (stats_product.php) and I'd would like to add: 1) the manufacturer name 2) the product image I've managed to get the manufacturers_id but can't get the name even though I added a manufacturers_name field in my products database. I have added this code to the stats_product.php: <td class="main"><?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image, $products['products_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); ?></td> but the picture doesn't show. All I get is a blank square with a red cross. I don't know much about codes and your help would be very much appreciated. If you post your contribution, maybe I can use your manufacturer code in my stats_product.php file... And maybe you have an idea on how to show the picture? Thanks in advance. Best regards, Florence Quote Link to comment Share on other sites More sharing options...
cleverflo Posted November 6, 2007 Share Posted November 6, 2007 Hi there, I thought I would ask for your expertise if possible. I'm using Products Listing contribution (stats_product.php) and I'd would like to add: 1) the manufacturer name 2) the product image I've managed to get the manufacturers_id but can't get the name even though I added a manufacturers_name field in my products database. I have added this code to the stats_product.php: <td class="main"><?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image, $products['products_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); ?></td> but the picture doesn't show. All I get is a blank square with a red cross. I don't know much about codes and your help would be very much appreciated. If you post your contribution, maybe I can use your manufacturer code in my stats_product.php file... And maybe you have an idea on how to show the picture? Thanks in advance. Best regards, Florence Hi, Found it. I copied codes from other contributions and managed to get my picture and manufacturer name showing. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.