@@ -250,9 +250,12 @@ discard block |
||
| 250 | 250 | <?php if( $product->getQuantity() > 1 ) : ?> |
| 251 | 251 | <?php $basketParams = array( 'b_action' => 'edit', 'b_position' => $position, 'b_quantity' => $product->getQuantity() - 1 ); ?> |
| 252 | 252 | <a class="minibutton change" href="<?= $enc->attr( $this->link( 'client/html/basket/standard/url', $basketParams ) ); ?>">−</a> |
| 253 | - <?php else : ?> |
|
| 253 | + <?php else { |
|
| 254 | + : ?> |
|
| 254 | 255 | |
| 255 | - <?php endif; ?> |
|
| 256 | + <?php endif; |
|
| 257 | +} |
|
| 258 | +?> |
|
| 256 | 259 | |
| 257 | 260 | <input class="value" type="text" |
| 258 | 261 | name="<?= $enc->attr( $this->formparam( array( 'b_prod', $position, 'quantity' ) ) ); ?>" |
@@ -266,8 +269,11 @@ discard block |
||
| 266 | 269 | <?php $basketParams = array( 'b_action' => 'edit', 'b_position' => $position, 'b_quantity' => $product->getQuantity() + 1 ); ?> |
| 267 | 270 | <a class="minibutton change" href="<?= $enc->attr( $this->link( 'client/html/basket/standard/url', $basketParams ) ); ?>">+</a> |
| 268 | 271 | |
| 269 | - <?php else : ?> |
|
| 270 | - <?= $enc->html( $product->getQuantity() ); ?> |
|
| 272 | + <?php else { |
|
| 273 | + : ?> |
|
| 274 | + <?= $enc->html( $product->getQuantity() ); |
|
| 275 | +} |
|
| 276 | +?> |
|
| 271 | 277 | <?php endif; ?> |
| 272 | 278 | </td> |
| 273 | 279 | |