NoteStar 5 年 前
コミット
051f54f70b

+ 16 - 1
addons/fecmall/furnilife_theme/app/appfront/theme/furnilife/catalog/product/index/options.php

@@ -6,6 +6,7 @@
  * @copyright Copyright (c) 2016 FecShop Software LLC
  * @license http://www.fecshop.com/license/
  */
+
 ?>
 <?php $options_attr_arr = $parentThis['options']; ?>
 
@@ -13,7 +14,21 @@
 <?php if(is_array($options_attr_arr) && !empty($options_attr_arr)):  ?>
     <?php foreach($options_attr_arr as $one):   ?>
         <div class="pg">
-            <div class="label size-label"><?= Yii::$service->page->translate->__(ucfirst($one['label']).':'); ?></div>
+            <div class="label size-label"><?= Yii::$service->page->translate->__(ucfirst($one['label']).':'); ?>
+
+                    <?php       if(is_array($one['value']) && !empty($one['value'])):  ?>
+                        <?php		    foreach($one['value'] as $info): ?>
+                            <?php		        $attr_val = $info['attr_val']; ?>
+                            <?php		        $active   = $info['active']; ?>
+
+                            <?php			    if($active == 'current'): ?>
+                             <?= Yii::$service->page->translate->__($attr_val); ?>
+                            <?php			    endif; ?>
+                        <?php		    endforeach; ?>
+                    <?php		endif; ?>
+
+
+            </div>
             <div class="chose_size rg">
                 <ul>
                     <?php       if(is_array($one['value']) && !empty($one['value'])):  ?>

+ 15 - 1
addons/fecmall/furnilife_theme/app/apphtml5/theme/furnilife/catalog/product/index/options.php

@@ -12,7 +12,21 @@
 <?php if(is_array($options_attr_arr) && !empty($options_attr_arr)):  ?>
 	<?php foreach($options_attr_arr as $one):   ?>
    	<div class="pg">
-		<div class="label size-label"><?= Yii::$service->page->translate->__(ucfirst($one['label']).':'); ?></div>
+		<div class="label size-label" style="line-height: 20px"><?= Yii::$service->page->translate->__(ucfirst($one['label']).':'); ?>
+
+            <?php       if(is_array($one['value']) && !empty($one['value'])):  ?>
+                <?php		    foreach($one['value'] as $info): ?>
+                    <?php		        $attr_val = $info['attr_val']; ?>
+                    <?php		        $active   = $info['active']; ?>
+
+                    <?php			    if($active == 'current'): ?>
+                        <?= Yii::$service->page->translate->__($attr_val); ?>
+                    <?php			    endif; ?>
+                <?php		    endforeach; ?>
+            <?php		endif; ?>
+
+
+        </div>
 		<div class="chose_size rg">
 			<ul>
 <?php       if(is_array($one['value']) && !empty($one['value'])):  ?>