johnstone4192 Posted May 7, 2007 Share Posted May 7, 2007 Hi Can anyone point me in the right direction for what i want to do, At the moment, to show what products i have added by date customers need to click on the small arrow in my "whats new" box. Can anyone tell me how to add a link to my categories box which would open up the same page.(so i can call it "products by date"). hope someone knows what i mean cheers Gary Link to comment Share on other sites More sharing options...
psynaptic Posted May 7, 2007 Share Posted May 7, 2007 If you look in the whats_new.php infobox code you will see that the infobox heading has a link function: tep_href_link(FILENAME_PRODUCTS_NEW) The tep_href_link function takes the filename as the first argument and forms a relative link. You can find the tep_href_function in inlcudes/functions/html_output.php. You can also find a list of filenames that you can use in includes/filenames.php You can use it in a regular anchor like so: <a href="<?php echo tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL');?>">Products by Date</a> We pass two more arguments because we need to generate a non-secure link (no point in using SSL for a products page). My Profile | Contribs I like most: 'On The Fly' Auto Thumbnailer, Active Countries, Header Tags Controller, Ultimate SEO URLs, UK Based osC, UK Postcode Validation, Open Featured Sets, UK Postcode Based Carrier Shipping Link to comment Share on other sites More sharing options...
Qim Posted December 12, 2007 Share Posted December 12, 2007 Hi, this was indeed interesting! :) I have a variation: I need to have "What's New" as a category. When clicked it displays the usual "Whats New" in the main area. When clicked again, it disappears in the display returns to what it was before. I need this in the shop Visit My Website Since I am a designer and not a coder... I need help. Are you the man to assit me? I would be so greatful. Happy Holidays! Qim Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.