#1 (permalink)  
Alt 09.05.2005, 06:25
 
Registriert seit: 04.10.2004
Beiträge: 269
Standard

Mir ist aufgefallen, dass beim Erstaufruf der ?nderung der Adressbuchdaten ("Ihr Konto" -> "Adressbucheintr?ge bearbeiten") keine Kombobox zur Auswahl des Bundeslandes angeboten wird, sondern nur ein normales Eingabefeld (nicht wirklich ein Problem, aber doch sehr unsch?n).

Um das zu ?ndern, die folgenden ?nderungen durchf?hren:

Modul address_book_process.php

Vor

Code:
if (isset($_GET['edit']) && is_numeric($_GET['edit'])) {
einf?gen

Code:
else 
{
	if (ACCOUNT_STATE) {
 if (isset($customer_country_id)) 
 {
 	$country = $customer_country_id;
 	$zone_id = $customer_zone_id;
 }
 else 
 {
 	$country = STORE_COUNTRY;
 	$zone_id = 1;
 }
 $check_query = xtc_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . $country . "'");
 $check = xtc_db_fetch_array($check_query);
 $entry_state_has_zones = ($check['total'] > 0);
	}
}
================================================== ==

Modul includes/modules/address_book_details.php

Code:
	if ($process == true) {
 if ($entry_state_has_zones == true) {
 	$zones_array = array();
 	$zones_query = xtc_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . xtc_db_input($country) . "' order by zone_name");
 	while ($zones_values = xtc_db_fetch_array($zones_query)) {
  $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
 	}
 	$state_input= xtc_draw_pull_down_menu('state', $zones_array);
 } else {
 	$state_input= xtc_draw_input_field('state');
 }
	} else {
 $state_input= xtc_draw_input_field('state', xtc_get_zone_name($entry['entry_country_id'], $entry['entry_zone_id'], $entry['entry_state']));
	}
ersetzen durch

Code:
	//if ($process == true) {
 if ($entry_state_has_zones == true) {
 	$zones_array = array();
 	$zones_query = xtc_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . xtc_db_input($country) . "' order by zone_name");
 	while ($zones_values = xtc_db_fetch_array($zones_query)) {
  $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
 	}
 	$state_input= xtc_draw_pull_down_menu('state', $zones_array);
 } else {
 	$state_input= xtc_draw_input_field('state');
 }
	/* 
	} else {
 $state_input= xtc_draw_input_field('state', xtc_get_zone_name($entry['entry_country_id'], $entry['entry_zone_id'], $entry['entry_state']));
	}
	*/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 09.05.2005, 08:16
 
Registriert seit: 10.09.2004
Beiträge: 3
Standard

Super Tip danke
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
adressebucheintrge, nderung, problem

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus



Alle Zeitangaben in WEZ +1. Es ist jetzt 22:26 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand