@@ -187,8 +187,7 @@ |
||
| 187 | 187 | (string) $view->param( 'b_supplier', '' ), |
| 188 | 188 | $view->param( 'b_siteid' ) |
| 189 | 189 | ); |
| 190 | - } |
|
| 191 | - else |
|
| 190 | + } else |
|
| 192 | 191 | { |
| 193 | 192 | foreach( (array) $view->param( 'b_prod', [] ) as $values ) |
| 194 | 193 | { |
@@ -320,13 +320,11 @@ |
||
| 320 | 320 | { |
| 321 | 321 | $item = $item->set( 'checked', true ); |
| 322 | 322 | unset( $attrparams['f_attrid'][$key] ); |
| 323 | - } |
|
| 324 | - elseif( ( $key = array_search( $id, $optIds ) ) !== false ) |
|
| 323 | + } elseif( ( $key = array_search( $id, $optIds ) ) !== false ) |
|
| 325 | 324 | { |
| 326 | 325 | $item = $item->set( 'checked', true ); |
| 327 | 326 | unset( $attrparams['f_optid'][$key] ); |
| 328 | - } |
|
| 329 | - elseif( isset( $oneIds[$type] ) && ( $key = array_search( $id, (array) $oneIds[$type] ) ) !== false ) |
|
| 327 | + } elseif( isset( $oneIds[$type] ) && ( $key = array_search( $id, (array) $oneIds[$type] ) ) !== false ) |
|
| 330 | 328 | { |
| 331 | 329 | $item = $item->set( 'checked', true ); |
| 332 | 330 | unset( $attrparams['f_oneid'][$key] ); |
@@ -58,7 +58,10 @@ |
||
| 58 | 58 | <?php $current = $params; if( is_array( $current['f_optid'] ) ) { unset( $current['f_optid'][$key] ); } ?> |
| 59 | 59 | <?php elseif( isset( $oneIds[$attrType] ) && ( $key = array_search( $id, (array) $oneIds[$attrType] ) ) !== false ) : ?> |
| 60 | 60 | <?php $current = $params; if( is_array( $current['f_oneid'][$attrType] ) ) { unset( $current['f_oneid'][$attrType][$key] ); } ?> |
| 61 | - <?php else : continue; ?> |
|
| 61 | + <?php else { |
|
| 62 | + : continue; |
|
| 63 | +} |
|
| 64 | +?> |
|
| 62 | 65 | <?php endif; ?> |
| 63 | 66 | |
| 64 | 67 | <a class="minibutton close" href="<?= $enc->attr( $this->link( $linkKey, $attribute->get( 'params', [] ) ) ); ?>"> |
@@ -22,11 +22,14 @@ |
||
| 22 | 22 | <?php foreach( $this->voucher as $code ) : ?> |
| 23 | 23 | - <?= $code ?> |
| 24 | 24 | <?php endforeach ?> |
| 25 | -<?php else : ?> |
|
| 25 | +<?php else { |
|
| 26 | + : ?> |
|
| 26 | 27 | <?= wordwrap( strip_tags( $this->translate( 'client', 'Your voucher: ' ) . $this->voucher ) ) ?> |
| 27 | 28 | <?php endif ?> |
| 28 | 29 | |
| 29 | -<?php $price = $this->orderProductItem->getPrice(); $priceCurrency = $this->translate( 'currency', $price->getCurrencyId() ) ?> |
|
| 30 | +<?php $price = $this->orderProductItem->getPrice(); |
|
| 31 | +} |
|
| 32 | +$priceCurrency = $this->translate( 'currency', $price->getCurrencyId() ) ?> |
|
| 30 | 33 | <?php $value = sprintf( $priceFormat, $this->number( $price->getValue() + $price->getRebate(), $price->getPrecision() ), $priceCurrency ) ?> |
| 31 | 34 | <?= wordwrap( strip_tags( sprintf( $this->translate( 'client', 'The value of your voucher is %1$s', 'The value of your vouchers are %1$s', count( (array) $this->voucher ) ), $value ) ) ) ?> |
| 32 | 35 | |