@@ -156,10 +156,13 @@ |
||
| 156 | 156 | <?php endforeach; ?> |
| 157 | 157 | </ul> |
| 158 | 158 | |
| 159 | - <?php else : ?> |
|
| 159 | + <?php else { |
|
| 160 | + : ?> |
|
| 160 | 161 | |
| 161 | 162 | <select class="form-control select-list" |
| 162 | - name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrvarid', $code ) ) ); ?>" |
|
| 163 | + name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrvarid', $code ) ) ); |
|
| 164 | +} |
|
| 165 | +?>" |
|
| 163 | 166 | data-index="<?= $index++; ?>" data-type="<?= $enc->attr( $code ); ?>" > |
| 164 | 167 | |
| 165 | 168 | <?php if( $preselect === false ) : ?> |
@@ -132,8 +132,11 @@ discard block |
||
| 132 | 132 | $this->translate( 'currency', $priceItem->getCurrencyId() ), |
| 133 | 133 | ( $value < 0 ? '−' : '+' ) |
| 134 | 134 | ), $enc::TRUST ); ?> |
| 135 | - <?php else : ?> |
|
| 136 | - <?= $enc->html( $attribute->getName(), $enc::TRUST ); ?> |
|
| 135 | + <?php else { |
|
| 136 | + : ?> |
|
| 137 | + <?= $enc->html( $attribute->getName(), $enc::TRUST ); |
|
| 138 | +} |
|
| 139 | +?> |
|
| 137 | 140 | <?php endif; ?> |
| 138 | 141 | |
| 139 | 142 | </label> |
@@ -142,10 +145,13 @@ discard block |
||
| 142 | 145 | <?php endforeach; ?> |
| 143 | 146 | </ul> |
| 144 | 147 | |
| 145 | - <?php else : ?> |
|
| 148 | + <?php else { |
|
| 149 | + : ?> |
|
| 146 | 150 | |
| 147 | 151 | <input type="hidden" value="1" |
| 148 | - name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrconfid', 'qty', '' ) ) ); ?>" |
|
| 152 | + name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrconfid', 'qty', '' ) ) ); |
|
| 153 | +} |
|
| 154 | +?>" |
|
| 149 | 155 | /> |
| 150 | 156 | |
| 151 | 157 | <select class="form-control select-list" name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrconfid', 'id', '' ) ) ); ?>"> |
@@ -165,8 +171,11 @@ discard block |
||
| 165 | 171 | $this->translate( 'currency', $priceItem->getCurrencyId() ), |
| 166 | 172 | ( $value < 0 ? '−' : '+' ) |
| 167 | 173 | ), $enc::TRUST ); ?> |
| 168 | - <?php else : ?> |
|
| 169 | - <?= $enc->html( $attribute->getName(), $enc::TRUST ); ?> |
|
| 174 | + <?php else { |
|
| 175 | + : ?> |
|
| 176 | + <?= $enc->html( $attribute->getName(), $enc::TRUST ); |
|
| 177 | +} |
|
| 178 | +?> |
|
| 170 | 179 | <?php endif; ?> |
| 171 | 180 | |
| 172 | 181 | </option> |
@@ -141,8 +141,11 @@ |
||
| 141 | 141 | </div> |
| 142 | 142 | </noscript> |
| 143 | 143 | <div class="media-item lazy-image" data-src="<?= $mediaUrl; ?>"></div> |
| 144 | - <?php else : ?> |
|
| 145 | - <div class="media-item" data-src="<?= $mediaUrl; ?>"></div> |
|
| 144 | + <?php else { |
|
| 145 | + : ?> |
|
| 146 | + <div class="media-item" data-src="<?= $mediaUrl; |
|
| 147 | +} |
|
| 148 | +?>"></div> |
|
| 146 | 149 | <?php endif; ?> |
| 147 | 150 | <?php endforeach; ?> |
| 148 | 151 | </div> |
@@ -128,8 +128,7 @@ discard block |
||
| 128 | 128 | $priceRebate = $price->getRebate(); |
| 129 | 129 | $priceTaxflag = $price->getTaxFlag(); |
| 130 | 130 | $priceCurrency = $this->translate( 'currency', $price->getCurrencyId() ); |
| 131 | -} |
|
| 132 | -else |
|
| 131 | +} else |
|
| 133 | 132 | { |
| 134 | 133 | $priceValue = '0.00'; |
| 135 | 134 | $priceRebate = '0.00'; |
@@ -285,9 +284,12 @@ discard block |
||
| 285 | 284 | <?php if( $product->getQuantity() > 1 ) : ?> |
| 286 | 285 | <?php $basketParams = array( 'b_action' => 'edit', 'b_position' => $position, 'b_quantity' => $product->getQuantity() - 1 ); ?> |
| 287 | 286 | <a class="minibutton change" href="<?= $enc->attr( $this->url( $basketTarget, $basketController, $basketAction, $basketParams, [], $basketConfig ) ); ?>">−</a> |
| 288 | - <?php else : ?> |
|
| 287 | + <?php else { |
|
| 288 | + : ?> |
|
| 289 | 289 | |
| 290 | - <?php endif; ?> |
|
| 290 | + <?php endif; |
|
| 291 | +} |
|
| 292 | +?> |
|
| 291 | 293 | |
| 292 | 294 | <input class="value" type="text" |
| 293 | 295 | name="<?= $enc->attr( $this->formparam( array( 'b_prod', $position, 'quantity' ) ) ); ?>" |
@@ -301,8 +303,11 @@ discard block |
||
| 301 | 303 | <?php $basketParams = array( 'b_action' => 'edit', 'b_position' => $position, 'b_quantity' => $product->getQuantity() + 1 ); ?> |
| 302 | 304 | <a class="minibutton change" href="<?= $enc->attr( $this->url( $basketTarget, $basketController, $basketAction, $basketParams, [], $basketConfig ) ); ?>">+</a> |
| 303 | 305 | |
| 304 | - <?php else : ?> |
|
| 305 | - <?= $enc->html( $product->getQuantity() ); ?> |
|
| 306 | + <?php else { |
|
| 307 | + : ?> |
|
| 308 | + <?= $enc->html( $product->getQuantity() ); |
|
| 309 | +} |
|
| 310 | +?> |
|
| 306 | 311 | <?php endif; ?> |
| 307 | 312 | </td> |
| 308 | 313 | |
@@ -399,8 +404,11 @@ discard block |
||
| 399 | 404 | <tr class="tax"> |
| 400 | 405 | <?php if( $priceItem->getTaxFlag() ) : ?> |
| 401 | 406 | <td colspan="3"><?= $enc->html( sprintf( $this->translate( 'client', 'Incl. %1$s%% VAT' ), $this->number( $taxRate ) ) ); ?></td> |
| 402 | - <?php else : ?> |
|
| 403 | - <td colspan="3"><?= $enc->html( sprintf( $this->translate( 'client', '+ %1$s%% VAT' ), $this->number( $taxRate ) ) ); ?></td> |
|
| 407 | + <?php else { |
|
| 408 | + : ?> |
|
| 409 | + <td colspan="3"><?= $enc->html( sprintf( $this->translate( 'client', '+ %1$s%% VAT' ), $this->number( $taxRate ) ) ); |
|
| 410 | +} |
|
| 411 | +?></td> |
|
| 404 | 412 | <?php endif; ?> |
| 405 | 413 | <td class="price"><?= $enc->html( sprintf( $priceFormat, $this->number( $taxValue ), $priceCurrency ) ); ?></td> |
| 406 | 414 | <?php if( $modify ) : ?> |
@@ -38,8 +38,11 @@ |
||
| 38 | 38 | <span class="name"> |
| 39 | 39 | <?php if( $attribute->getName() != '' ) : ?> |
| 40 | 40 | <?= $enc->html( $attribute->getName() ); ?> |
| 41 | - <?php else : ?> |
|
| 42 | - <?= $enc->html( $this->translate( 'client/code', $attribute->getCode() ) ); ?> |
|
| 41 | + <?php else { |
|
| 42 | + : ?> |
|
| 43 | + <?= $enc->html( $this->translate( 'client/code', $attribute->getCode() ) ); |
|
| 44 | +} |
|
| 45 | +?> |
|
| 43 | 46 | <?php endif; ?> |
| 44 | 47 | </span> |
| 45 | 48 | |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | <?php endforeach; ?> |
| 84 | 84 | <?php foreach( $product->getAttributeItems( 'hidden' ) as $attribute ) : ?> |
| 85 | 85 | <?php if( $unhide && $attribute->getCode() === 'download' ) : ?> |
| 86 | -- <?php echo strip_tags( $attribute->getName()); ?>: <?= $this->url( $dlTarget, $dlController, $dlAction, array( 'dl_id' => $attribute->getId() ), [], $dlConfig ); ?> |
|
| 86 | +- <?php echo strip_tags( $attribute->getName() ); ?>: <?= $this->url( $dlTarget, $dlController, $dlAction, array( 'dl_id' => $attribute->getId() ), [], $dlConfig ); ?> |
|
| 87 | 87 | |
| 88 | 88 | <?php endif; ?> |
| 89 | 89 | <?php endforeach; ?> |
@@ -18,9 +18,12 @@ |
||
| 18 | 18 | $dlAction = $this->config( 'client/html/account/download/url/action', 'download' ); |
| 19 | 19 | $dlConfig = $this->config( 'client/html/account/download/url/config', array( 'absoluteUri' => 1 ) ); |
| 20 | 20 | |
| 21 | -try { |
|
| 21 | +try |
|
| 22 | +{ |
|
| 22 | 23 | $products = $this->summaryBasket->getProducts(); |
| 23 | -} catch( Exception $e ) { |
|
| 24 | +} |
|
| 25 | +catch( Exception $e ) |
|
| 26 | +{ |
|
| 24 | 27 | $products = []; |
| 25 | 28 | } |
| 26 | 29 | |
@@ -56,8 +56,11 @@ |
||
| 56 | 56 | $this->config( 'client/html/email/common/summary/address/html', 'common/summary/address-standard' ), |
| 57 | 57 | array( 'address' => $addresses['delivery'], 'type' => 'delivery' ) |
| 58 | 58 | ); ?> |
| 59 | - <?php else : ?> |
|
| 60 | - <?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST ); ?> |
|
| 59 | + <?php else { |
|
| 60 | + : ?> |
|
| 61 | + <?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST ); |
|
| 62 | +} |
|
| 63 | +?> |
|
| 61 | 64 | <?php endif; ?> |
| 62 | 65 | </div> |
| 63 | 66 | </div> |
@@ -20,6 +20,6 @@ |
||
| 20 | 20 | <?= wordwrap( strip_tags( $this->translate( 'client', 'If you have any questions, please reply to this e-mail' ) ) ); ?> |
| 21 | 21 | |
| 22 | 22 | |
| 23 | -<?= wordwrap( strip_tags( $this->translate( 'client', 'All orders are subject to our terms and conditions.' ) ) ); ?> |
|
| 23 | +<?= wordwrap( strip_tags( $this->translate( 'client', 'All orders are subject to our terms and conditions.' ) ) ); ?> |
|
| 24 | 24 | <?php $this->block()->stop(); ?> |
| 25 | 25 | <?= $this->block()->get( 'email/delivery/text' ); ?> |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | </p> |
| 62 | 62 | |
| 63 | 63 | <p class="email-common-legal content-block"> |
| 64 | - <?= nl2br( $enc->html( $this->translate( 'client', 'All orders are subject to our terms and conditions.' ), $enc::TRUST ) ); ?> |
|
| 64 | + <?= nl2br( $enc->html( $this->translate( 'client', 'All orders are subject to our terms and conditions.' ), $enc::TRUST ) ); ?> |
|
| 65 | 65 | </p> |
| 66 | 66 | |
| 67 | 67 | </div> |