smeagol2009 Posted June 22, 2009 Share Posted June 22, 2009 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 More sharing options...
smeagol2009 Posted July 22, 2009 Author Share Posted July 22, 2009 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 More sharing options...
spooks Posted July 22, 2009 Share Posted July 22, 2009 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 More sharing options...
smeagol2009 Posted July 22, 2009 Author Share Posted July 22, 2009 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 More sharing options...
smeagol2009 Posted July 22, 2009 Author Share Posted July 22, 2009 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 More sharing options...
smeagol2009 Posted July 22, 2009 Author Share Posted July 22, 2009 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. Link to comment Share on other sites More sharing options...
spooks Posted July 22, 2009 Share Posted July 22, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.