Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Improved Stats Products Attributes Page


porpoise1954

Recommended Posts

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.

 

screenshot_1.png

 

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.

* * * * * * * * * * * * * * * * * * * * *

Porpoises are most happy when wet!

\ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _

Link to comment
Share on other sites

  • 1 month later...
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.

 

screenshot_1.png

 

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...