@@ -1,4 +1,6 @@ discard block |
||
| 1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
| 1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
| 2 | + exit; |
|
| 3 | +} |
|
| 2 | 4 | if( !$account_origin ) : ?> |
| 3 | 5 | <div id="wps_cart_error_container" class="wps-alert-error"></div> |
| 4 | 6 | <?php endif; ?> |
@@ -37,8 +39,9 @@ discard block |
||
| 37 | 39 | if ( count($product_attribute_order_detail) > 0 && is_array($product_attribute_order_detail) ) { |
| 38 | 40 | foreach ( $product_attribute_order_detail as $product_attr_group_id => $product_attr_group_detail) { |
| 39 | 41 | foreach ( $product_attr_group_detail['attribut'] as $position => $attribute_def) { |
| 40 | - if ( !empty($attribute_def->code) ) |
|
| 41 | - $output_order[$attribute_def->code] = $position; |
|
| 42 | + if ( !empty($attribute_def->code) ) { |
|
| 43 | + $output_order[$attribute_def->code] = $position; |
|
| 44 | + } |
|
| 42 | 45 | } |
| 43 | 46 | } |
| 44 | 47 | } |