This is a very useful mod, thanks for sharing your work!
I'm trying to add an indicator that will be visible on the Orders page. If a Customer Note exists, a small indicator would appear on the order line related to that customer.
So I thought if I added something like this to orders.php, I should be able to get that to appear:
This seems to work, but the problem is, I can't for the life of me figure out why that select query seems to only pull the first record out of the notes table. Anybody have an idea?Code:$notes_active_query = ("SELECT * FROM notes"); $notes_active_results = $db->Execute($notes_active_query); while(!$notes_active_results->EOF){ if($notes_active_results->fields['customers_id'] == $orders->fields['customers_id']){ echo '<a href="' . zen_href_link('notes.php?page1', 'nID=' . $notes_active_results->fields['notes_id'], 'NONSSL') . '">' . zen_image(DIR_WS_ICONS . 'file.gif', 'メモー' . ' ' . TABLE_HEADING_CUSTOMERS) . '</a>'; break; } else { break; } }


Reply With Quote
