소스 검색

customsize OK

NoteStar 5 년 전
부모
커밋
4bec47a83c

+ 19 - 0
appfront/theme/terry/theme01/checkout/cart/index.php

@@ -93,6 +93,25 @@ use fec\helpers\CRequest;
 											<?php endforeach;  ?>
 										</ul>
 										<?php endif;  ?>
+
+                                        <?php  if($product_one['customsize']):  ?>
+                                            <ul>
+                                                <?php
+                                                $customsize = stripslashes($product_one['customsize']);
+                                                $customsize = json_decode($customsize,true);
+                                                ?>
+                                                <?php foreach($customsize as $k => $v):  ?>
+
+                                                    <li><?=$k?>:<?=$v?> </li>
+
+                                                <?php endforeach;  ?>
+                                            </ul>
+                                        <?php endif;  ?>
+
+
+
+
+
 									</td>
 									
 									

+ 19 - 0
appfront/theme/terry/theme01/checkout/onepage/index/review_order.php

@@ -50,6 +50,25 @@ use fecshop\app\appfront\helper\Format;
 						<?php endforeach;  ?>
 					</ul>
 					<?php endif;  ?>
+
+                    <?php  if($product['customsize']):  ?>
+                        <ul>
+                            <?php
+                            $customsize = stripslashes($product['customsize']);
+                            $customsize = json_decode($customsize,true);
+                            ?>
+                            <?php foreach($customsize as $k => $v):  ?>
+
+                                <li><?=$k?>:<?=$v?> </li>
+
+                            <?php endforeach;  ?>
+                        </ul>
+                    <?php endif;  ?>
+
+
+
+
+
 				</td>
 				<td class="qty"><?= $product['qty']; ?></td>
 				<td class="total"><span class="price"><?=  $currency_info['symbol'];  ?><?= Format::price($product['product_row_price']); ?></span></td>

+ 21 - 0
appfront/theme/terry/theme01/customer/order/view.php

@@ -127,6 +127,27 @@ use fecshop\app\appfront\helper\Format;
 												<?php endforeach;  ?>
 											</ul>
 											<?php endif;  ?>
+
+                                            <?php  if($product['customsize']):  ?>
+                                                <ul>
+                                                    <?php
+                                                    $customsize = stripslashes($product['customsize']);
+                                                    $customsize = json_decode($customsize,true);
+                                                    ?>
+                                                    <?php foreach($customsize as $k => $v):  ?>
+
+                                                        <li><?=$k?>:<?=$v?> </li>
+
+                                                    <?php endforeach;  ?>
+                                                </ul>
+                                            <?php endif;  ?>
+
+
+
+
+
+
+
 											<dl class="item-options">
 												
 											</dl>

+ 16 - 0
apphtml5/theme/terry/theme01/checkout/cart/index.php

@@ -53,6 +53,22 @@ use fec\helpers\CRequest;
 									</ul>
 									<div class="clear"></div>
 									<?php endif;  ?>
+                                    <?php  if($product_one['customsize']):  ?>
+                                        <ul>
+                                            <?php
+                                            $customsize = stripslashes($product_one['customsize']);
+                                            $customsize = json_decode($customsize,true);
+                                            ?>
+                                            <?php foreach($customsize as $k => $v):  ?>
+
+                                                <li><?=$k?>:<?=$v?> </li>
+
+                                            <?php endforeach;  ?>
+                                        </ul>
+                                    <?php endif;  ?>
+                                    <div class="clear"></div>
+
+
 									<span class="cart-price">
 										<span class="price"><?=  $currency_info['symbol'];  ?><?= Format::price($product_one['product_price']); ?></span>                
 									</span>

+ 19 - 0
apphtml5/theme/terry/theme01/checkout/onepage/index/review_order.php

@@ -50,6 +50,25 @@ use fecshop\app\apphtml5\helper\Format;
 						<?php endforeach;  ?>
 					</ul>
 					<?php endif;  ?>
+
+                    <?php  if($product['customsize']):  ?>
+                        <ul>
+                            <?php
+                            $customsize = stripslashes($product['customsize']);
+                            $customsize = json_decode($customsize,true);
+                            ?>
+                            <?php foreach($customsize as $k => $v):  ?>
+
+                                <li><?=$k?>:<?=$v?> </li>
+
+                            <?php endforeach;  ?>
+                        </ul>
+                    <?php endif;  ?>
+
+
+
+
+
 				</td>
 				<td class="qty"><?= $product['qty']; ?></td>
 				<td class="total"><span class="price"><?=  $currency_info['symbol'];  ?><?= Format::price($product['product_row_price']); ?></span></td>

+ 15 - 0
apphtml5/theme/terry/theme01/customer/order/view.php

@@ -161,6 +161,21 @@ use fecshop\app\apphtml5\helper\Format;
 												<?php endforeach;  ?>
 											
 											<?php endif;  ?>
+
+
+                                            <?php  if($product['customsize']):  ?>
+                                                <ul>
+                                                    <?php
+                                                    $customsize = stripslashes($product['customsize']);
+                                                    $customsize = json_decode($customsize,true);
+                                                    ?>
+                                                    <?php foreach($customsize as $k => $v):  ?>
+
+                                                        <li><?=$k?>:<?=$v?> </li>
+
+                                                    <?php endforeach;  ?>
+                                                </ul>
+                                            <?php endif;  ?>
 											
 											<dl class="item-options">
 											</dl>

+ 16 - 0
vendor/fancyecommerce/fecshop/app/appadmin/theme/base/default/sales/orderinfo/manageredit.php

@@ -339,6 +339,22 @@ use fecshop\app\appfront\helper\Format;
 												<?php }  ?>
 											</ul>
 											<?php }  ?>
+
+                                            <?php  if($product['customsize']):  ?>
+                                                <ul>
+                                                    <?php
+                                                    $customsize = stripslashes($product['customsize']);
+                                                    $customsize = json_decode($customsize,true);
+                                                    ?>
+                                                    <?php foreach($customsize as $k => $v):  ?>
+
+                                                        <li><?=$k?>:<?=$v?> </li>
+
+                                                    <?php endforeach;  ?>
+                                                </ul>
+                                            <?php endif;  ?>
+
+
 											<dl class="item-options">
 												
 											</dl>

+ 1 - 0
vendor/fancyecommerce/fecshop/app/appfront/modules/Customer/block/order/Reorder.php

@@ -45,6 +45,7 @@ class Reorder
                 $item = [
                     'product_id'        => $one['product_id'],
                     'custom_option_sku' => $one['custom_option_sku'],
+                    'customsize'        => $one['customsize'],
                     'qty'                => (int) $one['qty'],
                 ];
                 //var_dump($item);exit;

+ 2 - 0
vendor/fancyecommerce/fecshop/app/apphtml5/modules/Checkout/controllers/CartController.php

@@ -44,6 +44,7 @@ class CartController extends AppfrontController
         $custom_option = Yii::$app->request->post('custom_option');
         $product_id = Yii::$app->request->post('product_id');
         $qty = Yii::$app->request->post('qty');
+        $customsize = Yii::$app->request->post('customsize');
         //$custom_option  = \Yii::$service->helper->htmlEncode($custom_option);
         $product_id = \Yii::$service->helper->htmlEncode($product_id);
         $qty = \Yii::$service->helper->htmlEncode($qty);
@@ -59,6 +60,7 @@ class CartController extends AppfrontController
                 'product_id' => $product_id,
                 'qty'        =>  $qty,
                 'custom_option_sku' => $custom_option_sku,
+                'customsize' => addslashes( $customsize ),
             ];
             $innerTransaction = Yii::$app->db->beginTransaction();
             try {

+ 1 - 0
vendor/fancyecommerce/fecshop/app/apphtml5/modules/Customer/block/order/Reorder.php

@@ -45,6 +45,7 @@ class Reorder
                 $item = [
                     'product_id'        => $one['product_id'],
                     'custom_option_sku' => $one['custom_option_sku'],
+                    'customsize'        => $one['customsize'],
                     'qty'                => (int) $one['qty'],
                 ];
                 //var_dump($item);exit;

+ 2 - 0
vendor/fancyecommerce/fecshop/services/cart/QuoteItem.php

@@ -260,6 +260,7 @@ class QuoteItem extends Service
                             $qty                = $one['qty'];
                             
                             $custom_option_sku  = $one['custom_option_sku'];
+                            $customsize         = $one['customsize'];
                             $product_price_arr  = Yii::$service->product->price->getCartPriceByProductId($product_id, $qty, $custom_option_sku, 2);
                             $curr_product_price = isset($product_price_arr['curr_price']) ? $product_price_arr['curr_price'] : 0;
                             $base_product_price = isset($product_price_arr['base_price']) ? $product_price_arr['base_price'] : 0;
@@ -290,6 +291,7 @@ class QuoteItem extends Service
                                 'name'              => Yii::$service->store->getStoreAttrVal($product_one['name'], 'name'),
                                 'qty'               => $qty,
                                 'custom_option_sku' => $custom_option_sku,
+                                'customsize'        => $customsize,
                                 'product_price'     => $product_price,
                                 'product_row_price' => $product_row_price,
 

+ 1 - 0
vendor/fancyecommerce/fecshop/services/order/Item.php

@@ -267,6 +267,7 @@ class Item extends Service
                 $myOrderItem['sku'] = $item['sku'];
                 $myOrderItem['name'] = $item['name'];
                 $myOrderItem['custom_option_sku'] = $item['custom_option_sku'];
+                $myOrderItem['customsize'] = $item['customsize'];
                 $myOrderItem['image'] = isset($item['product_image']['main']['image']) ? $item['product_image']['main']['image'] : '';
                 $myOrderItem['weight'] = $item['product_weight'];
                 $myOrderItem['qty'] = $item['qty'];