|
@@ -207,6 +207,17 @@
|
|
|
<?= Yii::$service->page->widget->render('product/buy_also_buy', ['products' => $buy_also_buy]); ?>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<div id="tc_box">
|
|
|
+ <div class="tc_box1">Add to Cart Sucessfully!</div>
|
|
|
+ <div class="tc_box2">
|
|
|
+ <a href="" id="close_tc">Continue Shopping</a></td>
|
|
|
+ <a href="<?= Yii::$service->url->getUrl("checkout/cart") ?>" >View My Cart</a>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<div id="bgmb"></div>
|
|
|
<script>
|
|
|
// add to cart js
|
|
|
<?php $this->beginBlock('add_to_cart') ?>
|
|
@@ -321,7 +332,11 @@
|
|
|
if(data.status == 'success'){
|
|
|
items_count = data.items_count;
|
|
|
$("#js_cart_items").html(items_count);
|
|
|
- window.location.href="<?= Yii::$service->url->getUrl("checkout/cart") ?>";
|
|
|
+
|
|
|
+ $("#tc_box").css("display","block");
|
|
|
+ $("#bgmb").css("display","block");
|
|
|
+
|
|
|
+ //window.location.href="<?= Yii::$service->url->getUrl("checkout/cart") ?>";
|
|
|
}else{
|
|
|
content = data.content;
|
|
|
$(".addProductToCart").removeClass("dataUp");
|
|
@@ -333,6 +348,13 @@
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ $("#close_tc").click(function () {
|
|
|
+ $("#tc_box").css("display","none");
|
|
|
+ $("#bgmb").css("display","none");
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
// product favorite
|
|
|
$("#divMyFavorite").click(function(){
|
|
|
if($(this).hasClass('act')){
|