|
@@ -75,6 +75,53 @@
|
|
<?= Yii::$service->page->widget->render($optionsView,$optionsParam); ?>
|
|
<?= Yii::$service->page->widget->render($optionsView,$optionsParam); ?>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <!-- 自定义界面Star -->
|
|
|
|
+ <div class="product_custom_options">
|
|
|
|
+ <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="product_qty pg">
|
|
<div class="product_qty pg">
|
|
<div class="label"><?= Yii::$service->page->translate->__('Qty:'); ?></div>
|
|
<div class="label"><?= Yii::$service->page->translate->__('Qty:'); ?></div>
|
|
@@ -155,15 +202,6 @@
|
|
</div>
|
|
</div>
|
|
<div id="text">
|
|
<div id="text">
|
|
<div class="text-description" style="">
|
|
<div class="text-description" style="">
|
|
- <?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; ?>
|
|
<?= $description; ?>
|
|
|
|
|
|
<div class="img-section">
|
|
<div class="img-section">
|
|
@@ -219,6 +257,15 @@
|
|
// add to cart js
|
|
// add to cart js
|
|
<?php $this->beginBlock('add_to_cart') ?>
|
|
<?php $this->beginBlock('add_to_cart') ?>
|
|
$(document).ready(function(){
|
|
$(document).ready(function(){
|
|
|
|
+
|
|
|
|
+ //自定义JS
|
|
|
|
+ var a = $(".current.sizebj span").text();
|
|
|
|
+ if(a == 'CustomSize'){
|
|
|
|
+ alert(a);
|
|
|
|
+ $("#user_custom").css('display','none');
|
|
|
|
+ $("#user_custom_content").css('display','block');
|
|
|
|
+ }
|
|
|
|
+
|
|
$(".addProductToCart").click(function(){
|
|
$(".addProductToCart").click(function(){
|
|
i = 1;
|
|
i = 1;
|
|
$(".product_custom_options .pg .rg ul.required").each(function(){
|
|
$(".product_custom_options .pg .rg ul.required").each(function(){
|