the_artist ha scritto:
P.s.
Azz ... Effettivamente rileggendo la email che ti hanno postato sembrerebbe la stessa richiesta....ma solo che io l'ho postata qui. Magari se si risolve torna utile a tutti.
Allora, ho provato adesso e sembra non ci siano controindicazioni, se hai voglia di fare dei test..
I files interessati sono 3, address_book.php, address_book_process.php e address_book_details.php in includes/modules.
Il procedimento e' questo, bisogna semplicemente eliminare tutto il codice contenuto tra
tranne che in due circostanze, in address_book_process.php trovi la query
Codice: Seleziona tutto
//PIVACF start
$entry_query = tep_db_query("select entry_gender, entry_company, entry_piva, entry_cf, entry_firstname, entry_lastname, entry_street_address, entry_suburb, entry_postcode, entry_city, entry_state, entry_zone_id, entry_country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$HTTP_GET_VARS['edit'] . "'");
//PIVACF end
e la trasformi in
Codice: Seleziona tutto
//PIVACF start
$entry_query = tep_db_query("select entry_gender, entry_company, entry_firstname, entry_lastname, entry_street_address, entry_suburb, entry_postcode, entry_city, entry_state, entry_zone_id, entry_country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$HTTP_GET_VARS['edit'] . "'");
//PIVACF end
e in address_book.php la stessa cosa, trovi
Codice: Seleziona tutto
//PIVACF start
$addresses_query = tep_db_query("select address_book_id, entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_piva as piva, entry_cf as cf, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' order by firstname, lastname");
//PIVACF end
che diventa
Codice: Seleziona tutto
//PIVACF start
$addresses_query = tep_db_query("select address_book_id, entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' order by firstname, lastname");
//PIVACF end
in modules/address_book_details.php elimini tutti i riferimenti
Ho provato ad aggiungere un nuovo indirizzo e tutto e' andato bene.
Fai un backup e qualche test
'iao
Sergio