encoder(); /** client/html/common/address/delivery/disable-new * Disables the billing address form for a new address * * Normally, customers are allowed to enter new delivery addresses in the * checkout process which are stored in the current order. For registered * customers they are also added to the list of delivery addresses in their * profile. * * You can disable the address form for the new delivery address by this setting * if it shouldn't be allowed to add another delivery address. * * @param boolean True to disable the "new delivery address" form, false to allow a new address * @since 2014.03 * @category Developer * @category User * @see client/html/common/address/billing/disable-new */ $disablenew = $this->config( 'client/html/common/address/delivery/disable-new', false ); $target = $this->config( 'client/html/checkout/standard/url/target' ); $controller = $this->config( 'client/html/checkout/standard/url/controller', 'checkout' ); $action = $this->config( 'client/html/checkout/standard/url/action', 'index' ); $config = $this->config( 'client/html/checkout/standard/url/config', array() ); try { $addrArray = $this->standardBasket->getAddress( MShop_Order_Item_Base_Address_Abstract::TYPE_DELIVERY )->toArray(); } catch( Exception $e ) { $addrArray = array(); } $deliveryDefault = ( $addrArray === array() ? -1 : 'null' ); $deliveryOption = $this->param( 'ca_deliveryoption', ( isset( $addrArray['order.base.address.addressid'] ) && $addrArray['order.base.address.addressid'] != '' ? $addrArray['order.base.address.addressid'] : $deliveryDefault ) ); $deliverySalutations = $this->get( 'deliverySalutations', array() ); $deliveryCountries = $this->get( 'addressCountries', array() ); $deliveryStates = $this->get( 'addressStates', array() ); $deliveryLanguages = $this->get( 'addressLanguages', array() ); $deliveryCssAll = array(); foreach( $this->get( 'deliveryMandatory', array() ) as $name ) { $deliveryCssAll[$name][] = 'mandatory'; } foreach( $this->get( 'deliveryOptional', array() ) as $name ) { $deliveryCssAll[$name][] = 'optional'; } foreach( $this->get( 'deliveryHidden', array() ) as $name ) { $deliveryCssAll[$name][] = 'hidden'; } ?>