SyCoDeath Posted August 29, 2005 Share Posted August 29, 2005 Hello everyone. I am having a major problem and i am so stuck its untrue. I need to replace the "this product was added" with We are in no way associated with (Heading title) Basically i want it to say We are in no way associated with "Sony" i have been looking all day and i cant think how to do this. I have tried echoing the catagorie name but it wont work. Please help i cant think anymore Link to comment Share on other sites More sharing options...
♥14steve14 Posted August 29, 2005 Share Posted August 29, 2005 Hello everyone. I am having a major problem and i am so stuck its untrue. I need to replace the "this product was added" with We are in no way associated with (Heading title) Basically i want it to say We are in no way associated with "Sony" i have been looking all day and i cant think how to do this. I have tried echoing the catagorie name but it wont work. Please help i cant think anymore <{POST_SNAPBACK}> The text 'this product wasd added' can be found in your catalog/includes/languages/your language/product_info file on or around line 16. Just delate the text and add your own. REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
SyCoDeath Posted August 29, 2005 Author Share Posted August 29, 2005 Hi yes i know which bit needs editing, but thanx anyways for your help. what i am looking for exactly. is a heading title echo so when i put in text saying. We are in no way associated with or their partners i would like the heading title to be put in place after the with, so it would read We are in no way associated with "Heading Title" or their partners Link to comment Share on other sites More sharing options...
Guest Posted August 30, 2005 Share Posted August 30, 2005 Add the following in /includes/languages/english/product_info.php: define('TEXT_MANUFACTURER', 'We are in no way associated with %s or their partners'); and the following in product_info.php: <?php if (isset($HTTP_GET_VARS['products_id'])) { $manufacturer_query = tep_db_query("select m.manufacturers_name, m.manufacturers_image, mi.manufacturers_url from " . TABLE_MANUFACTURERS . " m left join " . TABLE_MANUFACTURERS_INFO . " mi on (m.manufacturers_id = mi.manufacturers_id and mi.languages_id = '" . (int)$languages_id . "'), " . TABLE_PRODUCTS . " p where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.manufacturers_id = m.manufacturers_id"); if (tep_db_num_rows($manufacturer_query)) { $manufacturer = tep_db_fetch_array($manufacturer_query); } } ?> <tr> <td align="left" class="main"><?php echo sprintf(TEXT_MANUFACTURER, $manufacturer['manufacturers_name']); ?></td> </tr> The database query pulls other info you may find useful :D Matti Link to comment Share on other sites More sharing options...
SyCoDeath Posted August 30, 2005 Author Share Posted August 30, 2005 Hi there Matti. Thank you so much for helping me with this. But now all i am seeing is this: We are in no way associated with or their partners The heading title isnt being echoed. The heading says Sony. So i want it to say We are in no way associated with Sony or their partners and i also want ti to change if it is a heading title saying JVC Thanx so much in advance Craig Link to comment Share on other sites More sharing options...
Guest Posted August 31, 2005 Share Posted August 31, 2005 You have a modified product_info.php? Just use the same variable as your heading title: <tr> <td align="left" class="main"><?php echo sprintf(TEXT_MANUFACTURER, HEADING_TITLE) ?></td> </tr> I do not know what you have that outputs 'Sony' - I assumed you had them as the products manufacturer (makes sense to me!), but whatever it is, use that :P Matti Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.