|
@@ -47,6 +47,17 @@
|
|
|
];
|
|
|
?>
|
|
|
<?= Yii::$service->page->widget->render('product/image',$imageParam); ?>
|
|
|
+ <div class="product-feature-details">
|
|
|
+ <div class="social-share-buttons">
|
|
|
+ <h3>share this product</h3>
|
|
|
+ <ul>
|
|
|
+ <li><a class="twitter" href="#"><i class="fa fa-twitter"></i></a></li>
|
|
|
+ <li><a class="facebook" href="#"><i class="fa fa-facebook"></i></a></li>
|
|
|
+ <li><a class="google-plus" href="#"><i class="fa fa-google-plus"></i></a></li>
|
|
|
+ <li><a class="pinterest" href="#"><i class="fa fa-pinterest"></i></a></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="col-lg-7 col-md-6 col-xs-12">
|
|
|
<!-- product view description -->
|
|
@@ -54,7 +65,7 @@
|
|
|
<input type="hidden" class="product_view_id" value="<?= $_id ?>">
|
|
|
<input type="hidden" class="sku" value="<?= $sku; ?>" />
|
|
|
<input type="hidden" class="product_csrf" name="" value="" />
|
|
|
- <h1 class="product-title mb-15"><?= $name; ?></h1>
|
|
|
+ <h1 class="product-title mb-5"><?= $name; ?></h1>
|
|
|
|
|
|
<?= Yii::$service->page->widget->render('product/review_star', ['reviw_rate_star_average' => $reviw_rate_star_average]); ?>
|
|
|
|
|
@@ -63,68 +74,18 @@
|
|
|
<h2 class="product-price mb-0">
|
|
|
<?= Yii::$service->page->widget->render('product/price', ['price_info' => $price_info]); ?>
|
|
|
</h2>
|
|
|
-
|
|
|
- <p class="product-description mb-20">
|
|
|
- <?= $short_description ?>
|
|
|
- </p>
|
|
|
-
|
|
|
- <div class="product-sales-options mb-20">
|
|
|
+ <div class="product-sales-options mb-5">
|
|
|
<div class="product_options">
|
|
|
<?= Yii::$service->page->widget->render('product/options', ['options' => $options]); ?>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
- <!-- 自定义界面Star -->
|
|
|
- <div class="product-sales-options mb-20">
|
|
|
- <div class="product_options" id="user_custom">
|
|
|
-
|
|
|
- <?php if(is_array($groupAttrArr)): ?>
|
|
|
- <?php unset($groupAttrArr['color']);
|
|
|
- unset($groupAttrArr['size']);
|
|
|
- unset($groupAttrArr['weight']);
|
|
|
- unset($groupAttrArr['volume weight']);
|
|
|
- ?>
|
|
|
- <?php echo "<table>"; ?>
|
|
|
- <?php foreach($groupAttrArr as $k => $v): ?>
|
|
|
- <?= "<tr><td>".$k."</td><td>".$v."</td></tr>"; ?>
|
|
|
- <?php endforeach; ?>
|
|
|
- <?php echo "</table>"; ?>
|
|
|
- <?php endif; ?>
|
|
|
-
|
|
|
- </div>
|
|
|
- <div id="user_custom_content" style="display: none;">
|
|
|
-
|
|
|
- <?php if(is_array($groupAttrArr)): ?>
|
|
|
- <?php unset($groupAttrArr['color']);
|
|
|
- unset($groupAttrArr['size']);
|
|
|
- unset($groupAttrArr['weight']);
|
|
|
- unset($groupAttrArr['volume weight']);
|
|
|
- ?>
|
|
|
- <?php echo "<table>"; ?>
|
|
|
- <?php foreach($groupAttrArr as $k => $v): ?>
|
|
|
-
|
|
|
-
|
|
|
- <?= "<tr><td>".$k."</td><td>"; ?>
|
|
|
- <input class="custom_op" type="number" min="1" max="500" attr="<?=$k?>" style="width: 50px;">cm
|
|
|
-
|
|
|
- <?= "</td></tr>"; ?>
|
|
|
-
|
|
|
-
|
|
|
- <?php endforeach; ?>
|
|
|
- <?php echo "</table>"; ?>
|
|
|
- <?php endif; ?>
|
|
|
-
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- 自定义界面End -->
|
|
|
|
|
|
|
|
|
-
|
|
|
- <div class="cart-buttons product-qty mb-20">
|
|
|
+ <div class="cart-buttons product-qty mb-5">
|
|
|
<span class="quantity-title mr-10">Quantity: </span>
|
|
|
- <div class="pro-qty mb-20">
|
|
|
+ <div class="pro-qty mb-5">
|
|
|
<input type="text" value="1" name="qty" class="qty">
|
|
|
|
|
|
</div>
|
|
@@ -159,20 +120,38 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
-->
|
|
|
-
|
|
|
<div class="tier_price_info">
|
|
|
<?= Yii::$service->page->widget->render('product/tier_price', ['tier_price' => $tier_price]); ?>
|
|
|
</div>
|
|
|
+ <div class="tab-slider-wrapper product-description-sizeshow">
|
|
|
+ <nav>
|
|
|
+ <div class="nav nav-tabs" id="nav-tabone" role="tablist">
|
|
|
+
|
|
|
+ <a class="nav-item nav-link active show" id="sizeshow-tab" data-toggle="tab" href="#sizeshow" role="tab"
|
|
|
+ aria-selected="false"><?= Yii::$service->page->translate->__('Size & FIT'); ?></a>
|
|
|
+ <a class="nav-item nav-link" id="description-tab" data-toggle="tab" href="#description" role="tab"
|
|
|
+ aria-selected="false"><?= Yii::$service->page->translate->__('Description'); ?></a>
|
|
|
+ </div>
|
|
|
+ </nav>
|
|
|
+ <div class="tab-content" id="nav-taboneContent ">
|
|
|
+ <div class="tab-pane fade show active" id="sizeshow" role="tabpanel" aria-labelledby="sizeshow-tab">
|
|
|
+ <?php if(is_array($groupAttrArr)): ?>
|
|
|
+ <table>
|
|
|
+ <?php foreach($groupAttrArr as $k => $v): ?>
|
|
|
+ <tr><td><?= $k ?></td><td><?= $v ?></td></tr>
|
|
|
+ <?php endforeach; ?>
|
|
|
+ </table>
|
|
|
+ <br/>
|
|
|
+ <?php endif; ?>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="social-share-buttons">
|
|
|
- <h3>share this product</h3>
|
|
|
- <ul>
|
|
|
- <li><a class="twitter" href="#"><i class="fa fa-twitter"></i></a></li>
|
|
|
- <li><a class="facebook" href="#"><i class="fa fa-facebook"></i></a></li>
|
|
|
- <li><a class="google-plus" href="#"><i class="fa fa-google-plus"></i></a></li>
|
|
|
- <li><a class="pinterest" href="#"><i class="fa fa-pinterest"></i></a></li>
|
|
|
- </ul>
|
|
|
+ <div class="tab-pane fade" id="description" role="tabpanel" aria-labelledby="description-tab">
|
|
|
+ <?= $description; ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
<!-- end of product quick view description -->
|
|
|
</div>
|
|
@@ -194,43 +173,14 @@
|
|
|
<nav>
|
|
|
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
|
|
|
|
|
- <a class="nav-item nav-link active" id="description-tab" data-toggle="tab" href="#product-description" role="tab"
|
|
|
- aria-selected="true"><?= Yii::$service->page->translate->__('Description'); ?></a>
|
|
|
<a class="nav-item nav-link" id="review-tab" data-toggle="tab" href="#review" role="tab"
|
|
|
aria-selected="false"><?= Yii::$service->page->translate->__('Reviews'); ?></a>
|
|
|
<a class="nav-item nav-link" id="shipping-payment-tab" data-toggle="tab" href="#shipping-payment" role="tab"
|
|
|
aria-selected="false"><?= Yii::$service->page->translate->__('Shipping & Payment'); ?></a>
|
|
|
</div>
|
|
|
</nav>
|
|
|
- <div class="tab-content" id="nav-tabContent">
|
|
|
- <div class="tab-pane fade show active" id="product-description" role="tabpanel" aria-labelledby="description-tab">
|
|
|
- <!--======= product description =======-->
|
|
|
-
|
|
|
- <div class="product-description">
|
|
|
- <!--<?php if(is_array($groupAttrArr)): ?>
|
|
|
- <table>
|
|
|
- <?php foreach($groupAttrArr as $k => $v): ?>
|
|
|
- <tr><td><?= $k ?></td><td><?= $v ?></td></tr>
|
|
|
- <?php endforeach; ?>
|
|
|
- </table>
|
|
|
- <br/>
|
|
|
- <?php endif; ?>
|
|
|
- -->
|
|
|
- <?= $description; ?>
|
|
|
-
|
|
|
- <div class="img-section">
|
|
|
- <?php if(is_array($image_detail)): ?>
|
|
|
- <?php foreach($image_detail as $image_detail_one): ?>
|
|
|
- <br/>
|
|
|
- <img class="js_lazy" src="<?= Yii::$service->image->getImgUrl('images/lazyload.gif'); ?>" data-original="<?= Yii::$service->product->image->getUrl($image_detail_one['image']); ?>" />
|
|
|
- <?php endforeach; ?>
|
|
|
- <?php endif; ?>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!--======= End of product description =======-->
|
|
|
- </div>
|
|
|
- <div class="tab-pane fade" id="review" role="tabpanel" aria-labelledby="review-tab">
|
|
|
+ <div class="tab-content" id="nav-tabContent text-reviews">
|
|
|
+ <div class="tab-pane fade show active" id="review" role="tabpanel" aria-labelledby="review-tab">
|
|
|
<?php # review部分。
|
|
|
$reviewParam = [
|
|
|
'product_id' => $_id,
|