Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Show manufacturer name help pls


smeagol2009

Recommended Posts

Hi,

I'm trying to show the manufacturer name in admin/categories.ph in the 'product summary' panel. (The blue box that shows on the right of the page when you have selected a product)

 

Currently it shows the following;

 

------------------------------------------------------

TEXT_COST_PRICE_INFO £1.50

TEXT_PRODUCTS_PRICE_INFO £4.99

 

TEXT_PRODUCTS_PROFIT_INFO £3.49

 

TEXT_PRODUCTS_QUANTITY_INFO 0

 

TEXT_PRODUCTS_AVERAGE_RATING 0.00%

 

TEXT_INFO_HEADING_NEW_IMAGES

------------------------------------------------------

 

 

I have been trying to add the manufacturer name by adding this to categories.php > $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_NAME . ' ' . $products_manufacturers_id = $manufacturers_name);

 

Can anyone help me please?

 

Thanks

Link to comment
Share on other sites

  • 5 weeks later...

I have managed to get the manufacturers_id to show, however, I'm still struggling with the name. Anyone got any advice?

 

When I add m.manufacturers_name, or pd.manufacturers_name, I get an field error?

 

Thanks

Link to comment
Share on other sites

you have to select the data from the array, such as $manufacturers['manufacturers_name']

 

see how the other processes get the data

 

 

 

 

SQL Tuition http://www.w3schools.com/sql/default.asp

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hi,

I understand, however, the following should work but it doesn't?

 

<?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products['manufacturers_name'] . '&action=new_product_preview&read=only') . '">' . '</a> '. $products['manufacturers_name']; ?>

 

Quite confusing, because if I use manufacturers_id in place of manufacturers_name it works and shows the correct ID?

Link to comment
Share on other sites

Hi,

I understand, however, the following should work but it doesn't?

 

<?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products['manufacturers_name'] . '&action=new_product_preview&read=only') . '">' . '</a> '. $products['manufacturers_name']; ?>

 

Quite confusing, because if I use manufacturers_id in place of manufacturers_name it works and shows the correct ID?

 

 

Please ignore my last post, I was trying to get the manufacturers name from the products table which ofcourse does not have it.

 

Even using $manufacturers['manufacturers_name'] does not work tho?

Link to comment
Share on other sites

Sorted it. If anyone wants to do the same thing just let me know and I'll explain.

@Spooks - you were along the right lines, but a bit more to it.

 

Glad you got it, I was just giving a pointer, I was aware it was unlikely to work as is. The main thing is it got you on the path to the solution.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...