@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | <span class="product-name"><?= $enc->html( $orderProduct->getName() ) ?></span> |
296 | 296 | <span class="product-attr"> |
297 | 297 | <?php foreach( $orderProduct->getAttributeItems() as $attrItem ) : ?> |
298 | - <?php if ($attrItem->getCode() !== 'upload') : ?> |
|
298 | + <?php if( $attrItem->getCode() !== 'upload' ) : ?> |
|
299 | 299 | <span class="attr-code"><?= $enc->html( $attrItem->getCode() ) ?></span> |
300 | 300 | <span class="attr-value"> |
301 | 301 | <?php if( $attrItem->getQuantity() > 1 ) : ?> |
@@ -334,15 +334,15 @@ discard block |
||
334 | 334 | </div> |
335 | 335 | </div> |
336 | 336 | <div class="row"> |
337 | - <?php foreach( $orderProduct->getAttributeItems('custom') as $attrItem ) : ?> |
|
337 | + <?php foreach( $orderProduct->getAttributeItems( 'custom' ) as $attrItem ) : ?> |
|
338 | 338 | <?php if( $attrItem->getCode() === 'upload' ) : ?> |
339 | 339 | <label class="col-5 col-sm-12 form-control-label"><?= $attrItem->getName() ?></label> |
340 | 340 | <div class="col-7 col-sm-12"> |
341 | 341 | <div class="upload-images"> |
342 | - <?php foreach ($attrItem->getValue() as $upload) : ?> |
|
342 | + <?php foreach( $attrItem->getValue() as $upload ) : ?> |
|
343 | 343 | <span class="upload-image"> |
344 | - <img src="<?= $enc->attr( $this->content($upload) ) ?>" alt="upload-image" /> |
|
345 | - <a href="<?= $enc->attr( $this->content($upload) ) ?>" target="_blank">Download</a> |
|
344 | + <img src="<?= $enc->attr( $this->content( $upload ) ) ?>" alt="upload-image" /> |
|
345 | + <a href="<?= $enc->attr( $this->content( $upload ) ) ?>" target="_blank">Download</a> |
|
346 | 346 | </span> |
347 | 347 | <?php endforeach ?> |
348 | 348 | </div> |