Contributions

Other (Category Index)
Search: 

Customer Title Dropdown

This mod will add a Title dropdown box to all customer details pages including
create_account, checkout_shipping_address, checkout_payment_address and admin/customers.

***Also works with the Payment_without_account (PWA0.80) contribution!

In addition to the title dropdowns, this mod upgrades any pages which display addresses to handle the new title information such as checkout_shipping, checkout_payment, checkout_confirmation, admin/invoice, admin/invoice and admin/packingslip.

Not yet tested in a live site so treat as a bete version!

Expand All / Collapse All

Invoice didn't show Title warrenerjm 31 Dec 2007

All thanks goes to geoffreywalton who found the missing code.

In catalog/admin/includes/classes/order.php

Change line 35

function query($order_id) {
$order_query = tep_db_query("select customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, currency, currency_value, date_purchased, orders_status, last_modified from " . TABLE_ORDERS . " where orders_id = '" . (int)$order_id . "'");

to

function query($order_id) {
$order_query = tep_db_query("select customers_title, customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_title, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_title, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, currency, currency_value, date_purchased, orders_status, last_modified from " . TABLE_ORDERS . " where orders_id = '" . (int)$order_id . "'");

Nothing else has changed. Zip file only contains this information.

Revised .zip file attached Iain Shaw 21 Feb 2005
Title Drop Down - Bug Fix Iain Shaw 21 Feb 2005
Bug Fixes Brian Sim 17 Sep 2004
Customer Title Dropdown Brian Sim 13 Sep 2004

Note: Contributions are used at own risk.