Commit 1a9db8d9a58eaeba01c6efb444a0582d9320394e

Authored by Dima
1 parent 9484bc69

update basket LP

src/app/frontend/controllers/PageController.php
@@ -964,14 +964,11 @@ @@ -964,14 +964,11 @@
964 $users_group_discount = 0; 964 $users_group_discount = 0;
965 } 965 }
966 $h1 = null; 966 $h1 = null;
967 - if($item['0']['catalog'] == 337 && $this->lang_id == 2)  
968 - $h1 ="Семена кукурузы ";  
969 - elseif($item['0']['catalog'] == 337 && $this->lang_id == 1)  
970 - $h1 ="Насіння кукурудзи ";  
971 - elseif($item['0']['catalog'] == 518 && $this->lang_id == 2)  
972 - $h1 ="Картофель ";  
973 - elseif($item['0']['catalog'] == 518 && $this->lang_id == 1)  
974 - $h1 ="Картопля "; 967 + if ($item['0']['catalog'] == 337 && $this->lang_id == 2) $h1 ="Семена кукурузы ";
  968 + elseif($item['0']['catalog'] == 337 && $this->lang_id == 1) $h1 ="Насіння кукурудзи ";
  969 + elseif($item['0']['catalog'] == 518 && $this->lang_id == 2) $h1 ="Картофель ";
  970 + elseif($item['0']['catalog'] == 518 && $this->lang_id == 1) $h1 ="Картопля ";
  971 +
975 $h1 .= $item['0']['title'].' '.$item['0']['color_title']. ' '. $item['0']['size'] ; 972 $h1 .= $item['0']['title'].' '.$item['0']['color_title']. ' '. $item['0']['size'] ;
976 $this->view->setVars([ 973 $this->view->setVars([
977 'h1' => $h1, 974 'h1' => $h1,
@@ -1412,14 +1409,10 @@ @@ -1412,14 +1409,10 @@
1412 if ($discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($item['id'], $discount['group_ids'])) { 1409 if ($discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($item['id'], $discount['group_ids'])) {
1413 $item['discounted_price'] = round($item['price']*(1-$discount['discount']/100), 1); 1410 $item['discounted_price'] = round($item['price']*(1-$discount['discount']/100), 1);
1414 } 1411 }
1415 - if($item['catalog'] == 337 && $this->lang_id == 2)  
1416 - $item['title'] = "Семена кукурузы ".$item['title'];  
1417 - elseif ($item['catalog'] == 337 && $this->lang_id ==1)  
1418 - $item['title'] = "Насіння кукурудзи ".$item['title'];  
1419 - if($item['catalog'] == 518 && $this->lang_id == 2)  
1420 - $item['title'] = "Картофель ".$item['title'];  
1421 - elseif ($item['catalog'] == 518 && $this->lang_id ==1)  
1422 - $item['title'] = "Картопля ".$item['title']; 1412 + if ($item['catalog'] == 337 && $this->lang_id == 2) $item['title'] = "Семена кукурузы ".$item['title'];
  1413 + elseif($item['catalog'] == 337 && $this->lang_id == 1) $item['title'] = "Насіння кукурудзи ".$item['title'];
  1414 + elseif($item['catalog'] == 518 && $this->lang_id == 2) $item['title'] = "Картофель ".$item['title'];
  1415 + elseif($item['catalog'] == 518 && $this->lang_id == 1) $item['title'] = "Картопля ".$item['title'];
1423 } 1416 }
1424 } 1417 }
1425 1418
src/app/frontend/views/basket_ru.php
@@ -179,7 +179,7 @@ else @@ -179,7 +179,7 @@ else
179 <div class="line_in_2_block"> 179 <div class="line_in_2_block">
180 <div class="big_numb h1">2</div> 180 <div class="big_numb h1">2</div>
181 <p> 181 <p>
182 - Наши профессиональные агрономы тщательно подбирали ассортимент семян и удобрений под каждую из тематических «Корзинок»: огуречную, борщевую и рассадную. 182 + Наши профессиональные агрономы тщательно подбирали ассортимент семян и удобрений под каждую из тематических «Корзинок»: огуречную, борщевую, рассадную и цветочную.
183 </p> 183 </p>
184 </div> 184 </div>
185 <div class="line_in_2_block"><div class="big_numb h1">3</div> 185 <div class="line_in_2_block"><div class="big_numb h1">3</div>
@@ -613,7 +613,7 @@ $pbKey = &#39;e2c4edf8698208c4586fdbcddb0195a5&#39;; @@ -613,7 +613,7 @@ $pbKey = &#39;e2c4edf8698208c4586fdbcddb0195a5&#39;;
613 }); 613 });
614 614
615 </script> 615 </script>
616 -<script type="text/javascript" src="/js/landing_pages/basket.min.js"></script> 616 +<script type="text/javascript" src="/js/landing_pages/basket.min.js?1"></script>
617 <script type="text/javascript" src="/js/main_ru.js"></script> 617 <script type="text/javascript" src="/js/main_ru.js"></script>
618 <!-- Carousel --> 618 <!-- Carousel -->
619 <script type="text/javascript" src="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js"></script> 619 <script type="text/javascript" src="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js"></script>
src/app/frontend/views/basket_ua.php
@@ -175,7 +175,7 @@ else @@ -175,7 +175,7 @@ else
175 <div class="line_in_2_block"> 175 <div class="line_in_2_block">
176 <div class="big_numb h1">2</div> 176 <div class="big_numb h1">2</div>
177 <p> 177 <p>
178 - Наші професійні агрономи ретельно підбирали асортимент насіння і добрив під кожен з тематичних «Кошиків»: огірковий, борщовий та розсадний. 178 + Наші професійні агрономи ретельно підбирали асортимент насіння і добрив під кожен з тематичних «Кошиків»: огірковий, борщовий, розсадний та квітковий.
179 </p> 179 </p>
180 </div> 180 </div>
181 <div class="line_in_2_block"><div class="big_numb h1">3</div> 181 <div class="line_in_2_block"><div class="big_numb h1">3</div>
@@ -644,7 +644,7 @@ $pbKey = &#39;e2c4edf8698208c4586fdbcddb0195a5&#39;; @@ -644,7 +644,7 @@ $pbKey = &#39;e2c4edf8698208c4586fdbcddb0195a5&#39;;
644 }); 644 });
645 645
646 </script> 646 </script>
647 -<script type="text/javascript" src="/js/landing_pages/basket.min.js"></script> 647 +<script type="text/javascript" src="/js/landing_pages/basket.min.js?1"></script>
648 <script type="text/javascript" src="/js/main.js"></script> 648 <script type="text/javascript" src="/js/main.js"></script>
649 649
650 <script src="/dist/js/cart.js"></script> 650 <script src="/dist/js/cart.js"></script>
www/js/landing_pages/basket.js
@@ -20,7 +20,28 @@ if(tag == &quot;b4&quot;){ @@ -20,7 +20,28 @@ if(tag == &quot;b4&quot;){
20 $('html, body').animate({ scrollTop: $("#block_4").offset().top }, 500); 20 $('html, body').animate({ scrollTop: $("#block_4").offset().top }, 500);
21 $("#basket_4").show(); 21 $("#basket_4").show();
22 } 22 }
23 - 23 +setTimeout(function () {
  24 +if(tag == "b1"){
  25 + $("#block_4").show();
  26 + $('html, body').animate({ scrollTop: $("#block_4").offset().top }, 500);
  27 + $("#basket_1").show();
  28 +}
  29 +if(tag == "b2"){
  30 + $("#block_4").show();
  31 + $('html, body').animate({ scrollTop: $("#block_4").offset().top }, 500);
  32 + $("#basket_2").show();
  33 +}
  34 +if(tag == "b3"){
  35 + $("#block_4").show();
  36 + $('html, body').animate({ scrollTop: $("#block_4").offset().top }, 500);
  37 + $("#basket_3").show();
  38 +}
  39 +if(tag == "b4"){
  40 + $("#block_4").show();
  41 + $('html, body').animate({ scrollTop: $("#block_4").offset().top }, 500);
  42 + $("#basket_4").show();
  43 +}
  44 +}, 500);
24 function status_api(){ 45 function status_api(){
25 $("#form_voting").hide(); 46 $("#form_voting").hide();
26 $("#form_thanks").show(); 47 $("#form_thanks").show();
www/js/landing_pages/basket.min.js
1 -var str=location.href;var tag=str.split("#")[1];if(tag=="b1"){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#basket_1").show()}if(tag=="b2"){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#basket_2").show()}if(tag=="b3"){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#basket_3").show()}if(tag=="b4"){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#basket_4").show()}function status_api(){$("#form_voting").hide();$("#form_thanks").show()}function status_api_identification(){$("#form_identification_token").hide();$("#form_identification_token_thank").show()}$("#block_6 label").click(function(a){if($(this).children("input").is(":checked")){$(this).css("background-image","url(/images/basket/bg_input_click.png)")}else{$(this).css("background-image","")}});$("#basket_b_1").click(function(a){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#block_4 > .container>div").hide();$("#basket_1").show()});$("#basket_b_2").click(function(a){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#block_4 > .container>div").hide();$("#basket_2").show()});$("#basket_b_3").click(function(a){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#block_4 > .container>div").hide();$("#basket_3").show()});$("#basket_b_4").click(function(a){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#block_4 > .container>div").hide();$("#basket_4").show()});  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +var str=location.href;var tag=str.split("#")[1];if(tag=="b1"){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#basket_1").show()}if(tag=="b2"){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#basket_2").show()}if(tag=="b3"){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#basket_3").show()}if(tag=="b4"){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#basket_4").show()}setTimeout(function(){if(tag=="b1"){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#basket_1").show()}if(tag=="b2"){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#basket_2").show()}if(tag=="b3"){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#basket_3").show()}if(tag=="b4"){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#basket_4").show()}},500);function status_api(){$("#form_voting").hide();$("#form_thanks").show()}function status_api_identification(){$("#form_identification_token").hide();$("#form_identification_token_thank").show()}$("#block_6 label").click(function(a){if($(this).children("input").is(":checked")){$(this).css("background-image","url(/images/basket/bg_input_click.png)")}else{$(this).css("background-image","")}});$("#basket_b_1").click(function(a){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#block_4 > .container>div").hide();$("#basket_1").show()});$("#basket_b_2").click(function(a){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#block_4 > .container>div").hide();$("#basket_2").show()});$("#basket_b_3").click(function(a){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#block_4 > .container>div").hide();$("#basket_3").show()});$("#basket_b_4").click(function(a){$("#block_4").show();$("html, body").animate({scrollTop:$("#block_4").offset().top},500);$("#block_4 > .container>div").hide();$("#basket_4").show()});
3 \ No newline at end of file 3 \ No newline at end of file