The first step of edit alway BACKUP data and the files you need to edit.
After backup database login to you Zen-cart Admin page
Tools-> Install SQL Patches
paste the SQL Command above and press Send
Open Yourzencartroot/admin/orders.phpCode:ALTER TABLE orders ADD customers_fax varchar(32) NOT NULL default '';
Search: (around Line 294)
Replace:Code:<tr> <td class="main"><strong><?php echo ENTRY_TELEPHONE_NUMBER; ?></strong></td> <td class="main"><?php echo $order->customer['telephone']; ?></td> </tr>
Search: (around Line 615)Code:<tr> <td class="main"><strong><?php echo ENTRY_TELEPHONE_NUMBER; ?></strong></td> <td class="main"><?php echo $order->customer['telephone']; ?></td> </tr> <tr> <td class="main"><strong><?php echo ENTRY_FAX_NUMBER; ?></strong></td> <td class="main"><?php echo $order->customer['fax']; ?></td> </tr>
Replace:Code:o.customers_telephone like '%" . $keywords . "%'
Save and CloseCode:o.customers_telephone like '%" . $keywords . "%' or o.customers_fax like '%" . $keywords . "%'
Open Yourzencartroot/admin/includes/classes/order.php
Search: (around Line 40)
Replace:Code:customers_state, customers_country, customers_telephone,
Search: (around Line 97)Code:customers_state, customers_country, customers_telephone, customers_fax,
Replace:Code:'telephone' => $order->fields['customers_telephone'],
Save and CloseCode:'telephone' => $order->fields['customers_telephone'], 'fax' => $order->fields['customers_fax'],
Open Yourzencartroot/includes/classes/order.php
Search: (around Line 46)
Replace:Code:customers_telephone,
Search: (around Line 127)Code:customers_telephone, customers_fax,
Replace:Code:'telephone' => $order->fields['customers_telephone'],
Search: (around Line 232)Code:'telephone' => $order->fields['customers_telephone'], 'fax' => $order->fields['customers_fax'],
Replace:Code:c.customers_telephone,
Search: (around Line 384 )Code:c.customers_telephone, c.customers_fax,
Replace:Code:'telephone' => $customer_address->fields['customers_telephone'],
Search: (around Line 575)Code:'telephone' => $customer_address->fields['customers_telephone'], 'fax' => $customer_address->fields['customers_fax'],
Replace:Code:'customers_telephone' => $this->customer['telephone'],
Search: (around Line 985)Code:'customers_telephone' => $this->customer['telephone'], 'customers_fax' => $this->customer['fax'],
Replace:Code:$this->customer['telephone']
Save and CloseCode:$this->customer['telephone'], $this->customer['fax']
OK It should work now![]()



Reply With Quote




Bookmarks