kiske Posted January 1, 2006 Share Posted January 1, 2006 hello everybody all the wishes for 2006. i have 2 problems i can't find the first: I?ve installed the wish list contribution and the wishlistbutton is only displayed in the product_info.php page. i would like to put the button in the product list, but i don't know how. the second: i modified the categories.php. what did i do? i put an image in the main categories and the subs are just printed out of the database. what's my problem? when a link is active he disappears in the main categories and the subs is the same problem my code: if ($this_category != $cid) { if ($level > 1){ if ($in_path) { $categories_string .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $cpath . $cid) . '"> <b>'.$foo[$cid]['name']. '</b> </a>'; }else{ $categories_string .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $cpath . $cid) . '">' .$foo[$cid]['name']. '</a>'; } } else{ if ($in_path) { $categories_string .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $cpath . $cid) . '" class="imageLink"> <img src="images/'.$foo[$cid]['name']. '.gif" border="0"> </a>'; }else{ $categories_string .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $cpath . $cid) . '" class="imageLink"> <img src="images/'.$foo[$cid]['name']. '.gif" border="0"> </a>'; } } } $categories_string .= '<br>' ."\n"; } what does it look like: as you can see after the arrow their should be an image been dislayed. this is the active link. what can i do? kiske Link to comment Share on other sites More sharing options...
kiske Posted January 2, 2006 Author Share Posted January 2, 2006 can nobody help me? Link to comment Share on other sites More sharing options...
kiske Posted January 2, 2006 Author Share Posted January 2, 2006 owkey 1 problem is solved :) this is the categories problem. with a little adjustment in the if statement it works. now i'm going to try to solve the wishlist problem, but i kind of way to solve this problem is still welcome. best regards kiske Link to comment Share on other sites More sharing options...
kiske Posted January 3, 2006 Author Share Posted January 3, 2006 hello i'm trying to solve my wishlist problem i tryed to put this code in the product list page, but he don't put the product in the wishlist can somebody tell me why? case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'top'; $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>?<br/> '. tep_image_submit('button_wishlist.gif', 'Add to Wishlist', 'name="wishlist" value="wishlist"') . ';'; break; the tep_image_submit('button_wishlist.gif', 'Add to Wishlist', 'name="wishlist" value="wishlist"') is for the wishlist button as you can see. friendly regards kiske Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.