• My account
    • (X)Sign in

      I am a returning customer at TYPO3 Multishop

      Enter your username and password here in order to log in on the website:

      Forgot your password?

      Not yet customer of TYPO3 Multishop?

      • Order history
      • Automatic generated e-mail history
      • Track your Order
      New at TYPO3 Multishop
You are here:

Help by translating Multishop in your local language

On the following page you can help by translating Multishop in your local language:

https://translation.typo3.org/projects/TYPO3.ext.multishop/

Spanish:

https://translation.typo3.org/es/TYPO3.ext.multishop/pi1/locallang.xlf

The following language are already translated by our supporters:

  • Dutch
  • German
  • French

delivery address in checkout


Author Message
Lilu82
lilu
Multishop experienced
Topic creator
registered since: 04.07.2014
Posts: 14
The user can set/edit his delivery address and billing address in its profile. Is it possible at the checkout the preset delivery-address automatically entered? Just as the billing address. In my cas, all fields of the delivery-address are empty although one is specified in the profile.

[This article was edited 1 times, at last 29.07.2014 at 10:38.]
Written on: 29. 07. 2014 [10:38]
Lilu82
lilu
Multishop experienced
Topic creator
registered since: 04.07.2014
Posts: 14
If I am correct, this "feature" not yet integrated. Since I do not know the reason, I have a small "fix". I would be grateful if this is checked.

checkout/multistep/checkout_address.php

PHP
if (count($cart['products'])<1) {
	$content.='<div class="noitems_message">'.$this->pi_getLL('there_are_no_products_in_your_cart').'</div>';
} else {
	if (mslib_fe::loggedin()) {
		if (isset($cart['user']['first_name']) && isset($cart['user']['street_name'])) {
			$user=$cart['user'];
		} else {
			$billing_address=mslib_fe::getFeUserTTaddressDetails($GLOBALS['TSFE']->fe_user->user['uid']);
			if (is_array($billing_address)) {
				$user=array();
				$user['first_name']=$billing_address['first_name'];
				...
				$user['country']=$billing_address['country'];
			} else {
				$user=array();
				$user['first_name']=$GLOBALS['TSFE']->fe_user->user['first_name'];
				...
				$user['country']=$GLOBALS['TSFE']->fe_user->user['country'];
			}
			if ($this->ms['MODULES']['CHECKOUT_DISPLAY_VAT_ID_INPUT'] && !empty($GLOBALS['TSFE']->fe_user->user['tx_multishop_vat_id'])) {
				$user['tx_multishop_vat_id']=$GLOBALS['TSFE']->fe_user->user['tx_multishop_vat_id'];
			}
// beginn load delivery details
			$sql_tt_address="select * from tt_address where tx_multishop_customer_id='".$GLOBALS["TSFE"]->fe_user->user['uid']."' and tx_multishop_address_type='delivery' and deleted=0 order by uid desc limit 1";
			$qry_tt_address=$GLOBALS['TYPO3_DB']->sql_query($sql_tt_address);
			$rows_tt_address=$GLOBALS['TYPO3_DB']->sql_num_rows($qry_tt_address);
			if ($rows_tt_address) {
				$row_tt_address=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($qry_tt_address);
				$user['delivery_email']=$row_tt_address['email'];
				$user['delivery_company']=$row_tt_address['company'];
				$user['delivery_first_name']=$row_tt_address['first_name'];
				$user['delivery_middle_name']=$row_tt_address['middle_name'];
				$user['delivery_last_name']=$row_tt_address['last_name'];
				$user['delivery_name']=$row_tt_address['name'];
				$user['delivery_telephone']=$row_tt_address['phone'];
				$user['delivery_mobile']=$row_tt_address['mobile'];
				$user['delivery_gender']=$row_tt_address['gender'];
				$user['delivery_street_name']=$row_tt_address['street_name'];
				$user['delivery_address']=$row_tt_address['address'];
				$user['delivery_address_number']=$row_tt_address['address_number'];
				$user['delivery_address_ext']=$row_tt_address['address_ext'];
				$user['delivery_zip']=$row_tt_address['zip'];
				$user['delivery_city']=$row_tt_address['city'];
				$user['delivery_country']=$row_tt_address['country'];
				$user['delivery_state']=$row_tt_address['region'];
			}
// end load delivery details
		}
	} else {
		$user=$cart['user'];
	}
Written on: 29. 07. 2014 [11:48]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
Could be old thread, but will plan time with my colleague to investigate this point once more.
Written on: 27. 10. 2014 [22:07]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
We could not reproduce it on our GIT version. Maybe you are using older version (3.0.4 from TER)?
Written on: 30. 10. 2014 [00:44]