Funktionalität
Shopseite - Warenkorb - Variablen in der Auswahl der Versandadresse
ID: 199Status: behobenVersion: 2.4.01Report Date: 6. February 2019Product: Bigware Shop 2.4.01 Resolution Date: 3. February 2019Resolution Version:
ReporterMarkus
Assigneeemiz
Description

Unter der primären Versandadresse im Warenkorb steht die Variable email.

Zweite Adresse im Adressbuch enthält eine Variable

Variablen-Versandadresse

Ein Gedanke zu „Shopseite – Warenkorb – Variablen in der Auswahl der Versandadresse“

  1. Funktion go_form_of_address in /func_this/function_bigware_12.php korrigiert

    function go_form_of_address($form_of_address_id, $address, $html, $boln, $eoln) {
    	$form_of_address_query = go_db_query("select form_of_address as format from " . DB_TBL_FORM_OF_ADDRESS . " where form_of_address_id = '" . (int)$form_of_address_id . "'");
    	$form_of_address = go_db_fetch_array($form_of_address_query);
    	if (isset($address['company']) && go_not_null($address['company'])) {
      	$company = go_output_string_protected($address['company']);
      }
    	if (isset($address['firstname']) && go_not_null($address['firstname'])) {
    		$firstname = go_output_string_protected($address['firstname']);
    		$lastname = go_output_string_protected($address['lastname']);
    	} elseif (isset($address['name']) && go_not_null($address['name'])) {
    		$firstname = go_output_string_protected($address['name']);
    		$lastname = '';
    	} else {
    		$firstname = '';
    		$lastname = '';
    	}
    	$street = (isset($address['street_address']) ? go_output_string_protected($address['street_address']) : '');
    	$street2 = (isset($address['street_address2']) ? go_output_string_protected($address['street_address2']) : '');
    	$suburb = (isset($address['suburb']) ? go_output_string_protected($address['suburb']) : '');
    	$postcode = (isset($address['postcode']) ? go_output_string_protected($address['postcode']) : '');
    	$city = (isset($address['city']) ? go_output_string_protected($address['city']) : '');
    	$state = (isset($address['state']) ? go_output_string_protected($address['state']) : '');
    	if (isset($address['land_id']) && go_not_null($address['land_id'])) {
    		$land = go_get_land_name($address['land_id']);
    		if (isset($address['zone_id']) && go_not_null($address['zone_id'])) {
    			$state = go_get_zone_code($address['land_id'], $address['zone_id'], $state);
    		}
    	} elseif (isset($address['land']) && go_not_null($address['land'])) {
    		$land = go_output_string_protected($address['land']);
    	} else {
    		$land = '';
    	}
    	$zip = $postcode;
    	if ($html) {
    		$HR = '<hr>';
    		$hr = '<hr>';
    		if ( ($boln == '') && ($eoln == "\n") ) {
    			$CR = '<br>';
    			$cr = '<br>';
    			$eoln = $cr;
    		} else {
    			$CR = $eoln . $boln;
    			$cr = $CR;
    		}
    	} else {
    		$CR = $eoln;
    		$cr = $CR;
    		$HR = '----------------------------------------';
    		$hr = '----------------------------------------';
    	}
    	$statecomma = '';
    	if ($street2!="") {  $streets = $street.$cr.$street2;}
    	else {$streets = $street;}
    	if ($suburb != '') $streets = $street . $cr . $suburb;
    	if ($state != '') $statecomma = $state . ', ';
      $fmt = explode('$', $form_of_address['format']);
      $fmt = array_filter($fmt);
      foreach ($fmt as $key => $value) {
        $value = trim($value);
        if (!empty($$value) === true) $fmt[$key] = $$value;
        if ($value != '<br>') $fmt[$key] .= '&nbsp;';
      }
      $address = implode('', $fmt);
    	if ( (MEMBER_COMPANY == 'true') && (go_not_null($company)) ) {
    		$address = $company . $cr . $address;
    	}
    	return $address;
    }
    

Schreibe einen Kommentar