Guest Posted April 14, 2008 Posted April 14, 2008 Hi, was wondering if anyone can tell me how to add my own text into the shopping cart page. Searched around and found nothing. I'm sure it's probably just something simple that I have over looked in the Shopping_cart.php Cheers Eoin
FIMBLE Posted April 14, 2008 Posted April 14, 2008 If you need to add text in a place where there was none, you will need to add it with HTML (or php if you want it dynamic) If you want to add a simple table use <table> <tr> <td>Your text</td> </tr> </table> Obviously you can add width, height, border, border-color tags to this too Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Guest Posted April 15, 2008 Posted April 15, 2008 Thanks Nic, Do I need to put the text between any tags? Every time I try to add text it shows on the header or left column, anywhere other than where it is supposed to be LoL Cheers Eoin
germ Posted April 15, 2008 Posted April 15, 2008 This would put the text close to the top, between "What's in My Cart?" and the bar with "Remove Products". In shopping_cart.php find this code: <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_cart.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> Just below it, add this: <tr> <td>Your new text goes here!</td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.