| @@ -24,7 +24,7 @@ discard block | ||
| 24 | 24 | $this->pdf->setFont( 'dejavusans', '', 10 ); | 
| 25 | 25 | |
| 26 | 26 | $vmargin = [ | 
| 27 | - 'h1' => [ // HTML tag | |
| 27 | + 'h1' => [// HTML tag | |
| 28 | 28 | 0 => ['h' => 1.5, 'n' => 0], // space before = h * n | 
| 29 | 29 | 1 => ['h' => 1.5, 'n' => 3] // space after = h * n | 
| 30 | 30 | ], | 
| @@ -97,14 +97,14 @@ discard block | ||
| 97 | 97 | $data = [ | 
| 98 | 98 | 'BCD', // required | 
| 99 | 99 | '002', // Version 2 (required, 1=UTF-8, 2=ISO 8859-1, 3=ISO 8859-2, 4=ISO 8859-4, 5=ISO 8859-5, 6=ISO 8859-7, 7=ISO 8859-10, 8=ISO 8859-15) | 
| 100 | - 1, // UTF-8 (required) | |
| 100 | + 1, // UTF-8 (required) | |
| 101 | 101 | 'SCT', // SEPA Credit Transfer (required) | 
| 102 | - '', // BIC (optional) | |
| 103 | - '', // Name of recipient (required, name of your company) | |
| 104 | - '', // IBAN (required) | |
| 105 | - $this->summaryBasket->getPrice()->getCurrencyId() . $total, // Currency and value (required) | |
| 106 | - '', // Purpose (optional, 4 char code, https://wiki.windata.de/index.php?title=Purpose-SEPA-Codes) | |
| 107 | - '', // ISO 11649 RF Creditor Reference (optional, 35 characters structured code) | |
| 102 | + '', // BIC (optional) | |
| 103 | + '', // Name of recipient (required, name of your company) | |
| 104 | + '', // IBAN (required) | |
| 105 | + $this->summaryBasket->getPrice()->getCurrencyId() . $total, // Currency and value (required) | |
| 106 | + '', // Purpose (optional, 4 char code, https://wiki.windata.de/index.php?title=Purpose-SEPA-Codes) | |
| 107 | + '', // ISO 11649 RF Creditor Reference (optional, 35 characters structured code) | |
| 108 | 108 | $this->translate( 'client', 'Order' ) . ' ' . $this->extOrderItem->getOrderNumber(), // Reference of order and other data (optional, max. 140 characters) | 
| 109 | 109 | $this->extOrderBaseItem->getCustomerReference(), // Notice to the customer (optional, max. 70 characters) | 
| 110 | 110 | ]; | 
| @@ -179,19 +179,19 @@ discard block | ||
| 179 | 179 | <?php if( !empty( $orderItem->getBaseItem()->getAddress( 'payment' ) ) ) : ?> | 
| 180 | 180 | <?= $this->partial( | 
| 181 | 181 | /** client/html/account/history/summary/address | 
| 182 | - * Location of the address partial template for the account history component | |
| 183 | - * | |
| 184 | - * To configure an alternative template for the address partial, you | |
| 185 | - * have to configure its path relative to the template directory | |
| 186 | - * (usually client/html/templates/). It's then used to display the | |
| 187 | - * payment or delivery address block in the account history component. | |
| 188 | - * | |
| 189 | - * @param string Relative path to the address partial | |
| 190 | - * @since 2017.01 | |
| 191 | - * @category Developer | |
| 192 | - * @see client/html/account/history/summary/detail | |
| 193 | - * @see client/html/account/history/summary/service | |
| 194 | - */ | |
| 182 | + * Location of the address partial template for the account history component | |
| 183 | + * | |
| 184 | + * To configure an alternative template for the address partial, you | |
| 185 | + * have to configure its path relative to the template directory | |
| 186 | + * (usually client/html/templates/). It's then used to display the | |
| 187 | + * payment or delivery address block in the account history component. | |
| 188 | + * | |
| 189 | + * @param string Relative path to the address partial | |
| 190 | + * @since 2017.01 | |
| 191 | + * @category Developer | |
| 192 | + * @see client/html/account/history/summary/detail | |
| 193 | + * @see client/html/account/history/summary/service | |
| 194 | + */ | |
| 195 | 195 | $this->config( 'client/html/account/history/summary/address', 'common/summary/address' ), | 
| 196 | 196 | array( 'addresses' => $orderItem->getBaseItem()->getAddress( 'payment' ), 'type' => 'payment' ) | 
| 197 | 197 | ) ?> | 
| @@ -228,19 +228,19 @@ discard block | ||
| 228 | 228 | <?php if( !empty( $orderItem->getBaseItem()->getService( 'delivery' ) ) ) : ?> | 
| 229 | 229 | <?= $this->partial( | 
| 230 | 230 | /** client/html/account/history/summary/service | 
| 231 | - * Location of the service partial template for the account history component | |
| 232 | - * | |
| 233 | - * To configure an alternative template for the service partial, you | |
| 234 | - * have to configure its path relative to the template directory | |
| 235 | - * (usually client/html/templates/). It's then used to display the | |
| 236 | - * payment or delivery service block in the account history component | |
| 237 | - * | |
| 238 | - * @param string Relative path to the service partial | |
| 239 | - * @since 2017.01 | |
| 240 | - * @category Developer | |
| 241 | - * @see client/html/account/history/summary/address | |
| 242 | - * @see client/html/account/history/summary/detail | |
| 243 | - */ | |
| 231 | + * Location of the service partial template for the account history component | |
| 232 | + * | |
| 233 | + * To configure an alternative template for the service partial, you | |
| 234 | + * have to configure its path relative to the template directory | |
| 235 | + * (usually client/html/templates/). It's then used to display the | |
| 236 | + * payment or delivery service block in the account history component | |
| 237 | + * | |
| 238 | + * @param string Relative path to the service partial | |
| 239 | + * @since 2017.01 | |
| 240 | + * @category Developer | |
| 241 | + * @see client/html/account/history/summary/address | |
| 242 | + * @see client/html/account/history/summary/detail | |
| 243 | + */ | |
| 244 | 244 | $this->config( 'client/html/account/history/summary/service', 'common/summary/service' ), | 
| 245 | 245 | array( 'service' => $orderItem->getBaseItem()->getService( 'delivery' ), 'type' => 'delivery' ) | 
| 246 | 246 | ) ?> | 
| @@ -303,19 +303,19 @@ discard block | ||
| 303 | 303 | <div class="basket col-sm-12"> | 
| 304 | 304 | <?= $this->partial( | 
| 305 | 305 | /** client/html/account/history/summary/detail | 
| 306 | - * Location of the detail partial template for the account history component | |
| 307 | - * | |
| 308 | - * To configure an alternative template for the detail partial, you | |
| 309 | - * have to configure its path relative to the template directory | |
| 310 | - * (usually client/html/templates/). It's then used to display the | |
| 311 | - * product detail block in the account history component. | |
| 312 | - * | |
| 313 | - * @param string Relative path to the detail partial | |
| 314 | - * @since 2017.01 | |
| 315 | - * @category Developer | |
| 316 | - * @see client/html/account/history/summary/address | |
| 317 | - * @see client/html/account/history/summary/service | |
| 318 | - */ | |
| 306 | + * Location of the detail partial template for the account history component | |
| 307 | + * | |
| 308 | + * To configure an alternative template for the detail partial, you | |
| 309 | + * have to configure its path relative to the template directory | |
| 310 | + * (usually client/html/templates/). It's then used to display the | |
| 311 | + * product detail block in the account history component. | |
| 312 | + * | |
| 313 | + * @param string Relative path to the detail partial | |
| 314 | + * @since 2017.01 | |
| 315 | + * @category Developer | |
| 316 | + * @see client/html/account/history/summary/address | |
| 317 | + * @see client/html/account/history/summary/service | |
| 318 | + */ | |
| 319 | 319 | $this->config( 'client/html/account/history/summary/detail', 'common/summary/detail' ), | 
| 320 | 320 | array( | 
| 321 | 321 | 'summaryBasket' => $orderItem->getBaseItem(), | 
| @@ -180,19 +180,19 @@ discard block | ||
| 180 | 180 | <?php if( !empty( $item->getBaseItem()->getAddress( 'payment' ) ) ) : ?> | 
| 181 | 181 | <?= $this->partial( | 
| 182 | 182 | /** client/html/account/subscription/summary/address | 
| 183 | - * Location of the address partial template for the account subscription component | |
| 184 | - * | |
| 185 | - * To configure an alternative template for the address partial, you | |
| 186 | - * have to configure its path relative to the template directory | |
| 187 | - * (usually client/html/templates/). It's then used to display the | |
| 188 | - * payment or delivery address block in the account subscription component. | |
| 189 | - * | |
| 190 | - * @param string Relative path to the address partial | |
| 191 | - * @since 2018.04 | |
| 192 | - * @category Developer | |
| 193 | - * @see client/html/account/subscription/summary/detail | |
| 194 | - * @see client/html/account/subscription/summary/service | |
| 195 | - */ | |
| 183 | + * Location of the address partial template for the account subscription component | |
| 184 | + * | |
| 185 | + * To configure an alternative template for the address partial, you | |
| 186 | + * have to configure its path relative to the template directory | |
| 187 | + * (usually client/html/templates/). It's then used to display the | |
| 188 | + * payment or delivery address block in the account subscription component. | |
| 189 | + * | |
| 190 | + * @param string Relative path to the address partial | |
| 191 | + * @since 2018.04 | |
| 192 | + * @category Developer | |
| 193 | + * @see client/html/account/subscription/summary/detail | |
| 194 | + * @see client/html/account/subscription/summary/service | |
| 195 | + */ | |
| 196 | 196 | $this->config( 'client/html/account/subscription/summary/address', 'common/summary/address' ), | 
| 197 | 197 | array( 'addresses' => $item->getBaseItem()->getAddress( 'payment' ), 'type' => 'payment' ) | 
| 198 | 198 | ) ?> | 
| @@ -227,19 +227,19 @@ discard block | ||
| 227 | 227 | <div class="basket"> | 
| 228 | 228 | <?= $this->partial( | 
| 229 | 229 | /** client/html/account/subscription/summary/detail | 
| 230 | - * Location of the detail partial template for the account subscription component | |
| 231 | - * | |
| 232 | - * To configure an alternative template for the detail partial, you | |
| 233 | - * have to configure its path relative to the template directory | |
| 234 | - * (usually client/html/templates/). It's then used to display the | |
| 235 | - * product detail block in the account subscription component. | |
| 236 | - * | |
| 237 | - * @param string Relative path to the detail partial | |
| 238 | - * @since 2018.04 | |
| 239 | - * @category Developer | |
| 240 | - * @see client/html/account/subscription/summary/address | |
| 241 | - * @see client/html/account/subscription/summary/service | |
| 242 | - */ | |
| 230 | + * Location of the detail partial template for the account subscription component | |
| 231 | + * | |
| 232 | + * To configure an alternative template for the detail partial, you | |
| 233 | + * have to configure its path relative to the template directory | |
| 234 | + * (usually client/html/templates/). It's then used to display the | |
| 235 | + * product detail block in the account subscription component. | |
| 236 | + * | |
| 237 | + * @param string Relative path to the detail partial | |
| 238 | + * @since 2018.04 | |
| 239 | + * @category Developer | |
| 240 | + * @see client/html/account/subscription/summary/address | |
| 241 | + * @see client/html/account/subscription/summary/service | |
| 242 | + */ | |
| 243 | 243 | $this->config( 'client/html/account/subscription/summary/detail', 'common/summary/detail' ), | 
| 244 | 244 | array( | 
| 245 | 245 | 'summaryBasket' => $item->getBaseItem(), | 
| @@ -93,7 +93,7 @@ | ||
| 93 | 93 | |
| 94 | 94 | protected function getSubscription() | 
| 95 | 95 |  	{ | 
| 96 | - $manager = \Aimeos\MShop::create( $this->context, 'subscription' ); | |
| 96 | + $manager = \Aimeos\MShop::create( $this->context, 'subscription' ); | |
| 97 | 97 | $filter = $manager->filter()->add( 'subscription.dateend', '==', '2010-01-01' ); | 
| 98 | 98 | |
| 99 | 99 | return $manager->search( $filter )->first( new \Exception( 'No subscription item found' ) ); |