gregy Posted December 8, 2004 Posted December 8, 2004 Hi! How can i put in language depend code (BOX_INFO_WELCOME) instead of pure text? $wishlist_contents_string = ''; if ($wishlist->count_contents() > 0) { $wishlist_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; $products = $wishlist->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { $wishlist_contents_string .= '<tr><td align="right" valign="top" class="infoBoxContents">'; if ((tep_session_is_registered('new_products_id_in_wishlist')) && ($new_products_id_in_wishlist == $products[$i]['id'])) { $wishlist_contents_string .= '<span class="newItemInCart">'; } else { $wishlist_contents_string .= '<span class="infoBoxContents">'; } $wishlist_contents_string .= $products[$i]['quantity'] . ' x </span></td><td valign="top" class="infoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">'; if ((tep_session_is_registered('new_products_id_in_wishlist')) && ($new_products_id_in_wishlist == $products[$i]['id'])) { $wishlist_contents_string .= '<span class="newItemInCart">'; } else { $wishlist_contents_string .= '<span class="infoBoxContents">'; } $wishlist_contents_string .= $products[$i]['name'] . "<br>". '<b><a href="' . tep_href_link(FILENAME_WISHLIST, tep_get_all_get_params(array('action')) . 'action=cust_order&pid=' . $products[$i]['id'] . '&rfw=1', 'NONSSL') . '">' . BOX_TEXT_MOVE_TO_CART . '</a> |' . "\n" . ' <a href="' . tep_href_link(FILENAME_WISHLIST, tep_get_all_get_params(array('action')) . 'action=remove_wishlist&pid=' . $products[$i]['id'], 'NONSSL') . '">' . BOX_TEXT_DELETE . '</a></b>' . "\n" .'</span></a></td></tr>'; if ((tep_session_is_registered('new_products_id_in_wishlist')) && ($new_products_id_in_wishlist == $products[$i]['id'])) { tep_session_unregister('new_products_id_in_wishlist'); } } $wishlist_contents_string .= '</table>'; } else { $wishlist_contents_string .= 'Seznam ?elja je prazen'; } $info_box_contents = array(); $info_box_contents[] = array('text' => $wishlist_contents_string); if ($wishlist->count_contents() > 0) { $info_box_contents[] = array('text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'right', 'text' => $currencies->format($wishlist->show_total())); $info_box_contents[] = array('text' => tep_draw_separator()); $info_box_contents[] = array('text' => '<tr><td colspan="3" align="right" class="smallText"><a href="' . tep_href_link(FILENAME_WISHLIST_HELP, '','NONSSL') . '"><u>'. BOX_HEADING_CUSTOMER_WISHLIST_HELP . '</u></a></td></tr>'); } particulary this line $wishlist_contents_string .= 'Seznam ?elja je prazen'; tried to make it bold but i cannot since it is in the code .. i guess ... thanx
Recommended Posts
Archived
This topic is now archived and is closed to further replies.