Guest Posted May 30, 2008 Posted May 30, 2008 Hi In the product listing I want to add an Info button to the right of the Buy Now button, this link to have the same link as the text that is to the right of the thumbnail image. So I want image -- product name --- price ---- buy now button ---- more info button across the page I know it's the index.php page that needs editing but I'm not sure of what to do, can anyone point me in the right direction. Thanks Mark
spooks Posted May 30, 2008 Posted May 30, 2008 You`re looking in the wrong place, product listing is done by product_listing.php , if you look through that code you`ll see its easy to add what you want. ;) 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.
Guest Posted May 30, 2008 Posted May 30, 2008 Easy for some but for a novice like me not so. I've found the products_listing.php in includes/modules but what do I do. Thanks
spooks Posted May 30, 2008 Posted May 30, 2008 Ok, I`m feeling generous, find: case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; Replace with: case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => 'class="productListing-data"', 'text' => $lc_text); $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image_button('button_details.gif', IMAGE_BUTTON_DETAILS) . '</a> '; break; You`ll have to make you`re own button, you may wont to alter the section header too. B) 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.