@@ -59,7 +59,10 @@ |
||
| 59 | 59 | <?php $current = $params; if( is_array( $current['f_optid'] ) ) { unset( $current['f_optid'][$key] ); } ?> |
| 60 | 60 | <?php elseif( isset( $oneIds[$attrType] ) && ( $key = array_search( $id, (array) $oneIds[$attrType] ) ) !== false ) : ?> |
| 61 | 61 | <?php $current = $params; if( is_array( $current['f_oneid'][$attrType] ) ) { unset( $current['f_oneid'][$attrType][$key] ); } ?> |
| 62 | - <?php else : continue; ?> |
|
| 62 | + <?php else { |
|
| 63 | + : continue; |
|
| 64 | +} |
|
| 65 | +?> |
|
| 63 | 66 | <?php endif; ?> |
| 64 | 67 | <li class="attr-item"> |
| 65 | 68 | <a class="attr-name" href="<?= $enc->attr( $this->url( $listTarget, $listController, $listAction, $attribute->get( 'params', [] ), [], $listConfig ) ); ?>"> |
@@ -155,7 +155,8 @@ discard block |
||
| 155 | 155 | |
| 156 | 156 | </ul> |
| 157 | 157 | |
| 158 | - <?php else : ?> |
|
| 158 | + <?php else { |
|
| 159 | + : ?> |
|
| 159 | 160 | |
| 160 | 161 | <input type="hidden" value="1" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrconfid', 'qty', ''] ) ) ?>"> |
| 161 | 162 | <select id="select-<?= $enc->attr( $this->productItem->getId() . '-' . $code ) ?>" class="form-control select-list" |
@@ -205,7 +206,9 @@ discard block |
||
| 205 | 206 | value="<?= $enc->attr( $price->getValue() ) ?>" |
| 206 | 207 | <?php endif ?> |
| 207 | 208 | > |
| 208 | - <?php break; case 'date': ?> |
|
| 209 | + <?php break; |
|
| 210 | +} |
|
| 211 | +case 'date': ?> |
|
| 209 | 212 | <input id="select-<?= $enc->attr( $this->productItem->getId() . '-' . $key ) ?>" class="form-control" type="date" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrcustid', $id] ) ) ?>"> |
| 210 | 213 | <?php break; default: ?> |
| 211 | 214 | <input id="select-<?= $enc->attr( $this->productItem->getId() . '-' . $key ) ?>" class="form-control" type="text" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrcustid', $id] ) ) ?>"> |
@@ -268,14 +268,12 @@ discard block |
||
| 268 | 268 | $orderItem = $orderCntl->add( $basket->getId(), ['order.type' => 'web'] )->store(); |
| 269 | 269 | |
| 270 | 270 | $context->getSession()->set( 'aimeos/orderid', $orderItem->getId() ); |
| 271 | - } |
|
| 272 | - elseif( $view->param( 'cp_payment', null ) !== null ) |
|
| 271 | + } elseif( $view->param( 'cp_payment', null ) !== null ) |
|
| 273 | 272 | { |
| 274 | 273 | $parts = \Aimeos\MShop\Order\Item\Base\Base::PARTS_ALL; |
| 275 | 274 | $orderItem = $orderCntl->get( $context->getSession()->get( 'aimeos/orderid' ), false ); |
| 276 | 275 | $basket = $basketCntl->load( $orderItem->getBaseId(), $parts, false ); |
| 277 | - } |
|
| 278 | - else |
|
| 276 | + } else |
|
| 279 | 277 | { |
| 280 | 278 | return; |
| 281 | 279 | } |
@@ -288,8 +286,7 @@ discard block |
||
| 288 | 286 | $orderCntl->save( $orderItem->setPaymentStatus( \Aimeos\MShop\Order\Item\Base::PAY_AUTHORIZED ) ); |
| 289 | 287 | $view->standardUrlNext = $this->getUrlConfirm( $view, $args, ['absoluteUri' => true] ); |
| 290 | 288 | $view->standardMethod = 'POST'; |
| 291 | - } |
|
| 292 | - else // no payment service available |
|
| 289 | + } else // no payment service available |
|
| 293 | 290 | { |
| 294 | 291 | $view = $this->addFormData( $view, $form ); |
| 295 | 292 | } |