NoteStar 5 vuotta sitten
vanhempi
commit
a042dd29c1

+ 2 - 2
addons/fecmall/furnilife_theme/app/apphtml5/theme/furnilife/assets/css/fec.css

@@ -1246,11 +1246,11 @@ width: 80%;}
 #tc_box{
     display: none;
     width: 100%;
+    top: 50%;
     padding: 30px 0px;
     position: absolute;
     background: #fff;
     z-index: 9999;
-    top: 20%;
 }
 .tc_box1{
     width: 100%;
@@ -1276,7 +1276,7 @@ width: 80%;}
 }
 #bgmb{
     display: none;
-    position: absolute;
+    position: fixed;
     top: 0%;
     left: 0%;
     width: 100%;

+ 2 - 0
addons/fecmall/furnilife_theme/app/apphtml5/theme/furnilife/catalog/product/index.php

@@ -333,7 +333,9 @@
 							items_count = data.items_count;
 							$("#js_cart_items").html(items_count);
 
+                            window.scrollTo(0,0);
                             $("#tc_box").css("display","block");
+                            $("#tc_box").css("top",scroll);
                             $("#bgmb").css("display","block");
 
 							//window.location.href="<?= Yii::$service->url->getUrl("checkout/cart") ?>";