linnellej Posted June 7, 2010 Posted June 7, 2010 Hello, I would like to add company description text to the homepage of my site. I would like to add it just under the "What's New Products" but right before the footer. Can someone shed any light on how to do this? Thanks in advance.
Guest Posted June 8, 2010 Posted June 8, 2010 I have done the same to my site, but I made it so that the text only shows to visitors, but not to logged in users. in catalog/index.php find: <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> add after: <tr><td> </td></tr> <?php if (tep_session_is_registered('customer_id')) { echo TEXT_BLANK; } else { echo TEXT_HOME_DESCRIPTION; } ?> in catalog/includes/languages/english.php add anywhere before the ending ?> define('TEXT_BLANK', ''); define('TEXT_HOME_DESCRIPTION, 'Your company description text here'); If you also want some text for logged in users, then put the text between the ' ' in the define('TEXT_BLANK', 'text for logged in users here');
linnellej Posted June 10, 2010 Author Posted June 10, 2010 I gave it a try and none of the text shows up. This is what's in the bottom of my catalog/includes/languages/english.php: define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a> '); define('PRICE', 'Price'); define('TEXT_BLANK', 'put text here'); define('TEXT_HOME_DESCRIPTION', 'put text here'); ?> And this is what's in the catalog/index.php: <?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> <?php echo tep_draw3_bottom();?> <?php echo tep_draw_bottom();?> </td> <tr><td> </td></tr> <?php if (tep_session_is_registered('customer_id')) { echo TEXT_BLANK; } else { echo TEXT_HOME_DESCRIPTION; } ?> Please let me know what you think...Thanks.
Guest Posted June 10, 2010 Posted June 10, 2010 It looks like you are using a template system in which case I am not familiar with how that works and perhaps what I gave you will not work for you. I use it myself and it works, but I am not using any template system.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.