Commit 5aba20996208e6513784e2938ddef9912a389782
Merge remote-tracking branch 'origin/master'
Showing
28 changed files
with
2027 additions
and
1327 deletions
Show diff stats
src/app/frontend/views/index.php
@@ -2,6 +2,9 @@ | @@ -2,6 +2,9 @@ | ||
2 | <html xmlns="http://www.w3.org/1999/xhtml"> | 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
3 | <head> | 3 | <head> |
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
5 | + <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> | ||
6 | + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
7 | + <link rel="stylesheet" href="/css/adapt_phone.css" type="text/css" media="all"> | ||
5 | 8 | ||
6 | <title><?= !empty( $meta_title ) ? $meta_title : \config::get( 'global#title' ) ?></title> | 9 | <title><?= !empty( $meta_title ) ? $meta_title : \config::get( 'global#title' ) ?></title> |
7 | <?= !empty( $meta_link_next ) ? $meta_link_next : '' ?> | 10 | <?= !empty( $meta_link_next ) ? $meta_link_next : '' ?> |
@@ -103,11 +106,7 @@ $page_title = isset( $page_title ) && !empty( $page_title ) ? $page_title : ''; | @@ -103,11 +106,7 @@ $page_title = isset( $page_title ) && !empty( $page_title ) ? $page_title : ''; | ||
103 | <a href="<?= $this->seoUrl->setUrl('/') ?>" title=""><img alt="Інтернет-магазин насіння" title="Магазин насіння Semena.in.ua" src="/images/logo.png" width="314" height="76" /></a> | 106 | <a href="<?= $this->seoUrl->setUrl('/') ?>" title=""><img alt="Інтернет-магазин насіння" title="Магазин насіння Semena.in.ua" src="/images/logo.png" width="314" height="76" /></a> |
104 | </div> | 107 | </div> |
105 | </div> | 108 | </div> |
106 | - | ||
107 | - | ||
108 | - | ||
109 | - | ||
110 | - <div class="float columns3 third_column last"> | 109 | + <div class="float columns3 third_column last"> |
111 | <div class="clearfix"> | 110 | <div class="clearfix"> |
112 | <div class="float basket_number float_right last"><a href="<?= $this->seoUrl->setUrl('/basket') ?>" title="<?= $t->_("cart")?>"><?= !empty( $in_cart ) ? count( $in_cart ) : '0' ?></a></div> | 111 | <div class="float basket_number float_right last"><a href="<?= $this->seoUrl->setUrl('/basket') ?>" title="<?= $t->_("cart")?>"><?= !empty( $in_cart ) ? count( $in_cart ) : '0' ?></a></div> |
113 | 112 | ||
@@ -166,6 +165,53 @@ $page_title = isset( $page_title ) && !empty( $page_title ) ? $page_title : ''; | @@ -166,6 +165,53 @@ $page_title = isset( $page_title ) && !empty( $page_title ) ? $page_title : ''; | ||
166 | </form> | 165 | </form> |
167 | </div> | 166 | </div> |
168 | </div> | 167 | </div> |
168 | + <div id="top_icon_for_phone" style="display:none;"> | ||
169 | + <div class="icon_for_phone icon_search"><a onclick="document.getElementById('search_for_phone').style.display='block'"></a></div> | ||
170 | + <div class="icon_for_phone icon_basket"><a href="<?= $this->seoUrl->setUrl('/basket') ?>" title="<?= $t->_("cart")?>"><span><?= !empty( $in_cart ) ? count( $in_cart ) : '0' ?></span></a></div> | ||
171 | + <div class="icon_for_phone icon_menu"><a onclick="document.getElementById('menu_for_phone').style.display='block'"></a></div> | ||
172 | + </div> | ||
173 | + <div id="search_for_phone" style="display:none"> | ||
174 | + <div class="icon_for_phone icon_exit_white"><a onclick="document.getElementById('search_for_phone').style.display='none'; false"></a></div> | ||
175 | + <form action="<?= $this->url->get([ 'for' => 'search_items' ]) ?>" method="get"> | ||
176 | + <div class="search_result_wrapper"> | ||
177 | + <input type="text" name="search" id="search_item" placeholder="Что ищем ?" value="<?= isset($search) && !empty($search) ? $search : '' ?>" /> | ||
178 | + <input type="submit" value="Search" id="search_submit_for_phone"/> | ||
179 | + </div> | ||
180 | + </form> | ||
181 | + | ||
182 | + </div> | ||
183 | + <div id="menu_for_phone" style="display:none"> | ||
184 | + <div class="icon_for_phone icon_exit"><a onclick="document.getElementById('menu_for_phone').style.display='none'; false"></a></div> | ||
185 | + <div class="icon_for_phone icon_ua <?php if($lang_id==2):?>activ<?php else: ?>pas<?php endif; ?>"> | ||
186 | + <?php if($lang_id==1):?> | ||
187 | + <a></a> | ||
188 | + <?php else: ?> | ||
189 | + <a href="<?= isset($change_lang_url['1']) && !empty($change_lang_url['1']) ? $change_lang_url['1'] : '/' ?>" title=""> | ||
190 | + </a> | ||
191 | + <?php endif; ?> | ||
192 | + </div> | ||
193 | + | ||
194 | + <div class="icon_for_phone icon_ru <?php if($lang_id==1):?>activ<?php else: ?>pas<?php endif; ?>"><?php if($lang_id==2):?><a></a><?php else: ?><a href="<?= isset($change_lang_url['2']) && !empty($change_lang_url['2']) ? $change_lang_url['2'] : '/ru' ?>" title="" <?php if($lang_id==2):?>class="active"<?php endif; ?>></a><?php endif; ?></div> | ||
195 | + <ul> | ||
196 | + <?php foreach($main_menu as $menu_item):?> | ||
197 | + <li class="<?= ( array_search(trim($menu_item['url'], '/'), $this->seoUrl->getLink(true)) || $menu_item['url']==$this->seoUrl->getLink() ? ' active' : '' ) ?> header_nav_<?=$menu_item['weight']?>"> | ||
198 | + <a href=" | ||
199 | + <?php if($menu_item['name']=='Каталог'):?> | ||
200 | + <?php if($lang_id==1):?>/<?php else: ?>/ru<?php endif; ?> | ||
201 | + <?php else: ?> | ||
202 | + <?=$menu_item['url'];?> | ||
203 | + <?php endif;?> | ||
204 | + " title="<?=$menu_item['name']?>"><?=$menu_item['name'];?> | ||
205 | + </a> | ||
206 | + </li> | ||
207 | + <?php endforeach ?> | ||
208 | + <?php echo '<li class=" header_nav_8"> | ||
209 | + <a href="'.$this->seoUrl->setUrl('/cabinet').'" title="'.(!empty( $customer['name'] ) ? $customer['name'] : $t->_("personal_account")).'" class="'.(!empty( $static_page_alias ) && $static_page_alias == '/cabinet' ? ' active' : '').'">'.(!empty( $customer['name'] ) ? $customer['name'] ." (". $t->_("personal_account").")" : $t->_("personal_account")).'</a> | ||
210 | + </li>'; | ||
211 | + ?> | ||
212 | + | ||
213 | + </ul> | ||
214 | + </div> | ||
169 | </div> | 215 | </div> |
170 | <div id="header_nav" class="clearfix"> | 216 | <div id="header_nav" class="clearfix"> |
171 | 217 |
src/app/frontend/views/menu/order.php
1 | -<?php //p($items,1) ?> | ||
2 | -<div id="content" class="clearfix"> | ||
3 | - | ||
4 | -<div style="width: 100%; min-width: 960px; height: 193px; margin: 0px auto;background:url(/images/order_<?php $lang = explode( '/', $this->getDi()->get('request')->get('_url')); echo (array_pop($lang) == 'ru')?'ru':'uk';?>.gif) center no-repeat;margin-bottom:-30px;position:relative;z-index:9; "> | ||
5 | -</div> | ||
6 | - | ||
7 | -<div class="order"> | ||
8 | -<div class="breadcrumbs"> | ||
9 | - <div class="inner"> | ||
10 | - <div class="order_menu_shadow"></div> | ||
11 | - <ul class="clearfix"> | ||
12 | - <li class="float"><a href="<?= $this->seoUrl->setUrl('/')?>" title="<?= $t->_("main_page") ?>"><?= $t->_("main_page") ?></a></li> | ||
13 | - <li class="float more"><img src="/images/breadcrumbs_arrow.png" alt="" height="7" width="7" /></li> | ||
14 | - <li class="float"><a href="<?= $this->seoUrl->setUrl('/basket')?>" title="<?= $t->_("cart")?>" class="breadcrumbs_last"><?= $t->_("cart")?></a></li> | ||
15 | - </ul> | ||
16 | - </div> | ||
17 | -</div> | ||
18 | - | ||
19 | -<div class="inner"> | ||
20 | - <?php | ||
21 | - | ||
22 | - $message = $this->flash->getMessages(); | ||
23 | - | ||
24 | - | ||
25 | - if( !empty( $message ) ) | ||
26 | - { | ||
27 | - if( isset($message['error']) && !empty($message['error']) ) | ||
28 | - { | ||
29 | - echo('<div class="errorMessage">'.$message['error']['0'].'</div>'); | ||
30 | - } | ||
31 | - else | ||
32 | - { | ||
33 | - echo('<div class="successMessage">'.$message['success']['0'].'</div>'); | ||
34 | - } | ||
35 | - } | ||
36 | - | ||
37 | - ?> | ||
38 | -</div> | ||
39 | - | ||
40 | - | ||
41 | - | ||
42 | -<div class="order_wrapper"> | ||
43 | -<div class="inner"> | ||
44 | -<form method="post" action="" name="order_add" id="order_add_<?= ($lang_id == 1 ? 'ua' : 'ru') ?>" class="clearfix order_add_form"> | ||
45 | -<div class="order_form"> | ||
46 | - <div class="order_title"><h1><?= $t->_("cart") ?></h1></div> | ||
47 | - <ul class="form"> | ||
48 | - <li class="clearfix main_li order_form_header"> | ||
49 | - <ul> | ||
50 | - <li class="float order_first_column"><?= $t->_("name") ?></li> | ||
51 | - <li class="float order_second_column"><?= $t->_("cost_per_unit") ?></li> | ||
52 | - <li class="float order_third_column"><?= $t->_("number_of") ?></li> | ||
53 | - <li class="float order_fourth_column"><?= $t->_("cost") ?></li> | ||
54 | - </ul> | ||
55 | - </li> | ||
56 | - | ||
57 | - <?php | ||
58 | - | ||
59 | - $data_items = ''; | ||
60 | - | ||
61 | - if( !empty( $items ) ) | ||
62 | - { | ||
63 | - foreach( $items as $i ) | ||
64 | - { | ||
65 | - $data_items .= | ||
66 | - '<li class="clearfix main_li order_form_content" data-catalog = "'.$i['catalog'].'">'. | ||
67 | - '<ul>'. | ||
68 | - '<li class="float order_first_column">'. | ||
69 | - '<div class="order_img_container">'. | ||
70 | - '<a href="' . $this->seoUrl->setUrl($i['alias']) . '" target="_blank">'. | ||
71 | - '<img src="'.$i['cover'].'" alt="'.$i['title'].'" width="61" height="100" class="float order_img">'. | ||
72 | - '</a>'. | ||
73 | - '</div>'. | ||
74 | - '<h2><a href="' . $this->seoUrl->setUrl($i['alias']) . '" target="_blank">' . $i['title'] . '</a></h2>'. | ||
75 | - '<input type="hidden" name="size['.$i['id'].']" value="'.$i['size'].'" /><p>'.$t->_("packing").' '.$i['size'].'.</p>'. | ||
76 | - ($i['color'] ? '<input type="hidden" name="color['.$i['id'].']" value="'.$i['color'].'" /><div class="float properties">'.$t->_("color").': </div>'.'<div class="float1 properties" style="color:'.$i['absolute_color'].'">'.$i['color'].'</div>' : ''). | ||
77 | - ($i['status'] == 1 ? '<input type="hidden" name="is['.$i['id'].']" value="'.$t->_("in_stock").'" /><p data-stock="1" id="stock" style="color: green; font-weight: bold;" class="properties properties_presence ">'.$t->_("in_stock").'</p>' : '<input type="hidden" name="is['.$i['id'].']" value="'.$t->_("missing").'" /><p data-stock="0" id="stock" style="color: red; font-weight: bold;" class="properties properties_absent">'.$t->_("missing").'</p>'). | ||
78 | - | ||
79 | - '</li>'. | ||
80 | - '<li class="float order_second_column"><span class="price">'.$i['price2'].'</span><span> грн</span></li>'. | ||
81 | - '<li class="float order_third_column">'. | ||
82 | - '<div class="float count minus">'. | ||
83 | - '</div>'. | ||
84 | - '<div class="float count count_input">'. | ||
85 | - '<input name="count_items['.$i['id'].']" data-item_id="'.$i['id'].'" class="count_items" type="text" value="'.$i['count'].'" />'. | ||
86 | - '</div>'. | ||
87 | - '<div class="float count plus">'. | ||
88 | - '</li>'. | ||
89 | - '<li class="float order_fourth_column">'. | ||
90 | - '<span class="price">'.$i['total_price'].'</span><span> грн</span>'. | ||
91 | - '</li>'. | ||
92 | - '<li class="float order_fifth_column">'. | ||
93 | - '<a href="'.$this->seoUrl->setUrl('/basket').'" data-item_id="'.$i['id'].'"><img src="/images/basket_del.png" alt="" width="18" height="18" /></a>'. | ||
94 | - '</li>'. | ||
95 | - '</ul>'. | ||
96 | - '</li>'; | ||
97 | - } | ||
98 | - } | ||
99 | - | ||
100 | - echo( $data_items ); | ||
101 | - | ||
102 | - ?> | ||
103 | - | ||
104 | - | ||
105 | - <li class="order_last clearfix"> | ||
106 | - <span class="min_price_message"><?=$t->_("min_price") ?></span> | ||
107 | - <?= $t->_("total")?>: <span class="price" id="total_price_basket"><?= $total_price ?></span> <span>грн</span> | ||
108 | - </li> | ||
109 | - <li class="clearfix"> | ||
110 | - <div class="label float"><label for="promo_code">Промокод</label></div> | ||
111 | - <div class="input float promo_code"> | ||
112 | - <input type="text" name="promo_code" id="promo_code" value="<?= !empty($promo_code['code']) ? $promo_code['code'] : '' ?>"> | ||
113 | - <input type="button" value="Применить" class="btn green" style="float: none"> | ||
114 | - <div style="width: auto;display: none;padding: 5px 4px;" class="alert" role="alert"> | ||
115 | - <strong></strong> | ||
116 | - </div> | ||
117 | - </div> | ||
118 | - </li> | ||
119 | - </ul> | ||
120 | -</div> | ||
121 | - | ||
122 | -<div class="contacts_form"> | ||
123 | -<div class="contacts_form_title"><h1><?= $t->_("ordering") ?></h1></div> | ||
124 | -<div class="item_menu_header_menu clearfix"> | ||
125 | - <div class="inner"> | ||
126 | - <div class="tabs clearfix do_order"> | ||
127 | - <ul> | ||
128 | - <?php | ||
129 | - | ||
130 | - if( !empty( $customer ) ) | ||
131 | - { | ||
132 | - $data_tabs = '<li class="float active_tab first_tab new_customer"><a href="#" title="">'.$t->_("already_registered").'</a></li>'; | ||
133 | - } | ||
134 | - else | ||
135 | - { | ||
136 | - $data_tabs = | ||
137 | - '<li class="float '.(!empty( $message ) ? 'not_active' : 'active_tab').' first_tab new_customer"><a href="javascript:void(0)" title="">'.$t->_("new_customer").'</a></li>'. | ||
138 | - '<li class="float '.(!empty( $message ) ? 'active_tab' : 'not_active').' last_tab registrated_customer"><a href="javascript:void(0)" title="">'.$t->_("already_registered").'</a></li>'; | ||
139 | - } | ||
140 | - | ||
141 | - echo( $data_tabs ); | ||
142 | - | ||
143 | - ?> | ||
144 | - | ||
145 | - </ul> | ||
146 | - </div> | ||
147 | - </div> | ||
148 | -</div> | ||
149 | - | ||
150 | -<div class="new_customer<?= !empty( $message ) ? ' display_none' : '' ?>"> | ||
151 | - | ||
152 | - <ul class="form clearfix"> | ||
153 | - <li class="clearfix"> | ||
154 | - <div class="label float"><label for="order_name"><?= $t->_("n_s")?><span class="required">∗</span></label></div> | ||
155 | - <div class="input float"><input type="text" name="order_name" id="order_name" class="name" value="<?= isset($customer['name']) && !empty($customer['name']) ? $customer['name'] : '' ?>"></div> | ||
156 | - </li> | ||
157 | - <li class="clearfix"> | ||
158 | - <div class="label float"><label for="order_phone"><?= $t->_("m_phone")?><span class="required">∗</span></label></div> | ||
159 | - <div class="input float"><input type="text" name="order_phone" class="order_phone" class="name" value="<?= isset($customer['phone']) && !empty($customer['phone']) ? $customer['phone'] : '' ?>"></div> | ||
160 | - </li> | ||
161 | - <li class="clearfix"> | ||
162 | - <div class="label float"><label for="order_email">Ваш email</label></div> | ||
163 | - <div class="input float"> | ||
164 | - <input type="text" name="order_email" id="order_email" class="name" value="<?= (isset($customer['email']) && !empty($customer['email']) && strlen(strpos($customer['email'], 'facebook'))==0 && strlen(strpos($customer['email'], 'vkontakte'))==0 ) ? $customer['email'] : '' ?>"> | ||
165 | - <div class="description"> | ||
166 | - <input type="checkbox" id="get_info" name="order_get_info" <?= !empty($customer['subscribed']) && $customer['subscribed'] == 1 ? 'checked' : 'checked' ?> /> | ||
167 | - <label for="get_info"><span></span><?= $t->_("receive")?></label> | ||
168 | - </div> | ||
169 | - </div> | ||
170 | - </li> | ||
171 | - | ||
172 | - <li class="clearfix with_radio_buttons"> | ||
173 | - <div class="label">Доставка</div> | ||
174 | - <div class="label float"><label><?= $t->_("delivery") ?><span class="required">∗</span></label></div> | ||
175 | - <div class="input float"> | ||
176 | - <div class="input_radio"><label for="r1"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/1' ) ?></label> | ||
177 | - <div class="question_mark"></div> | ||
178 | - <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/111' ) ?></div> | ||
179 | - | ||
180 | - </div> | ||
181 | - | ||
182 | - <div class="child" style="padding-left:20px;padding-top:10px;"> | ||
183 | - | ||
184 | - <input type="radio" name="order_delivery" class="order_delivery funbind" value="10001" id="r10001" <?= !empty($customer['delivery']) && $customer['delivery'] == '10001' ? 'checked' : 'checked' ?> /><label for="r10001"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/10001' ) ?></label> | ||
185 | - <br /><br /> | ||
186 | - | ||
187 | - <input type="radio" name="order_delivery" class="order_delivery funbind" value="10003" id="r10003" <?= !empty($customer['delivery']) && $customer['delivery'] == '10003' ? 'checked' : '' ?> /><label for="r10003"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/10003' ) ?></label> | ||
188 | - <br /><br /> | ||
189 | - <input type="radio" name="order_delivery" class="order_delivery funbind" value="10004" id="r10004" <?= !empty($customer['delivery']) && $customer['delivery'] == '10004' ? 'checked' : '' ?> /><label for="r10004"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/10004' ) ?></label> | ||
190 | - <!-- | ||
191 | - <br /><br /> | ||
192 | - <input type="radio" name="order_delivery" class="order_delivery funbind" value="10005" id="r10005" <?= !empty($customer['delivery']) && $customer['delivery'] == '10005' ? 'checked' : '' ?> /><label for="r10005"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/10005' ) ?></label> | ||
193 | - --> | ||
194 | - </div> | ||
195 | - <br> | ||
196 | - | ||
197 | - | ||
198 | - <div class="input_radio"><input type="radio" name="order_delivery" class="order_delivery unbind" value="7" id="r71" <?= !empty($customer['delivery']) && $customer['delivery'] == 7 ? 'checked' : '' ?> /><label for="r71"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/7' ) ?></label> | ||
199 | - <div class="question_mark"></div> | ||
200 | - <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/77' ) ?></div> | ||
201 | - </div><br> | ||
202 | - | ||
203 | - | ||
204 | - </div> | ||
205 | - <div class="label float no_marge"><label for="order_delivery"><?= $t->_("delivery_in_ukraine")?><span class="required"></span></label></div> | ||
206 | - <div class="input float no_marge"> | ||
207 | - <div class="input_radio"><input type="radio" name="order_delivery" class="order_delivery bind" value="3" id="r3" <?= !empty($customer['delivery']) && $customer['delivery'] ==8 ? 'checked' : '' ?> /><label for="r3"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/3' ) ?></label> | ||
208 | - <div class="question_mark"></div> | ||
209 | - <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/33' ) ?></div> | ||
210 | - </div><br> | ||
211 | - <div class="input_radio"><input type="radio" name="order_delivery" class="order_delivery unbind" value="9" id="r4" <?= !empty($customer['delivery']) && $customer['delivery'] == 9 ? 'checked' : '' ?> /><label for="r4"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/9' ) ?></label> | ||
212 | - <div class="question_mark"></div> | ||
213 | - <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/99' ) ?></div> | ||
214 | - </div><br> | ||
215 | - <div class="input_radio"><input type="radio" name="order_delivery" class="order_delivery unbind" value="10" id="r5" <?= !empty($customer['delivery']) && $customer['delivery'] == 10 ? 'checked' : '' ?> /><label for="r5"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/10' ) ?></label> | ||
216 | - <div class="question_mark"></div> | ||
217 | - <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/1010' ) ?></div> | ||
218 | - </div><br> | ||
219 | - <div class="input_radio"><input type="radio" name="order_delivery" class="order_delivery unbind" value="11" id="r6" <?= !empty($customer['delivery']) && $customer['delivery'] == 11 ? 'checked' : '' ?> /><label for="r6"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/11' ) ?></label> | ||
220 | - <div class="question_mark"></div> | ||
221 | - <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/1111' ) ?></div> | ||
222 | - </div><br> | ||
223 | - <div class="input_radio"><input type="radio" name="order_delivery" class="order_delivery unbind" value="12" id="r7" <?= !empty($customer['delivery']) && $customer['delivery'] == 12 ? 'checked' : '' ?> /><label for="r7"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/12' ) ?></label> | ||
224 | - <div class="question_mark"></div> | ||
225 | - <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/1212' ) ?></div> | ||
226 | - </div><br> | ||
227 | - | ||
228 | - <!-- | ||
229 | - <div class="description"> | ||
230 | - Доставимо Ваше замовлення на цю адресу! <br /> | ||
231 | - Вартість доставки 30 або 50 грн залежно від габаритів замовлення | ||
232 | - </div> | ||
233 | - --> | ||
234 | - </div> | ||
235 | - </li> | ||
236 | - <li class="clearfix owner_city display_none"> | ||
237 | - <div class="label float"><label for="order_city"><?= $t->_("city")?><span class="required">∗</span></label></div> | ||
238 | - <div class="input float ui-widget"> | ||
239 | - <input type="text" name="order_city" class="form-text" id="order_city" value="<?= isset($customer['city']) && !empty($customer['city']) ? $customer['city'] : '' ?>"> | ||
240 | - </div> | ||
241 | - <div class="display_none" id="loading_city"></div> | ||
242 | - </li> | ||
243 | - | ||
244 | - <li class="clearfix order_city_novaposhta display_none"> | ||
245 | - <div class="label float"><label for="order_city_novaposhta"><?= $t->_("city")?><span class="required">∗</span></label></div> | ||
246 | - <div class="input float ui-widget"> | ||
247 | - <input type="text" name="order_city_novaposhta" class="form-text" id="order_city_novaposhta" value=""> | ||
248 | - <input type="hidden" name="order_city_ref" class="form-text" id="order_city_ref" value=""> | ||
249 | - <div class="ajax_cities"></div> | ||
250 | - <div class="description display_none"> | ||
251 | - <?= $t->_("no_city")?> | ||
252 | - </div> | ||
253 | - </div> | ||
254 | - <div class="display_none" id="loading_city"></div> | ||
255 | - </li> | ||
256 | - <li class="clearfix owner_address display_none"> | ||
257 | - <div class="label float"><label for="order_address" id="label_order_address"><?= $t->_("your_address") ?><span class="required">∗</span></label></div> | ||
258 | - <div class="input float"> | ||
259 | - <input type="text" name="order_address" id="order_address" class="name" value="<?= isset($customer['address']) && !empty($customer['address']) ? $customer['address'] : '' ?>"> | ||
260 | - <div class="description address_mark display_none1"> | ||
261 | - <?= $t->_("address_mark")?> | ||
262 | - </div> | ||
263 | - </div> | ||
264 | - </li> | ||
265 | - | ||
266 | - <li class="clearfix owner_address_s display_none"> | ||
267 | - <div class="label float"><label for="order_address_s" id="label_order_address_s"><?= $t->_("warehouse_address") ?><span class="required">∗</span></label></div> | ||
268 | - <div class="input float"> | ||
269 | - <input type="text" name="store_address" id="order_address_s" style="float:left;margin-right:20px;" class="name" value="<?= isset($customer['address']) && !empty($customer['address']) ? $customer['address'] : '' ?>"> <a href="http://www.autolux.ua/representatives/" target="_blank">Оберіть склад</a> | ||
270 | - </div> | ||
271 | - </li> | ||
272 | - | ||
273 | - <li class="clearfix store_address display_none"> | ||
274 | - <div class="label float"><label for="store_address" ><?= $t->_("warehouse_address") ?><span class="required">∗</span></label></div> | ||
275 | - <div class="input float"> | ||
276 | - <select name="store_address" id="store_address"> | ||
277 | - <option value="0"></option> | ||
278 | - </select> | ||
279 | - <input type="hidden" name="order_store_address_ref" class="form-text" id="order_store_address_ref" value=""> | ||
280 | - </div> | ||
281 | - <div class="display_none" id="loading_office"></div> | ||
282 | - </li> | ||
283 | - | ||
284 | - <li class="clearfix with_radio_buttons"> | ||
285 | - <div class="label float"><label for="order_pay"><?= $t->_("methods_of_payments")?><span class="required">∗</span></label></div> | ||
286 | - <div class="input float"> | ||
287 | - <div class="input_radio"> | ||
288 | - <input type="radio" name="order_pay" value="1" id="r16" <?= !empty($customer['pay']) && $customer['pay'] == 1 ? 'checked' : 'checked' ?> /> | ||
289 | - <label for="r16"> | ||
290 | - <span></span><?= \config::get( 'global#pay/'.$lang_id.'/1' ) ?> | ||
291 | - </label> | ||
292 | - <div class="question_mark"></div> | ||
293 | - <div class="additional_info"><?= \config::get( 'global#pay/'.$lang_id.'/11' ) ?></div> | ||
294 | - </div><br> | ||
295 | - <div class="input_radio"> | ||
296 | - <input type="radio" name="order_pay" value="2" id="r17" <?= !empty($customer['pay']) && $customer['pay'] == 2 ? 'checked' : '' ?> /> | ||
297 | - <label for="r17"> | ||
298 | - <span></span><?= \config::get( 'global#pay/'.$lang_id.'/2' ) ?> | ||
299 | - </label> | ||
300 | - <div class="question_mark"></div> | ||
301 | - <div class="additional_info"><?= \config::get( 'global#pay/'.$lang_id.'/22' ) ?></div> | ||
302 | - </div><br> | ||
303 | - <div class="input_radio"> | ||
304 | - <input type="radio" name="order_pay" value="3" id="r18" <?= !empty($customer['pay']) && $customer['pay'] == 3 ? 'checked' : '' ?> /> | ||
305 | - <label for="r18"> | ||
306 | - <span></span><?= \config::get( 'global#pay/'.$lang_id.'/3' ) ?> | ||
307 | - </label> | ||
308 | - <div class="question_mark"></div> | ||
309 | - <div class="additional_info"><?= \config::get( 'global#pay/'.$lang_id.'/33' ) ?></div> | ||
310 | - </div><br> | ||
311 | - <div class="input_radio"> | ||
312 | - <input type="radio" name="order_pay" value="4" id="r19" <?= !empty($customer['pay']) && $customer['pay'] == 4 ? 'checked' : '' ?> /> | ||
313 | - <label for="r19"> | ||
314 | - <span></span><?= \config::get( 'global#pay/'.$lang_id.'/4' ) ?> | ||
315 | - </label> | ||
316 | - <div class="question_mark"></div> | ||
317 | - <div class="additional_info"><?= \config::get( 'global#pay/'.$lang_id.'/44' ) ?></div> | ||
318 | - </div><br> | ||
319 | - </div> | ||
320 | - </li> | ||
321 | - <li class="clearfix with_textarea"> | ||
322 | - <div class="label float"><label for="order_name"><?= $t->_("comment_text") ?></label></div> | ||
323 | - <div class="input float"> | ||
324 | - <textarea name="order_comments"><?= isset($customer['comments']) && !empty($customer['comments']) ? $customer['comments'] : '' ?></textarea> | ||
325 | - <div class="description"> | ||
326 | - <?= $t->_("additional_information")?> | ||
327 | - </div> | ||
328 | - </div> | ||
329 | - </li> | ||
330 | - </ul> | ||
331 | - <div class="submit"> | ||
332 | - <input style="padding:10px;margin-bottom:70px;" id="send_order" type="submit" value="<?= $t->_("checkout")?>" class="btn green"> | ||
333 | - </div> | ||
334 | -</div> | ||
335 | - | ||
336 | -</div> | ||
337 | -</form> | ||
338 | - | ||
339 | - | ||
340 | - | ||
341 | -<div class="registrated_customer clearfix<?= empty( $message ) ? ' display_none' : '' ?>"> | ||
342 | - <div class="clearfix"> | ||
343 | - <div class="float login_with login_with_email"> | ||
344 | - <form id="customer_login_from_order_<?= ($lang_id == 1 ? 'ua' : 'ru') ?>" method="post"> | ||
345 | - <ul class="form clearfix"> | ||
346 | - <li class="clearfix"> | ||
347 | - <div class="label float"><label for="login_email">Email<span class="required">∗</span></label></div> | ||
348 | - <div class="input float"><input type="text" name="login_email" id="login_email" class="name" value="<?= isset($customer_email) && !empty($customer_email) ? $customer_email : '' ?>"></div> | ||
349 | - </li> | ||
350 | - <li class="clearfix"> | ||
351 | - <div class="label float"><label for="login_passwd">Пароль<span class="required">∗</span></label></div> | ||
352 | - <div class="input float"><input type="password" name="login_passwd" id="login_passwd" class="name" value=""></div> | ||
353 | - </li> | ||
354 | - </ul> | ||
355 | - <div class="submit clearfix"> | ||
356 | - <input type="submit" value="<?= $t->_("sign_in")?>" class="btn green float float_right"> | ||
357 | - <a href="<?= $this->seoUrl->setUrl($this->url->get([ 'for' => 'restore_passwd' ])) ?>" class="float float_right"><?= $t->_("forgot_your_password") ?></a> | ||
358 | - </div> | ||
359 | - <div class="submit clearfix"> | ||
360 | - <a href="<?= $this->seoUrl->setUrl($this->url->get([ 'for' => 'registration' ])) ?>" class="float float_right do_registration"><?= $t->_("create_an_account") ?></a> | ||
361 | - </div> | ||
362 | - </form> | ||
363 | - </div> | ||
364 | - | ||
365 | - <div class="float login_with login_with_social last"> | ||
366 | - <div class="clearfix"> | ||
367 | - <p class="login_with_social_title"><?= $t->_("login_via_social_network")?></p> | ||
368 | - <div class="login_with_social_wrapper"> | ||
369 | - <a href="<?= $this->social->createUrl('vkontakte') ?>" class="float"><img src="/images/vk_32x32.png"></a> | ||
370 | - <a href="<?= $this->social->createUrl('facebook') ?>" class="float"><img src="/images/f_32x32.png"></a> | ||
371 | - <a href="<?= $this->social->createUrl('google') ?>" class="float last"><img src="/images/g_32x32.png"></a> | ||
372 | - </div> | ||
373 | - </div> | ||
374 | - </div> | ||
375 | - </div> | ||
376 | -</div> | ||
377 | - | ||
378 | - | ||
379 | -</div> | ||
380 | -</div> | ||
381 | - | ||
382 | - | ||
383 | - | ||
384 | -<?= $this->partial('partial/share'); ?> | ||
385 | - | ||
386 | -</div> | ||
387 | -</div> | ||
388 | -<script> | ||
389 | - <?php $customer = $this->models->getCustomers()->getCustomer( $this->session->get('id') );?> | ||
390 | - $( document ).ready(function() { | ||
391 | -// $('body').on('click','.order_fifth_column', function(){ | ||
392 | -// eventMailer.email = '<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' ?'<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' : $('#login_email').val(); | ||
393 | -// eventMailer.event_type = 'spy_event'; | ||
394 | -// eventMailer.action = 'order_delete'; | ||
395 | -// eventMailer.item_url = 'semena.in.ua'+$(this).closest('ul').find('h2 a').attr('href'); | ||
396 | -// eventMailer.item_image = $(this).closest('ul').find('img').attr('src'); | ||
397 | -// eventMailer.item_name = $(this).closest('ul').find('h2 a').html(); | ||
398 | -// eventMailer.price = $(this).closest('ul').find('.order_fourth_column .price').html(); | ||
399 | -// eventMailer.item_id = $(this).closest('ul').find('.order_fifth_column a').data('item_id'); | ||
400 | -// eventMailer.quantity = $(this).closest('ul').find('.count_items').val(); | ||
401 | -// eventMailer.deleteCookie("userEmail"); | ||
402 | -// eventMailer.deleteOneItem(); | ||
403 | -// }); | ||
404 | -// $('body').on('click','.minus', function(){ | ||
405 | -// eventMailer.email = '<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' ?'<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' : $('#login_email').val(); | ||
406 | -// eventMailer.event_type = 'spy_event'; | ||
407 | -// eventMailer.action = 'order_add'; | ||
408 | -// eventMailer.item_url = 'semena.in.ua'+$(this).closest('ul').find('h2 a').attr('href'); | ||
409 | -// eventMailer.item_image = $(this).closest('ul').find('img').attr('src'); | ||
410 | -// eventMailer.item_name = $(this).closest('ul').find('h2 a').html(); | ||
411 | -// eventMailer.price = $(this).closest('ul').find('.order_fourth_column .price').html(); | ||
412 | -// eventMailer.item_id = $(this).closest('ul').find('.order_fifth_column a').data('item_id'); | ||
413 | -// eventMailer.quantity = $(this).closest('ul').find('.count_items').val(); | ||
414 | -// eventMailer.deleteCookie("userEmail"); | ||
415 | -// eventMailer.sendWithTimeOut(); | ||
416 | -// }); | ||
417 | -// $('body').on('click','.plus', function(){ | ||
418 | -// eventMailer.email = '<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' ?'<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' : $('#login_email').val(); | ||
419 | -// eventMailer.event_type = 'spy_event'; | ||
420 | -// eventMailer.action = 'order_add'; | ||
421 | -// eventMailer.item_url = 'semena.in.ua'+$(this).closest('ul').find('h2 a').attr('href'); | ||
422 | -// eventMailer.item_image = $(this).closest('ul').find('img').attr('src'); | ||
423 | -// eventMailer.item_name = $(this).closest('ul').find('h2 a').html(); | ||
424 | -// eventMailer.price = $(this).closest('ul').find('.order_fourth_column .price').html(); | ||
425 | -// eventMailer.item_id = $(this).closest('ul').find('.order_fifth_column a').data('item_id'); | ||
426 | -// eventMailer.quantity = $(this).closest('ul').find('.count_items').val(); | ||
427 | -// eventMailer.deleteCookie("userEmail"); | ||
428 | -// eventMailer.sendWithTimeOut(); | ||
429 | -// }); | ||
430 | -// $('body').on('mouseover','.count_items', function(){ | ||
431 | -// | ||
432 | -// eventMailer.email = '<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' ?'<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' : $('#login_email').val(); | ||
433 | -// eventMailer.event_type = 'spy_event'; | ||
434 | -// eventMailer.action = 'order_change'; | ||
435 | -// eventMailer.item_url = 'semena.in.ua'+$(this).closest('ul').find('h2 a').attr('href'); | ||
436 | -// eventMailer.item_image = $(this).closest('ul').find('img').attr('src'); | ||
437 | -// eventMailer.item_name = $(this).closest('ul').find('h2 a').html(); | ||
438 | -// eventMailer.price = $(this).closest('ul').find('.order_fourth_column .price').html(); | ||
439 | -// eventMailer.item_id = $(this).closest('ul').find('.order_fifth_column a').data('item_id'); | ||
440 | -// eventMailer.quantity = $(this).closest('ul').find('.count_items').val(); | ||
441 | -// eventMailer.deleteCookie("userEmail"); | ||
442 | -// eventMailer.startChanging(); | ||
443 | -// }); | ||
444 | -// $('body').on('keyup','.count_items', function(){ | ||
445 | -// eventMailer.email = '<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' ?'<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' : $('#login_email').val(); | ||
446 | -// eventMailer.event_type = 'spy_event'; | ||
447 | -// eventMailer.action = 'order_change'; | ||
448 | -// eventMailer.item_url = 'semena.in.ua'+$(this).closest('ul').find('h2 a').attr('href'); | ||
449 | -// eventMailer.item_image = $(this).closest('ul').find('img').attr('src'); | ||
450 | -// eventMailer.item_name = $(this).closest('ul').find('h2 a').html(); | ||
451 | -// eventMailer.price = $(this).closest('ul').find('.order_fourth_column .price').html(); | ||
452 | -// eventMailer.item_id = $(this).closest('ul').find('.order_fifth_column a').data('item_id'); | ||
453 | -// eventMailer.quantity = $(this).closest('ul').find('.count_items').val(); | ||
454 | -// eventMailer.deleteCookie("userEmail"); | ||
455 | -// eventMailer.sendWithTimeOut(); | ||
456 | -// }); | ||
457 | - | ||
458 | - | ||
459 | - | ||
460 | -// $('body').on('submit','.order_add_form', function(e){ | ||
461 | -// | ||
462 | -// // e.preventDefault(); | ||
463 | -// var val = $('span[id=total_price_basket]').html(); | ||
464 | -// | ||
465 | -// if(val > 100) { | ||
466 | -// var items = []; | ||
467 | -// | ||
468 | -// | ||
469 | -// | ||
470 | -// $('body').find('.order_form_content').each(function () { | ||
471 | -// var item = { | ||
472 | -// item_url: 'semena.in.ua'+$(this).find('h2 a').attr('href'), | ||
473 | -// item_image: $(this).find('img').attr('src'), | ||
474 | -// item_name: $(this).find('h2 a').html(), | ||
475 | -// price: $(this).find('.order_fourth_column .price').html(), | ||
476 | -// item_id: $(this).find('.order_fifth_column a').data('item_id'), | ||
477 | -// quantity: $(this).find('.count_items').val(), | ||
478 | -// catalog: $(this).data('catalog') | ||
479 | -// }; | ||
480 | -// | ||
481 | -// | ||
482 | -// items.push(item) | ||
483 | -// }); | ||
484 | -// | ||
485 | -// | ||
486 | -// eventMailer.email = '<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' ?'<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' : $('#login_email').val();; | ||
487 | -// eventMailer.event_type = 'spy_event'; | ||
488 | -// eventMailer.event = 'order_finish'; | ||
489 | -// eventMailer.action = 'order_finish'; | ||
490 | -// eventMailer.name = '<?//= isset( $customer[0]['name'] )?$customer[0]['name'] : ''?>//'; | ||
491 | -// eventMailer.order_num = '<?//= isset( $data['oid'] )?$data['oid'] : ''?>//'; | ||
492 | -// eventMailer.sum = val; | ||
493 | -// eventMailer.phone = '<?//= isset( $customer[0]['phone'] )?$customer[0]['phone'] : 'Не указан'?>//'; | ||
494 | -// eventMailer.address = ''; | ||
495 | -// eventMailer.delivery = 'Не указан'; | ||
496 | -// eventMailer.pay = 'Не указан'; | ||
497 | -// eventMailer.items = JSON.stringify(items); | ||
498 | -// | ||
499 | -// | ||
500 | -// | ||
501 | -// | ||
502 | -// | ||
503 | -// for (var i = 0; i < items.length; i++) { | ||
504 | -// if (items[i].catalog == 334) { | ||
505 | -// eventMailer.event_type = 'event_offline'; | ||
506 | -// eventMailer.event = 'with_cucumbers'; | ||
507 | -// eventMailer.callOtherDomain(); | ||
508 | -// eventMailer.deleteCookie("userEmail"); | ||
509 | -// | ||
510 | -// } | ||
511 | -// | ||
512 | -// if (items[i].catalog == 471) { | ||
513 | -// eventMailer.event_type = 'event_offline'; | ||
514 | -// eventMailer.event = 's_lukovichnіe'; | ||
515 | -// eventMailer.callOtherDomain(); | ||
516 | -// eventMailer.deleteCookie("userEmail"); | ||
517 | -// | ||
518 | -// } | ||
519 | -// | ||
520 | -// if (items[i].catalog == 471) { | ||
521 | -// eventMailer.event_type = 'event_offline'; | ||
522 | -// eventMailer.event = 's_lukovichnіe'; | ||
523 | -// eventMailer.callOtherDomain(); | ||
524 | -// eventMailer.deleteCookie("userEmail"); | ||
525 | -// | ||
526 | -// } | ||
527 | -// | ||
528 | -// var spec_items = [305,336,326,306,333,308,504,502,332]; | ||
529 | -// if (eventMailer.find(spec_items, items[i].catalog)) { | ||
530 | -// eventMailer.event_type = 'event_offline'; | ||
531 | -// eventMailer.event = 'borsch'; | ||
532 | -// eventMailer.callOtherDomain(); | ||
533 | -// eventMailer.deleteCookie("userEmail"); | ||
534 | -// | ||
535 | -// } | ||
536 | -// | ||
537 | -// | ||
538 | -// | ||
539 | -// var city_1 = $('#order_address').val(); | ||
540 | -// var city_2 = $('#order_city_novaposhta').val(); | ||
541 | -// var city_3 = $('#order_city').val(); | ||
542 | -// | ||
543 | -// | ||
544 | -// if (city_1.indexOf('Киев') || city_2.indexOf('Киев') || city_3.indexOf('Киев') ) { | ||
545 | -// eventMailer.event_type = 'event_offline'; | ||
546 | -// eventMailer.event = 'kiev_mail'; | ||
547 | -// eventMailer.callOtherDomain(); | ||
548 | -// eventMailer.deleteCookie("userEmail"); | ||
549 | -// | ||
550 | -// } | ||
551 | -// | ||
552 | -// if (city_1.indexOf('Київ') || city_2.indexOf('Київ') || city_3.indexOf('Київ') ) { | ||
553 | -// eventMailer.event_type = 'event_offline'; | ||
554 | -// eventMailer.event = 'kiev_mail'; | ||
555 | -// eventMailer.callOtherDomain(); | ||
556 | -// eventMailer.deleteCookie("userEmail"); | ||
557 | -// | ||
558 | -// } | ||
559 | -// | ||
560 | -// } | ||
561 | -// | ||
562 | -// | ||
563 | -// eventMailer.callOtherDomain(); | ||
564 | -// eventMailer.deleteCookie("userEmail"); | ||
565 | -// | ||
566 | -// if ( eventMailer.sum >= 250 && eventMailer.sum < 499 ){ | ||
567 | -// eventMailer.event = 'free_delivery_500'; | ||
568 | -// eventMailer.callOtherDomain(); | ||
569 | -// eventMailer.deleteCookie("userEmail"); | ||
570 | -// } | ||
571 | -// | ||
572 | -// } | ||
573 | -// | ||
574 | -// }); | ||
575 | - | ||
576 | - | ||
577 | - $('.promo_code input[type=button]').click(applyPromoCode); | ||
578 | - | ||
579 | - function applyPromoCode() { | ||
580 | - const successMessage = '<?= $t->_('success_promo_code') ?>'; | ||
581 | - const errorMessage = '<?= $t->_('error_promo_code') ?>'; | ||
582 | - const $alert = $('.alert'); | ||
583 | - $alert.css('display', 'inline-block'); | ||
584 | - $.ajax({ | ||
585 | - url: '/ajax/apply_promo_code', | ||
586 | - method: 'POST', | ||
587 | - dataType: 'json', | ||
588 | - data: { | ||
589 | - promo_code: $('#promo_code').val() | ||
590 | - }, | ||
591 | - success: function (cart) { | ||
592 | - if(cart.status == 'success'){ | ||
593 | - renderCart(cart.cart); | ||
594 | - $('#total_price_basket').text(cart.cart['total_sum']); | ||
595 | - $alert.addClass('alert-success').removeClass('alert-danger'); | ||
596 | - $alert.find('strong').text(cart.successMessage); | ||
597 | - } else { | ||
598 | - $alert.addClass('alert-danger').removeClass('alert-success'); | ||
599 | - $alert.find('strong').text(cart.errorMessage); | ||
600 | - } | ||
601 | - | ||
602 | - }, | ||
603 | - error: function (error) { | ||
604 | - $alert.addClass('alert-danger').removeClass('alert-success'); | ||
605 | - $alert.find('strong').text(errorMessage); | ||
606 | - } | ||
607 | - }); | ||
608 | - } | ||
609 | - | ||
610 | - function renderCart(cart) { | ||
611 | - var html = ''; | ||
612 | - var items = cart.items; | ||
613 | - for(var i = 0; i < items.length; i++) { | ||
614 | - html += '<li class="clearfix main_li order_form_content">' + | ||
615 | - '<ul>' + | ||
616 | - '<li class="float order_first_column">' + | ||
617 | - '<div class="order_img_container">'+ | ||
618 | - '<a href="' + items[i]['alias'] + '" target="_blank">'+ | ||
619 | - '<img src="'+ items[i]['cover'] + '" alt="' + items[i]['title'] + '" width="61" height="100" class="float order_img">' + | ||
620 | - '</a>'+ | ||
621 | - '</div>'+ | ||
622 | - '<h2><a href="' + items[i]['alias'] + '" target="_blank">' + items[i]['title'] + '</a></h2>' + | ||
623 | - '<input type="hidden" name="size[' + items[i]['id'] + ']" value="' + items[i]['size'] + '" /><p><?= $t->_("packing") ?> ' + items[i]['size'] + '</p>' + | ||
624 | - (items[i]['color'] ? '<input type="hidden" name="color['+items[i]['id'] + ']" value="' + items[i]['color'] + '" /><div class="float properties"><?= $t->_("color") ?> : </div>'+'<div class="float1 properties" style="color:'+items[i]['absolute_color']+'">'+items[i]['color']+'</div>' : '')+ | ||
625 | - (items[i]['status'] == 1 ? '<input type="hidden" name="is['+items[i]['id']+ ']" value="<?= $t->_("in_stock") ?>" /><p data-stock="1" id="stock" style="color: green; font-weight: bold;" class="properties properties_presence "><?= $t->_("in_stock") ?></p>' : '<input type="hidden" name="is['+items[i]['id']+']" value="<?= $t->_("missing") ?>" /><p data-stock="0" id="stock" style="color: red; font-weight: bold;" class="properties properties_absent"><?= $t->_("missing") ?></p>')+ | ||
626 | - | ||
627 | - '</li>' + | ||
628 | - '<li class="float order_second_column"><span class="price">' + items[i]['price2'] + '</span><span> грн</span></li>' + | ||
629 | - '<li class="float order_third_column">' + | ||
630 | - '<div class="float count minus">' + | ||
631 | - '</div>' + | ||
632 | - '<div class="float count count_input">' + | ||
633 | - '<input name="count_items[' + items[i]['id'] + ']" data-item_id="' + items[i]['id'] + '" class="count_items" type="text" value="' + items[i]['count'] + '" />' + | ||
634 | - '</div>' + | ||
635 | - '<div class="float count plus">'+ | ||
636 | - '</li>' + | ||
637 | - '<li class="float order_fourth_column">'+ | ||
638 | - '<span class="price">' + items[i]['total_price']+'</span><span> грн</span>' + | ||
639 | - '</li>'+ | ||
640 | - '<li class="float order_fifth_column">' + | ||
641 | - '<a href="/basket" data-item_id="'+items[i]['id']+'"><img src="/images/basket_del.png" alt="" width="18" height="18" /></a>' + | ||
642 | - '</li>' + | ||
643 | - '</ul>'; | ||
644 | - } | ||
645 | - $('.order_form_content').remove(); | ||
646 | - $(html).insertAfter('.order_form_header'); | ||
647 | - } | ||
648 | - | ||
649 | - }); | ||
650 | - | ||
651 | - | ||
652 | - | ||
653 | - | 1 | +<?php //p($items,1) ?> |
2 | +<div id="content" class="clearfix"> | ||
3 | + | ||
4 | +<div style="width: 100%; min-width: 960px; height: 193px; margin: 0px auto;background:url(/images/order_<?php $lang = explode( '/', $this->getDi()->get('request')->get('_url')); echo (array_pop($lang) == 'ru')?'ru':'uk';?>.gif) center no-repeat;margin-bottom:-30px;position:relative;z-index:9; "> | ||
5 | +</div> | ||
6 | + | ||
7 | +<div class="order"> | ||
8 | +<div class="breadcrumbs"> | ||
9 | + <div class="inner"> | ||
10 | + <div class="order_menu_shadow"></div> | ||
11 | + <ul class="clearfix"> | ||
12 | + <li class="float"><a href="<?= $this->seoUrl->setUrl('/')?>" title="<?= $t->_("main_page") ?>"><?= $t->_("main_page") ?></a></li> | ||
13 | + <li class="float more"><img src="/images/breadcrumbs_arrow.png" alt="" height="7" width="7" /></li> | ||
14 | + <li class="float"><a href="<?= $this->seoUrl->setUrl('/basket')?>" title="<?= $t->_("cart")?>" class="breadcrumbs_last"><?= $t->_("cart")?></a></li> | ||
15 | + </ul> | ||
16 | + </div> | ||
17 | +</div> | ||
18 | + | ||
19 | +<div class="inner"> | ||
20 | + <?php | ||
21 | + | ||
22 | + $message = $this->flash->getMessages(); | ||
23 | + | ||
24 | + | ||
25 | + if( !empty( $message ) ) | ||
26 | + { | ||
27 | + if( isset($message['error']) && !empty($message['error']) ) | ||
28 | + { | ||
29 | + echo('<div class="errorMessage">'.$message['error']['0'].'</div>'); | ||
30 | + } | ||
31 | + else | ||
32 | + { | ||
33 | + echo('<div class="successMessage">'.$message['success']['0'].'</div>'); | ||
34 | + } | ||
35 | + } | ||
36 | + | ||
37 | + ?> | ||
38 | +</div> | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | +<div class="order_wrapper"> | ||
43 | +<div class="inner"> | ||
44 | +<div id="customer_pc"> | ||
45 | +<form method="post" action="" name="order_add" id="order_add_<?= ($lang_id == 1 ? 'ua' : 'ru') ?>" class="clearfix order_add_form"> | ||
46 | +<div class="order_form"> | ||
47 | + <div class="order_title"><h1><?= $t->_("cart") ?></h1></div> | ||
48 | + <ul class="form"> | ||
49 | + <li class="clearfix main_li order_form_header"> | ||
50 | + <ul> | ||
51 | + <li class="float order_first_column"><?= $t->_("name") ?></li> | ||
52 | + <li class="float order_second_column"><?= $t->_("cost_per_unit") ?></li> | ||
53 | + <li class="float order_third_column"><?= $t->_("number_of") ?></li> | ||
54 | + <li class="float order_fourth_column"><?= $t->_("cost") ?></li> | ||
55 | + </ul> | ||
56 | + </li> | ||
57 | + | ||
58 | + <?php | ||
59 | + | ||
60 | + $data_items = ''; | ||
61 | + | ||
62 | + if( !empty( $items ) ) | ||
63 | + { | ||
64 | + foreach( $items as $i ) | ||
65 | + { | ||
66 | + $data_items .= | ||
67 | + '<li class="clearfix main_li order_form_content" data-catalog = "'.$i['catalog'].'">'. | ||
68 | + '<ul>'. | ||
69 | + '<li class="float order_first_column">'. | ||
70 | + '<div class="order_img_container">'. | ||
71 | + '<a href="' . $this->seoUrl->setUrl($i['alias']) . '" target="_blank">'. | ||
72 | + '<img src="'.$i['cover'].'" alt="'.$i['title'].'" width="61" height="100" class="float order_img">'. | ||
73 | + '</a>'. | ||
74 | + '</div>'. | ||
75 | + '<h2><a href="' . $this->seoUrl->setUrl($i['alias']) . '" target="_blank">' . $i['title'] . '</a></h2>'. | ||
76 | + '<input type="hidden" name="size['.$i['id'].']" value="'.$i['size'].'" /><p>'.$t->_("packing").' '.$i['size'].'.</p>'. | ||
77 | + ($i['color'] ? '<input type="hidden" name="color['.$i['id'].']" value="'.$i['color'].'" /><div class="float properties">'.$t->_("color").': </div>'.'<div class="float1 properties" style="color:'.$i['absolute_color'].'">'.$i['color'].'</div>' : ''). | ||
78 | + ($i['status'] == 1 ? '<input type="hidden" name="is['.$i['id'].']" value="'.$t->_("in_stock").'" /><p data-stock="1" id="stock" style="color: green; font-weight: bold;" class="properties properties_presence ">'.$t->_("in_stock").'</p>' : '<input type="hidden" name="is['.$i['id'].']" value="'.$t->_("missing").'" /><p data-stock="0" id="stock" style="color: red; font-weight: bold;" class="properties properties_absent">'.$t->_("missing").'</p>'). | ||
79 | + | ||
80 | + '</li>'. | ||
81 | + '<li class="float order_second_column"><span class="price">'.$i['price2'].'</span><span> грн</span></li>'. | ||
82 | + '<li class="float order_third_column">'. | ||
83 | + '<div class="float count minus">'. | ||
84 | + '</div>'. | ||
85 | + '<div class="float count count_input">'. | ||
86 | + '<input name="count_items['.$i['id'].']" data-item_id="'.$i['id'].'" class="count_items" type="text" value="'.$i['count'].'" />'. | ||
87 | + '</div>'. | ||
88 | + '<div class="float count plus">'. | ||
89 | + '</li>'. | ||
90 | + '<li class="float order_fourth_column">'. | ||
91 | + '<span class="price">'.$i['total_price'].'</span><span> грн</span>'. | ||
92 | + '</li>'. | ||
93 | + '<li class="float order_fifth_column">'. | ||
94 | + '<a href="'.$this->seoUrl->setUrl('/basket').'" data-item_id="'.$i['id'].'"><img src="/images/basket_del.png" alt="" width="18" height="18" /></a>'. | ||
95 | + '</li>'. | ||
96 | + '</ul>'. | ||
97 | + '</li>'; | ||
98 | + } | ||
99 | + } | ||
100 | + | ||
101 | + echo( $data_items ); | ||
102 | + | ||
103 | + ?> | ||
104 | + | ||
105 | + | ||
106 | + <li class="order_last clearfix"> | ||
107 | + <span class="min_price_message"><?=$t->_("min_price") ?></span> | ||
108 | + <?= $t->_("total")?>: <span class="price" id="total_price_basket"><?= $total_price ?></span> <span>грн</span> | ||
109 | + </li> | ||
110 | + <li class="clearfix"> | ||
111 | + <div class="label float"><label for="promo_code">Промокод</label></div> | ||
112 | + <div class="input float promo_code"> | ||
113 | + <input type="text" name="promo_code" id="promo_code" value="<?= !empty($promo_code['code']) ? $promo_code['code'] : '' ?>"> | ||
114 | + <input type="button" value="Применить" class="btn green" style="float: none"> | ||
115 | + <div style="width: auto;display: none;padding: 5px 4px;" class="alert" role="alert"> | ||
116 | + <strong></strong> | ||
117 | + </div> | ||
118 | + </div> | ||
119 | + </li> | ||
120 | + </ul> | ||
121 | +</div> | ||
122 | + | ||
123 | +<div class="contacts_form"> | ||
124 | +<div class="contacts_form_title"><h1><?= $t->_("ordering") ?></h1></div> | ||
125 | +<div class="item_menu_header_menu clearfix"> | ||
126 | + <div class="inner"> | ||
127 | + <div class="tabs clearfix do_order"> | ||
128 | + <ul> | ||
129 | + <?php | ||
130 | + | ||
131 | + if( !empty( $customer ) ) | ||
132 | + { | ||
133 | + $data_tabs = '<li class="float active_tab first_tab new_customer"><a href="#" title="">'.$t->_("already_registered").'</a></li>'; | ||
134 | + } | ||
135 | + else | ||
136 | + { | ||
137 | + $data_tabs = | ||
138 | + '<li class="float '.(!empty( $message ) ? 'not_active' : 'active_tab').' first_tab new_customer"><a href="javascript:void(0)" title="">'.$t->_("new_customer").'</a></li>'. | ||
139 | + '<li class="float '.(!empty( $message ) ? 'active_tab' : 'not_active').' last_tab registrated_customer"><a href="javascript:void(0)" title="">'.$t->_("already_registered").'</a></li>'; | ||
140 | + } | ||
141 | + | ||
142 | + echo( $data_tabs ); | ||
143 | + | ||
144 | + ?> | ||
145 | + | ||
146 | + </ul> | ||
147 | + </div> | ||
148 | + </div> | ||
149 | +</div> | ||
150 | + | ||
151 | +<div class="new_customer<?= !empty( $message ) ? ' display_none' : '' ?>"> | ||
152 | + | ||
153 | + <ul id="ul_personal_info_new_customer" class="form clearfix"> | ||
154 | + <li class="clearfix"> | ||
155 | + <div class="label float"><label for="order_name"><?= $t->_("n_s")?><span class="required">∗</span></label></div> | ||
156 | + <div class="input float"><input type="text" name="order_name" id="order_name" class="name" value="<?= isset($customer['name']) && !empty($customer['name']) ? $customer['name'] : '' ?>"></div> | ||
157 | + </li> | ||
158 | + <li class="clearfix"> | ||
159 | + <div class="label float"><label for="order_phone"><?= $t->_("m_phone")?><span class="required">∗</span></label></div> | ||
160 | + <div class="input float"><input type="text" name="order_phone" class="order_phone" class="name" value="<?= isset($customer['phone']) && !empty($customer['phone']) ? $customer['phone'] : '' ?>"></div> | ||
161 | + </li> | ||
162 | + <li class="clearfix"> | ||
163 | + <div class="label float"><label for="order_email">Ваш email</label></div> | ||
164 | + <div class="input float"> | ||
165 | + <input type="text" name="order_email" id="order_email" class="name" value="<?= (isset($customer['email']) && !empty($customer['email']) && strlen(strpos($customer['email'], 'facebook'))==0 && strlen(strpos($customer['email'], 'vkontakte'))==0 ) ? $customer['email'] : '' ?>"> | ||
166 | + <div class="description"> | ||
167 | + <input type="checkbox" id="get_info" name="order_get_info" <?= !empty($customer['subscribed']) && $customer['subscribed'] == 1 ? 'checked' : 'checked' ?> /> | ||
168 | + <label for="get_info"><span></span><?= $t->_("receive")?></label> | ||
169 | + </div> | ||
170 | + </div> | ||
171 | + </li> | ||
172 | + | ||
173 | + <li class="clearfix with_radio_buttons"> | ||
174 | + <div class="label">Доставка</div> | ||
175 | + <div class="label float"><label><?= $t->_("delivery") ?><span class="required">∗</span></label></div> | ||
176 | + <div class="input float"> | ||
177 | + <div class="input_radio"><label for="r1"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/1' ) ?></label> | ||
178 | + <div class="question_mark"></div> | ||
179 | + <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/111' ) ?></div> | ||
180 | + | ||
181 | + </div> | ||
182 | + | ||
183 | + <div class="child" style="padding-left:20px;padding-top:10px;"> | ||
184 | + | ||
185 | + <input type="radio" name="order_delivery" class="order_delivery funbind" value="10001" id="r10001" <?= !empty($customer['delivery']) && $customer['delivery'] == '10001' ? 'checked' : 'checked' ?> /><label for="r10001"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/10001' ) ?></label> | ||
186 | + <br /><br /> | ||
187 | + | ||
188 | + <input type="radio" name="order_delivery" class="order_delivery funbind" value="10003" id="r10003" <?= !empty($customer['delivery']) && $customer['delivery'] == '10003' ? 'checked' : '' ?> /><label for="r10003"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/10003' ) ?></label> | ||
189 | + <br /><br /> | ||
190 | + <input type="radio" name="order_delivery" class="order_delivery funbind" value="10004" id="r10004" <?= !empty($customer['delivery']) && $customer['delivery'] == '10004' ? 'checked' : '' ?> /><label for="r10004"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/10004' ) ?></label> | ||
191 | + <!-- | ||
192 | + <br /><br /> | ||
193 | + <input type="radio" name="order_delivery" class="order_delivery funbind" value="10005" id="r10005" <?= !empty($customer['delivery']) && $customer['delivery'] == '10005' ? 'checked' : '' ?> /><label for="r10005"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/10005' ) ?></label> | ||
194 | + --> | ||
195 | + </div> | ||
196 | + <br> | ||
197 | + | ||
198 | + | ||
199 | + <div class="input_radio"><input type="radio" name="order_delivery" class="order_delivery unbind" value="7" id="r71" <?= !empty($customer['delivery']) && $customer['delivery'] == 7 ? 'checked' : '' ?> /><label for="r71"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/7' ) ?></label> | ||
200 | + <div class="question_mark"></div> | ||
201 | + <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/77' ) ?></div> | ||
202 | + </div><br> | ||
203 | + | ||
204 | + | ||
205 | + </div> | ||
206 | + <div class="label float no_marge"><label for="order_delivery"><?= $t->_("delivery_in_ukraine")?><span class="required"></span></label></div> | ||
207 | + <div class="input float no_marge"> | ||
208 | + <div class="input_radio"><input type="radio" name="order_delivery" class="order_delivery bind" value="3" id="r3" <?= !empty($customer['delivery']) && $customer['delivery'] ==8 ? 'checked' : '' ?> /><label for="r3"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/3' ) ?></label> | ||
209 | + <div class="question_mark"></div> | ||
210 | + <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/33' ) ?></div> | ||
211 | + </div><br> | ||
212 | + <div class="input_radio"><input type="radio" name="order_delivery" class="order_delivery unbind" value="9" id="r4" <?= !empty($customer['delivery']) && $customer['delivery'] == 9 ? 'checked' : '' ?> /><label for="r4"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/9' ) ?></label> | ||
213 | + <div class="question_mark"></div> | ||
214 | + <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/99' ) ?></div> | ||
215 | + </div><br> | ||
216 | + <div class="input_radio"><input type="radio" name="order_delivery" class="order_delivery unbind" value="10" id="r5" <?= !empty($customer['delivery']) && $customer['delivery'] == 10 ? 'checked' : '' ?> /><label for="r5"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/10' ) ?></label> | ||
217 | + <div class="question_mark"></div> | ||
218 | + <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/1010' ) ?></div> | ||
219 | + </div><br> | ||
220 | + <div class="input_radio"><input type="radio" name="order_delivery" class="order_delivery unbind" value="11" id="r6" <?= !empty($customer['delivery']) && $customer['delivery'] == 11 ? 'checked' : '' ?> /><label for="r6"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/11' ) ?></label> | ||
221 | + <div class="question_mark"></div> | ||
222 | + <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/1111' ) ?></div> | ||
223 | + </div><br> | ||
224 | + <div class="input_radio"><input type="radio" name="order_delivery" class="order_delivery unbind" value="12" id="r7" <?= !empty($customer['delivery']) && $customer['delivery'] == 12 ? 'checked' : '' ?> /><label for="r7"><span></span><?= \config::get( 'global#delivery/'.$lang_id.'/12' ) ?></label> | ||
225 | + <div class="question_mark"></div> | ||
226 | + <div class="additional_info"><?= \config::get( 'global#delivery/'.$lang_id.'/1212' ) ?></div> | ||
227 | + </div><br> | ||
228 | + | ||
229 | + <!-- | ||
230 | + <div class="description"> | ||
231 | + Доставимо Ваше замовлення на цю адресу! <br /> | ||
232 | + Вартість доставки 30 або 50 грн залежно від габаритів замовлення | ||
233 | + </div> | ||
234 | + --> | ||
235 | + </div> | ||
236 | + </li> | ||
237 | + <li class="clearfix owner_city display_none"> | ||
238 | + <div class="label float"><label for="order_city"><?= $t->_("city")?><span class="required">∗</span></label></div> | ||
239 | + <div class="input float ui-widget"> | ||
240 | + <input type="text" name="order_city" class="form-text" id="order_city" value="<?= isset($customer['city']) && !empty($customer['city']) ? $customer['city'] : '' ?>"> | ||
241 | + </div> | ||
242 | + <div class="display_none" id="loading_city"></div> | ||
243 | + </li> | ||
244 | + | ||
245 | + <li class="clearfix order_city_novaposhta display_none"> | ||
246 | + <div class="label float"><label for="order_city_novaposhta"><?= $t->_("city")?><span class="required">∗</span></label></div> | ||
247 | + <div class="input float ui-widget"> | ||
248 | + <input type="text" name="order_city_novaposhta" class="form-text" id="order_city_novaposhta" value=""> | ||
249 | + <input type="hidden" name="order_city_ref" class="form-text" id="order_city_ref" value=""> | ||
250 | + <div class="ajax_cities"></div> | ||
251 | + <div class="description display_none"> | ||
252 | + <?= $t->_("no_city")?> | ||
253 | + </div> | ||
254 | + </div> | ||
255 | + <div class="display_none" id="loading_city"></div> | ||
256 | + </li> | ||
257 | + <li class="clearfix owner_address display_none"> | ||
258 | + <div class="label float"><label for="order_address" id="label_order_address"><?= $t->_("your_address") ?><span class="required">∗</span></label></div> | ||
259 | + <div class="input float"> | ||
260 | + <input type="text" name="order_address" id="order_address" class="name" value="<?= isset($customer['address']) && !empty($customer['address']) ? $customer['address'] : '' ?>"> | ||
261 | + <div class="description address_mark display_none1"> | ||
262 | + <?= $t->_("address_mark")?> | ||
263 | + </div> | ||
264 | + </div> | ||
265 | + </li> | ||
266 | + | ||
267 | + <li class="clearfix owner_address_s display_none"> | ||
268 | + <div class="label float"><label for="order_address_s" id="label_order_address_s"><?= $t->_("warehouse_address") ?><span class="required">∗</span></label></div> | ||
269 | + <div class="input float"> | ||
270 | + <input type="text" name="store_address" id="order_address_s" style="float:left;margin-right:20px;" class="name" value="<?= isset($customer['address']) && !empty($customer['address']) ? $customer['address'] : '' ?>"> <a href="http://www.autolux.ua/representatives/" target="_blank">Оберіть склад</a> | ||
271 | + </div> | ||
272 | + </li> | ||
273 | + | ||
274 | + <li class="clearfix store_address display_none"> | ||
275 | + <div class="label float"><label for="store_address" ><?= $t->_("warehouse_address") ?><span class="required">∗</span></label></div> | ||
276 | + <div class="input float"> | ||
277 | + <select name="store_address" id="store_address"> | ||
278 | + <option value="0"></option> | ||
279 | + </select> | ||
280 | + <input type="hidden" name="order_store_address_ref" class="form-text" id="order_store_address_ref" value=""> | ||
281 | + </div> | ||
282 | + <div class="display_none" id="loading_office"></div> | ||
283 | + </li> | ||
284 | + | ||
285 | + <li class="clearfix with_radio_buttons"> | ||
286 | + <div class="label float"><label for="order_pay"><?= $t->_("methods_of_payments")?><span class="required">∗</span></label></div> | ||
287 | + <div class="input float"> | ||
288 | + <div class="input_radio"> | ||
289 | + <input type="radio" name="order_pay" value="1" id="r16" <?= !empty($customer['pay']) && $customer['pay'] == 1 ? 'checked' : 'checked' ?> /> | ||
290 | + <label for="r16"> | ||
291 | + <span></span><?= \config::get( 'global#pay/'.$lang_id.'/1' ) ?> | ||
292 | + </label> | ||
293 | + <div class="question_mark"></div> | ||
294 | + <div class="additional_info"><?= \config::get( 'global#pay/'.$lang_id.'/11' ) ?></div> | ||
295 | + </div><br> | ||
296 | + <div class="input_radio"> | ||
297 | + <input type="radio" name="order_pay" value="2" id="r17" <?= !empty($customer['pay']) && $customer['pay'] == 2 ? 'checked' : '' ?> /> | ||
298 | + <label for="r17"> | ||
299 | + <span></span><?= \config::get( 'global#pay/'.$lang_id.'/2' ) ?> | ||
300 | + </label> | ||
301 | + <div class="question_mark"></div> | ||
302 | + <div class="additional_info"><?= \config::get( 'global#pay/'.$lang_id.'/22' ) ?></div> | ||
303 | + </div><br> | ||
304 | + <div class="input_radio"> | ||
305 | + <input type="radio" name="order_pay" value="3" id="r18" <?= !empty($customer['pay']) && $customer['pay'] == 3 ? 'checked' : '' ?> /> | ||
306 | + <label for="r18"> | ||
307 | + <span></span><?= \config::get( 'global#pay/'.$lang_id.'/3' ) ?> | ||
308 | + </label> | ||
309 | + <div class="question_mark"></div> | ||
310 | + <div class="additional_info"><?= \config::get( 'global#pay/'.$lang_id.'/33' ) ?></div> | ||
311 | + </div><br> | ||
312 | + <div class="input_radio"> | ||
313 | + <input type="radio" name="order_pay" value="4" id="r19" <?= !empty($customer['pay']) && $customer['pay'] == 4 ? 'checked' : '' ?> /> | ||
314 | + <label for="r19"> | ||
315 | + <span></span><?= \config::get( 'global#pay/'.$lang_id.'/4' ) ?> | ||
316 | + </label> | ||
317 | + <div class="question_mark"></div> | ||
318 | + <div class="additional_info"><?= \config::get( 'global#pay/'.$lang_id.'/44' ) ?></div> | ||
319 | + </div><br> | ||
320 | + </div> | ||
321 | + </li> | ||
322 | + <li class="clearfix with_textarea"> | ||
323 | + <div class="label float"><label for="order_name"><?= $t->_("comment_text") ?></label></div> | ||
324 | + <div class="input float"> | ||
325 | + <textarea name="order_comments"><?= isset($customer['comments']) && !empty($customer['comments']) ? $customer['comments'] : '' ?></textarea> | ||
326 | + <div class="description"> | ||
327 | + <?= $t->_("additional_information")?> | ||
328 | + </div> | ||
329 | + </div> | ||
330 | + </li> | ||
331 | + </ul> | ||
332 | + <div class="submit"> | ||
333 | + <input style="padding:10px;margin-bottom:70px;" id="send_order" type="submit" value="<?= $t->_("checkout")?>" class="btn green"> | ||
334 | + </div> | ||
335 | +</div> | ||
336 | + | ||
337 | +</div> | ||
338 | +</form> | ||
339 | +</div> | ||
340 | + | ||
341 | + <ul id="ul_block_for_fast_order" style="display:none;" class="form clearfix"> | ||
342 | + <li class="clearfix"> | ||
343 | + <div class="label float"><label for="order_name"><?= $t->_("n_s")?><span class="required">∗</span></label></div> | ||
344 | + <div class="input float"><input type="text" name="order_name" id="order_name" class="name" value="<?= isset($customer['name']) && !empty($customer['name']) ? $customer['name'] : '' ?>"></div> | ||
345 | + </li> | ||
346 | + <li class="clearfix"> | ||
347 | + <div class="label float"><label for="order_phone"><?= $t->_("m_phone")?><span class="required">∗</span></label></div> | ||
348 | + <div class="input float"><input type="text" name="order_phone" class="order_phone" class="name" value="<?= isset($customer['phone']) && !empty($customer['phone']) ? $customer['phone'] : '' ?>"></div> | ||
349 | + </li> | ||
350 | + <li class="clearfix"> | ||
351 | + <div class="label float"><label for="order_email">Ваш email</label></div> | ||
352 | + <div class="input float"> | ||
353 | + <input type="text" name="order_email" id="order_email" class="name" value="<?= (isset($customer['email']) && !empty($customer['email']) && strlen(strpos($customer['email'], 'facebook'))==0 && strlen(strpos($customer['email'], 'vkontakte'))==0 ) ? $customer['email'] : '' ?>"> | ||
354 | + <div class="description"> | ||
355 | + <input type="checkbox" id="get_info" name="order_get_info" <?= !empty($customer['subscribed']) && $customer['subscribed'] == 1 ? 'checked' : 'checked' ?> /> | ||
356 | + <label for="get_info"><span></span><?= $t->_("receive")?></label> | ||
357 | + </div> | ||
358 | + </div> | ||
359 | + </li> | ||
360 | + <li> | ||
361 | + <input type="hidden" name="order_delivery" class="order_delivery funbind" value="0" /> | ||
362 | + <input type="hidden" name="order_pay" value="0" /> | ||
363 | + </li> | ||
364 | + </ul> | ||
365 | + | ||
366 | +<div class="registrated_customer clearfix<?= empty( $message ) ? ' display_none' : '' ?>"> | ||
367 | + <div class="clearfix"> | ||
368 | + <div class="float login_with login_with_email"> | ||
369 | + <form id="customer_login_from_order_<?= ($lang_id == 1 ? 'ua' : 'ru') ?>" method="post"> | ||
370 | + <ul class="form clearfix"> | ||
371 | + <li class="clearfix"> | ||
372 | + <div class="label float"><label for="login_email">Email<span class="required">∗</span></label></div> | ||
373 | + <div class="input float"><input type="text" name="login_email" id="login_email" class="name" value="<?= isset($customer_email) && !empty($customer_email) ? $customer_email : '' ?>"></div> | ||
374 | + </li> | ||
375 | + <li class="clearfix"> | ||
376 | + <div class="label float"><label for="login_passwd">Пароль<span class="required">∗</span></label></div> | ||
377 | + <div class="input float"><input type="password" name="login_passwd" id="login_passwd" class="name" value=""></div> | ||
378 | + </li> | ||
379 | + </ul> | ||
380 | + <div class="submit clearfix"> | ||
381 | + <input type="submit" value="<?= $t->_("sign_in")?>" class="btn green float float_right"> | ||
382 | + <a href="<?= $this->seoUrl->setUrl($this->url->get([ 'for' => 'restore_passwd' ])) ?>" class="float float_right"><?= $t->_("forgot_your_password") ?></a> | ||
383 | + </div> | ||
384 | + <div class="submit clearfix"> | ||
385 | + <a href="<?= $this->seoUrl->setUrl($this->url->get([ 'for' => 'registration' ])) ?>" class="float float_right do_registration"><?= $t->_("create_an_account") ?></a> | ||
386 | + </div> | ||
387 | + </form> | ||
388 | + </div> | ||
389 | + | ||
390 | + <div class="float login_with login_with_social last"> | ||
391 | + <div class="clearfix"> | ||
392 | + <p class="login_with_social_title"><?= $t->_("login_via_social_network")?></p> | ||
393 | + <div class="login_with_social_wrapper"> | ||
394 | + <a href="<?= $this->social->createUrl('vkontakte') ?>" class="float"><img src="/images/vk_32x32.png"></a> | ||
395 | + <a href="<?= $this->social->createUrl('facebook') ?>" class="float"><img src="/images/f_32x32.png"></a> | ||
396 | + <a href="<?= $this->social->createUrl('google') ?>" class="float last"><img src="/images/g_32x32.png"></a> | ||
397 | + </div> | ||
398 | + </div> | ||
399 | + </div> | ||
400 | + </div> | ||
401 | +</div> | ||
402 | + | ||
403 | + | ||
404 | +</div> | ||
405 | +</div> | ||
406 | + | ||
407 | + | ||
408 | + | ||
409 | +<?= $this->partial('partial/share'); ?> | ||
410 | + | ||
411 | +</div> | ||
412 | +</div> | ||
413 | +<script> | ||
414 | + $( document ).ready(function() { | ||
415 | + if($(window).width()<800){ | ||
416 | + $("#ul_personal_info_new_customer").empty(); | ||
417 | + // Перемещаем параграф из #myDiv1 в #myDiv2 | ||
418 | + $('#ul_block_for_fast_order>li').appendTo( $('#ul_personal_info_new_customer') ); | ||
419 | + } | ||
420 | + }); | ||
421 | + <?php $customer = $this->models->getCustomers()->getCustomer( $this->session->get('id') );?> | ||
422 | + $( document ).ready(function() { | ||
423 | +// $('body').on('click','.order_fifth_column', function(){ | ||
424 | +// eventMailer.email = '<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' ?'<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' : $('#login_email').val(); | ||
425 | +// eventMailer.event_type = 'spy_event'; | ||
426 | +// eventMailer.action = 'order_delete'; | ||
427 | +// eventMailer.item_url = 'semena.in.ua'+$(this).closest('ul').find('h2 a').attr('href'); | ||
428 | +// eventMailer.item_image = $(this).closest('ul').find('img').attr('src'); | ||
429 | +// eventMailer.item_name = $(this).closest('ul').find('h2 a').html(); | ||
430 | +// eventMailer.price = $(this).closest('ul').find('.order_fourth_column .price').html(); | ||
431 | +// eventMailer.item_id = $(this).closest('ul').find('.order_fifth_column a').data('item_id'); | ||
432 | +// eventMailer.quantity = $(this).closest('ul').find('.count_items').val(); | ||
433 | +// eventMailer.deleteCookie("userEmail"); | ||
434 | +// eventMailer.deleteOneItem(); | ||
435 | +// }); | ||
436 | +// $('body').on('click','.minus', function(){ | ||
437 | +// eventMailer.email = '<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' ?'<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' : $('#login_email').val(); | ||
438 | +// eventMailer.event_type = 'spy_event'; | ||
439 | +// eventMailer.action = 'order_add'; | ||
440 | +// eventMailer.item_url = 'semena.in.ua'+$(this).closest('ul').find('h2 a').attr('href'); | ||
441 | +// eventMailer.item_image = $(this).closest('ul').find('img').attr('src'); | ||
442 | +// eventMailer.item_name = $(this).closest('ul').find('h2 a').html(); | ||
443 | +// eventMailer.price = $(this).closest('ul').find('.order_fourth_column .price').html(); | ||
444 | +// eventMailer.item_id = $(this).closest('ul').find('.order_fifth_column a').data('item_id'); | ||
445 | +// eventMailer.quantity = $(this).closest('ul').find('.count_items').val(); | ||
446 | +// eventMailer.deleteCookie("userEmail"); | ||
447 | +// eventMailer.sendWithTimeOut(); | ||
448 | +// }); | ||
449 | +// $('body').on('click','.plus', function(){ | ||
450 | +// eventMailer.email = '<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' ?'<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' : $('#login_email').val(); | ||
451 | +// eventMailer.event_type = 'spy_event'; | ||
452 | +// eventMailer.action = 'order_add'; | ||
453 | +// eventMailer.item_url = 'semena.in.ua'+$(this).closest('ul').find('h2 a').attr('href'); | ||
454 | +// eventMailer.item_image = $(this).closest('ul').find('img').attr('src'); | ||
455 | +// eventMailer.item_name = $(this).closest('ul').find('h2 a').html(); | ||
456 | +// eventMailer.price = $(this).closest('ul').find('.order_fourth_column .price').html(); | ||
457 | +// eventMailer.item_id = $(this).closest('ul').find('.order_fifth_column a').data('item_id'); | ||
458 | +// eventMailer.quantity = $(this).closest('ul').find('.count_items').val(); | ||
459 | +// eventMailer.deleteCookie("userEmail"); | ||
460 | +// eventMailer.sendWithTimeOut(); | ||
461 | +// }); | ||
462 | +// $('body').on('mouseover','.count_items', function(){ | ||
463 | +// | ||
464 | +// eventMailer.email = '<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' ?'<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' : $('#login_email').val(); | ||
465 | +// eventMailer.event_type = 'spy_event'; | ||
466 | +// eventMailer.action = 'order_change'; | ||
467 | +// eventMailer.item_url = 'semena.in.ua'+$(this).closest('ul').find('h2 a').attr('href'); | ||
468 | +// eventMailer.item_image = $(this).closest('ul').find('img').attr('src'); | ||
469 | +// eventMailer.item_name = $(this).closest('ul').find('h2 a').html(); | ||
470 | +// eventMailer.price = $(this).closest('ul').find('.order_fourth_column .price').html(); | ||
471 | +// eventMailer.item_id = $(this).closest('ul').find('.order_fifth_column a').data('item_id'); | ||
472 | +// eventMailer.quantity = $(this).closest('ul').find('.count_items').val(); | ||
473 | +// eventMailer.deleteCookie("userEmail"); | ||
474 | +// eventMailer.startChanging(); | ||
475 | +// }); | ||
476 | +// $('body').on('keyup','.count_items', function(){ | ||
477 | +// eventMailer.email = '<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' ?'<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' : $('#login_email').val(); | ||
478 | +// eventMailer.event_type = 'spy_event'; | ||
479 | +// eventMailer.action = 'order_change'; | ||
480 | +// eventMailer.item_url = 'semena.in.ua'+$(this).closest('ul').find('h2 a').attr('href'); | ||
481 | +// eventMailer.item_image = $(this).closest('ul').find('img').attr('src'); | ||
482 | +// eventMailer.item_name = $(this).closest('ul').find('h2 a').html(); | ||
483 | +// eventMailer.price = $(this).closest('ul').find('.order_fourth_column .price').html(); | ||
484 | +// eventMailer.item_id = $(this).closest('ul').find('.order_fifth_column a').data('item_id'); | ||
485 | +// eventMailer.quantity = $(this).closest('ul').find('.count_items').val(); | ||
486 | +// eventMailer.deleteCookie("userEmail"); | ||
487 | +// eventMailer.sendWithTimeOut(); | ||
488 | +// }); | ||
489 | + | ||
490 | + | ||
491 | + | ||
492 | +// $('body').on('submit','.order_add_form', function(e){ | ||
493 | +// | ||
494 | +// // e.preventDefault(); | ||
495 | +// var val = $('span[id=total_price_basket]').html(); | ||
496 | +// | ||
497 | +// if(val > 100) { | ||
498 | +// var items = []; | ||
499 | +// | ||
500 | +// | ||
501 | +// | ||
502 | +// $('body').find('.order_form_content').each(function () { | ||
503 | +// var item = { | ||
504 | +// item_url: 'semena.in.ua'+$(this).find('h2 a').attr('href'), | ||
505 | +// item_image: $(this).find('img').attr('src'), | ||
506 | +// item_name: $(this).find('h2 a').html(), | ||
507 | +// price: $(this).find('.order_fourth_column .price').html(), | ||
508 | +// item_id: $(this).find('.order_fifth_column a').data('item_id'), | ||
509 | +// quantity: $(this).find('.count_items').val(), | ||
510 | +// catalog: $(this).data('catalog') | ||
511 | +// }; | ||
512 | +// | ||
513 | +// | ||
514 | +// items.push(item) | ||
515 | +// }); | ||
516 | +// | ||
517 | +// | ||
518 | +// eventMailer.email = '<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' ?'<?//= isset( $customer[0]['email'] )?$customer[0]['email'] : ''?>//' : $('#login_email').val();; | ||
519 | +// eventMailer.event_type = 'spy_event'; | ||
520 | +// eventMailer.event = 'order_finish'; | ||
521 | +// eventMailer.action = 'order_finish'; | ||
522 | +// eventMailer.name = '<?//= isset( $customer[0]['name'] )?$customer[0]['name'] : ''?>//'; | ||
523 | +// eventMailer.order_num = '<?//= isset( $data['oid'] )?$data['oid'] : ''?>//'; | ||
524 | +// eventMailer.sum = val; | ||
525 | +// eventMailer.phone = '<?//= isset( $customer[0]['phone'] )?$customer[0]['phone'] : 'Не указан'?>//'; | ||
526 | +// eventMailer.address = ''; | ||
527 | +// eventMailer.delivery = 'Не указан'; | ||
528 | +// eventMailer.pay = 'Не указан'; | ||
529 | +// eventMailer.items = JSON.stringify(items); | ||
530 | +// | ||
531 | +// | ||
532 | +// | ||
533 | +// | ||
534 | +// | ||
535 | +// for (var i = 0; i < items.length; i++) { | ||
536 | +// if (items[i].catalog == 334) { | ||
537 | +// eventMailer.event_type = 'event_offline'; | ||
538 | +// eventMailer.event = 'with_cucumbers'; | ||
539 | +// eventMailer.callOtherDomain(); | ||
540 | +// eventMailer.deleteCookie("userEmail"); | ||
541 | +// | ||
542 | +// } | ||
543 | +// | ||
544 | +// if (items[i].catalog == 471) { | ||
545 | +// eventMailer.event_type = 'event_offline'; | ||
546 | +// eventMailer.event = 's_lukovichnіe'; | ||
547 | +// eventMailer.callOtherDomain(); | ||
548 | +// eventMailer.deleteCookie("userEmail"); | ||
549 | +// | ||
550 | +// } | ||
551 | +// | ||
552 | +// if (items[i].catalog == 471) { | ||
553 | +// eventMailer.event_type = 'event_offline'; | ||
554 | +// eventMailer.event = 's_lukovichnіe'; | ||
555 | +// eventMailer.callOtherDomain(); | ||
556 | +// eventMailer.deleteCookie("userEmail"); | ||
557 | +// | ||
558 | +// } | ||
559 | +// | ||
560 | +// var spec_items = [305,336,326,306,333,308,504,502,332]; | ||
561 | +// if (eventMailer.find(spec_items, items[i].catalog)) { | ||
562 | +// eventMailer.event_type = 'event_offline'; | ||
563 | +// eventMailer.event = 'borsch'; | ||
564 | +// eventMailer.callOtherDomain(); | ||
565 | +// eventMailer.deleteCookie("userEmail"); | ||
566 | +// | ||
567 | +// } | ||
568 | +// | ||
569 | +// | ||
570 | +// | ||
571 | +// var city_1 = $('#order_address').val(); | ||
572 | +// var city_2 = $('#order_city_novaposhta').val(); | ||
573 | +// var city_3 = $('#order_city').val(); | ||
574 | +// | ||
575 | +// | ||
576 | +// if (city_1.indexOf('Киев') || city_2.indexOf('Киев') || city_3.indexOf('Киев') ) { | ||
577 | +// eventMailer.event_type = 'event_offline'; | ||
578 | +// eventMailer.event = 'kiev_mail'; | ||
579 | +// eventMailer.callOtherDomain(); | ||
580 | +// eventMailer.deleteCookie("userEmail"); | ||
581 | +// | ||
582 | +// } | ||
583 | +// | ||
584 | +// if (city_1.indexOf('Київ') || city_2.indexOf('Київ') || city_3.indexOf('Київ') ) { | ||
585 | +// eventMailer.event_type = 'event_offline'; | ||
586 | +// eventMailer.event = 'kiev_mail'; | ||
587 | +// eventMailer.callOtherDomain(); | ||
588 | +// eventMailer.deleteCookie("userEmail"); | ||
589 | +// | ||
590 | +// } | ||
591 | +// | ||
592 | +// } | ||
593 | +// | ||
594 | +// | ||
595 | +// eventMailer.callOtherDomain(); | ||
596 | +// eventMailer.deleteCookie("userEmail"); | ||
597 | +// | ||
598 | +// if ( eventMailer.sum >= 250 && eventMailer.sum < 499 ){ | ||
599 | +// eventMailer.event = 'free_delivery_500'; | ||
600 | +// eventMailer.callOtherDomain(); | ||
601 | +// eventMailer.deleteCookie("userEmail"); | ||
602 | +// } | ||
603 | +// | ||
604 | +// } | ||
605 | +// | ||
606 | +// }); | ||
607 | + | ||
608 | + | ||
609 | + $('.promo_code input[type=button]').click(applyPromoCode); | ||
610 | + | ||
611 | + function applyPromoCode() { | ||
612 | + const successMessage = '<?= $t->_('success_promo_code') ?>'; | ||
613 | + const errorMessage = '<?= $t->_('error_promo_code') ?>'; | ||
614 | + const $alert = $('.alert'); | ||
615 | + $alert.css('display', 'inline-block'); | ||
616 | + $.ajax({ | ||
617 | + url: '/ajax/apply_promo_code', | ||
618 | + method: 'POST', | ||
619 | + dataType: 'json', | ||
620 | + data: { | ||
621 | + promo_code: $('#promo_code').val() | ||
622 | + }, | ||
623 | + success: function (cart) { | ||
624 | + if(cart.status == 'success'){ | ||
625 | + renderCart(cart.cart); | ||
626 | + $('#total_price_basket').text(cart.cart['total_sum']); | ||
627 | + $alert.addClass('alert-success').removeClass('alert-danger'); | ||
628 | + $alert.find('strong').text(cart.successMessage); | ||
629 | + } else { | ||
630 | + $alert.addClass('alert-danger').removeClass('alert-success'); | ||
631 | + $alert.find('strong').text(cart.errorMessage); | ||
632 | + } | ||
633 | + | ||
634 | + }, | ||
635 | + error: function (error) { | ||
636 | + $alert.addClass('alert-danger').removeClass('alert-success'); | ||
637 | + $alert.find('strong').text(errorMessage); | ||
638 | + } | ||
639 | + }); | ||
640 | + } | ||
641 | + | ||
642 | + function renderCart(cart) { | ||
643 | + var html = ''; | ||
644 | + var items = cart.items; | ||
645 | + for(var i = 0; i < items.length; i++) { | ||
646 | + html += '<li class="clearfix main_li order_form_content">' + | ||
647 | + '<ul>' + | ||
648 | + '<li class="float order_first_column">' + | ||
649 | + '<div class="order_img_container">'+ | ||
650 | + '<a href="' + items[i]['alias'] + '" target="_blank">'+ | ||
651 | + '<img src="'+ items[i]['cover'] + '" alt="' + items[i]['title'] + '" width="61" height="100" class="float order_img">' + | ||
652 | + '</a>'+ | ||
653 | + '</div>'+ | ||
654 | + '<h2><a href="' + items[i]['alias'] + '" target="_blank">' + items[i]['title'] + '</a></h2>' + | ||
655 | + '<input type="hidden" name="size[' + items[i]['id'] + ']" value="' + items[i]['size'] + '" /><p><?= $t->_("packing") ?> ' + items[i]['size'] + '</p>' + | ||
656 | + (items[i]['color'] ? '<input type="hidden" name="color['+items[i]['id'] + ']" value="' + items[i]['color'] + '" /><div class="float properties"><?= $t->_("color") ?> : </div>'+'<div class="float1 properties" style="color:'+items[i]['absolute_color']+'">'+items[i]['color']+'</div>' : '')+ | ||
657 | + (items[i]['status'] == 1 ? '<input type="hidden" name="is['+items[i]['id']+ ']" value="<?= $t->_("in_stock") ?>" /><p data-stock="1" id="stock" style="color: green; font-weight: bold;" class="properties properties_presence "><?= $t->_("in_stock") ?></p>' : '<input type="hidden" name="is['+items[i]['id']+']" value="<?= $t->_("missing") ?>" /><p data-stock="0" id="stock" style="color: red; font-weight: bold;" class="properties properties_absent"><?= $t->_("missing") ?></p>')+ | ||
658 | + | ||
659 | + '</li>' + | ||
660 | + '<li class="float order_second_column"><span class="price">' + items[i]['price2'] + '</span><span> грн</span></li>' + | ||
661 | + '<li class="float order_third_column">' + | ||
662 | + '<div class="float count minus">' + | ||
663 | + '</div>' + | ||
664 | + '<div class="float count count_input">' + | ||
665 | + '<input name="count_items[' + items[i]['id'] + ']" data-item_id="' + items[i]['id'] + '" class="count_items" type="text" value="' + items[i]['count'] + '" />' + | ||
666 | + '</div>' + | ||
667 | + '<div class="float count plus">'+ | ||
668 | + '</li>' + | ||
669 | + '<li class="float order_fourth_column">'+ | ||
670 | + '<span class="price">' + items[i]['total_price']+'</span><span> грн</span>' + | ||
671 | + '</li>'+ | ||
672 | + '<li class="float order_fifth_column">' + | ||
673 | + '<a href="/basket" data-item_id="'+items[i]['id']+'"><img src="/images/basket_del.png" alt="" width="18" height="18" /></a>' + | ||
674 | + '</li>' + | ||
675 | + '</ul>'; | ||
676 | + } | ||
677 | + $('.order_form_content').remove(); | ||
678 | + $(html).insertAfter('.order_form_header'); | ||
679 | + } | ||
680 | + | ||
681 | + }); | ||
682 | + | ||
683 | + | ||
684 | + | ||
685 | + | ||
654 | </script> | 686 | </script> |
655 | \ No newline at end of file | 687 | \ No newline at end of file |
src/app/frontend/views/page/subtype.php
1 | -<div id="content" class="clearfix"> | ||
2 | -<div class="subcategory"> | ||
3 | -<?php $banner = $this->getDi()->get('models')->getBanner()->getBannerLike(); | ||
4 | - $url = $this->router->getRewriteUri(); | ||
5 | -?> | ||
6 | -<?php if(!empty($banner)){?> | ||
7 | - <div style = "background: url('<?= $this->storage->getBanerUrl($banner['image']) ?>') no-repeat center center; position: relative" class="catalog_slider"> | ||
8 | - | ||
9 | - <div class="inner"> | ||
10 | - <div class="catalog_description logo<?= $catalog['id'] ?>"> | ||
11 | - <div class="catalog_description_image float"> | ||
12 | - <?= '<a href="'.$this->seoUrl->setUrl($type_alias).'" title="'.$catalog['title'].'"><img src="/images/types_logo/'.$catalog['id'].'.jpg" alt="'.$catalog['title'].'" width="99" height="99" /></a>' ?> | ||
13 | - </div> | ||
14 | - <div class="catalog_description_content float"> | ||
15 | - <h2 class="catalog_description_title"> | ||
16 | - <?= '<a href="'.$this->seoUrl->setUrl($type_alias).'" title="'.$catalog['title'].'">'.$catalog['title'].'</a>' ?> | ||
17 | - </h2> | ||
18 | - <p> | ||
19 | - <?= $t->_("internet_store_seeds")?> | ||
20 | - </p> | ||
21 | - </div> | ||
22 | - </div> | ||
23 | - </div> | ||
24 | - </div> | ||
25 | -<?php }else{?> | ||
26 | - <div class="catalog_slider"> | ||
27 | - | ||
28 | - <div class="inner"> | ||
29 | - <div class="catalog_description logo<?= $catalog['id'] ?>"> | ||
30 | - <div class="catalog_description_image float"> | ||
31 | - <?= '<a href="'.$this->seoUrl->setUrl($type_alias).'" title="'.$catalog['title'].'"><img src="/images/types_logo/'.$catalog['id'].'.jpg" alt="'.$catalog['title'].'" width="99" height="99" /></a>' ?> | ||
32 | - </div> | ||
33 | - <div class="catalog_description_content float"> | ||
34 | - <h2 class="catalog_description_title"> | ||
35 | - <?= '<a href="'.$this->seoUrl->setUrl($type_alias).'" title="'.$catalog['title'].'">'.$catalog['title'].'</a>' ?> | ||
36 | - </h2> | ||
37 | - <p> | ||
38 | - <?= $t->_("internet_store_seeds")?> | ||
39 | - </p> | ||
40 | - </div> | ||
41 | - </div> | ||
42 | - </div> | ||
43 | - </div> | ||
44 | -<?php }?> | ||
45 | - | ||
46 | - | ||
47 | -<div class="breadcrumbs"> | ||
48 | - <div class="inner"> | ||
49 | - <?= $breadcrumbs ?> | ||
50 | - </div> | ||
51 | -</div> | ||
52 | - | ||
53 | -<div class="<?= strstr($url, '/dobriva_ta_zasobi_zakhistu_1c0/zasobi_zakhistu_1c1') || strstr($url, '/udobrenija_i_sredstva_zashchity_1c_20/sredstva_zashchity_1c_21') ? 'zasobi_zakhistu_logo' : '213' ?> sidebar_content_wrapper" itemscope itemtype="http://schema.org/Product"> | ||
54 | - | ||
55 | -<div class="inner clearfix"> | ||
56 | -<div id="sidebar" class="float"> | ||
57 | - <div class="subcategory_sidebar_title"> | ||
58 | - <h1 itemprop="name" class="seo-h1"><?= isset( $seo['h1'] ) && !empty( $seo['h1'] ) ? $seo['h1'] : $catalog['sub']['title']; ?></h1> | ||
59 | - <p><?= $t->_("products_found_for_the_filter")?> <?= $total ?></p> | ||
60 | - </div> | ||
61 | - <?php | ||
62 | - | ||
63 | - if( !empty( $filters ) ) | ||
64 | - { | ||
65 | - $data_filters = '<ul id="subcategory_menu">'; | ||
66 | - | ||
67 | - foreach( $filters as $key => $val ) | ||
68 | - { | ||
69 | - $data_filters .= | ||
70 | - '<li>'. | ||
71 | - '<div class="main clearfix">'. | ||
72 | - '<p class="float">'.$key.'</p>'. | ||
73 | - '<p class="float dropdown"></p>'. | ||
74 | - '</div>'. | ||
75 | - '<ul>'; | ||
76 | - | ||
77 | - foreach( $val as $v ) | ||
78 | - { | ||
79 | - $data_filters .= | ||
80 | - '<li>'. | ||
81 | - ((count($val)>1)?'<a href="'.$this->seoUrl->setUrl($v['alias']).'" title="" onClick="document.location=\''.$this->seoUrl->setUrl($v['alias']).'\';">':''). | ||
82 | - '<input type="checkbox" '.((count($val)==1)?'disabled="disabled" checked':'').' id="'.$v['filter_value_id'].'" value="'.$v['filter_value_id'].'" '.(!empty( $v['checked'] ) ? 'checked="checked"' : '').' />'. | ||
83 | - '<label for="'.$v['id'].'"><span></span>'.$v['filter_value_value'].'</label>'. | ||
84 | - ((count($val)>1)?'</a>':''). | ||
85 | - '</li>'; | ||
86 | - } | ||
87 | - | ||
88 | - | ||
89 | - $data_filters .= | ||
90 | - '</ul>'. | ||
91 | - '</li>'; | ||
92 | - } | ||
93 | - | ||
94 | - $data_filters .= | ||
95 | - '<li class="subcategory_menu_last_child"> | ||
96 | - <div class="main subcategory_menu_price clearfix"> | ||
97 | - <p class="float">'.$t->_("price").'</p> | ||
98 | - </div> | ||
99 | - <div class="price_slider_container"> | ||
100 | - <div class="border_for_slider"> | ||
101 | - <div id="slider"></div> | ||
102 | - </div> | ||
103 | - <div> | ||
104 | - <label for="price_from" class="float">'.$t->_("from").'</label> | ||
105 | - <input type="text" class="float" name="price_from" value="'.( isset($price_array) && !empty($price_array) ? $price_array['0'] : $max_min_price['min_price'] ).'" id="price_from" /> | ||
106 | - <label for="price_from" class="float">до</label> | ||
107 | - <input type="text" class="float" name="price_to" value="'.( isset($price_array) && !empty($price_array) ? $price_array['1'] : $max_min_price['max_price'] ).'" id="price_to" /> | ||
108 | - <a href="'.$this->seoUrl->setUrl($current_url).'" class="price_ok"><img src="/images/price_ok.png" width="7" height="7" alt="Ok" /></a> | ||
109 | - <input type="hidden" value="'.$current_url_without_price.'" class="current_url"> | ||
110 | - <input type="hidden" value="'.$max_min_price['min_price'].'" class="min_price"> | ||
111 | - <input type="hidden" value="'.($max_min_price['max_price']+1).'" class="max_price"> | ||
112 | - <input type="hidden" value="'.( !empty($sort) ? join('-', $sort) : '' ).'" class="sort_params"> | ||
113 | - </div> | ||
114 | - </div> | ||
115 | - </li>'. | ||
116 | - '</ul>'; | ||
117 | - | ||
118 | - echo( $data_filters ); | ||
119 | - } | ||
120 | - | ||
121 | - ?> | ||
122 | - <?php foreach($catalog_sales as $k => $sale): ?> | ||
123 | - <?= $this->partial('partial/one_sale', ['k' => $k, 'sale' => $sale]) ?> | ||
124 | - <?php endforeach; ?> | ||
125 | -</div> | ||
126 | -<div id="content_wrapper" class="float"> | ||
127 | - | ||
128 | - | ||
129 | - <?php | ||
130 | - | ||
131 | - if( !empty( $groups ) ) | ||
132 | - { | ||
133 | - $data_items = | ||
134 | - '<div class="content_wrapper_header">'. | ||
135 | - '<div class="content_wrapper_header_filters clearfix">'; | ||
136 | - | ||
137 | - if( !empty( $filters_applied ) ) | ||
138 | - { | ||
139 | - foreach( $filters_applied as $f ) | ||
140 | - { | ||
141 | - $data_items .= '<div class="float"><a href="'.$this->seoUrl->setUrl($f['alias']).'" title="">'.$f['filter_value_value'].'</a></div>'; | ||
142 | - } | ||
143 | - | ||
144 | - $data_items .= '<div class="float empty_filters"><a href="'.$this->seoUrl->setUrl($this->url->get([ 'for' => 'subtype', 'type' => $type_alias, 'subtype' => $subtype_alias ])).'" title="Скинути всі фільтри">Скинути всі фільтри</a></div>'; | ||
145 | - } | ||
146 | - $sortName[3] = $t->_("from_cheap_to_expensive"); | ||
147 | - $sortName[4] = $t->_("from_expensive_to_cheap"); | ||
148 | - $sortName[5] = $t->_("sort_alphabetically"); | ||
149 | - $data_items .= | ||
150 | - '</div> | ||
151 | - <div class="content_wrapper_header_menu change_sort clearfix"> | ||
152 | - <div class="tabs float"> | ||
153 | - <ul> | ||
154 | - <li class="tabs_all_items float '.( in_array( 1, $sort ) ? 'previous' : '' ).' '.( in_array( 0, $sort ) || empty( $sort ) ? 'active_tab' : 'not_active' ).' first_tab" onClick="document.location=\''.$current_url.'\'">'. | ||
155 | - '<a href="'.$this->seoUrl->setUrl($current_url).'" title="">'.$t->_("all").'</a>'. | ||
156 | - '</li> | ||
157 | - | ||
158 | - <li class="tabs_new_items float '.( in_array( 2, $sort ) ? 'previous' : '' ).' '.( in_array( 1, $sort ) ? 'active_tab' : 'not_active' ).'" onClick="document.location=\''.$this->url->get(['for' => 'subtype_sorted', 'type' => $type_alias, 'subtype' => $subtype_alias, 'sort' => '1-'.$sort_default_2]).'\'">'. | ||
159 | - '<a href="'.$this->seoUrl->setUrl($this->url->get($page_url_for_sort['1'])).'" title="">'.$t->_("what_new").'</a>'. | ||
160 | - '</li> | ||
161 | - | ||
162 | - <li class="tabs_top_items float '.( in_array( 2, $sort ) ? 'active_tab' : 'not_active' ).' last_tab" onClick="document.location=\''.$this->url->get(['for' => 'subtype_sorted', 'type' => $type_alias, 'subtype' => $subtype_alias, 'sort' => '2-'.$sort_default_2]).'\'">'. | ||
163 | - '<a href="'.$this->seoUrl->setUrl($this->url->get($page_url_for_sort['2'])).'" title="">'.$t->_("top_sales").'</a>'. | ||
164 | - '</li> | ||
165 | - </ul> | ||
166 | - </div> | ||
167 | - <div class="thumbs active float padding_60"> | ||
168 | - <a href="#" title=""></a> | ||
169 | - </div> | ||
170 | - <div class="lists float"> | ||
171 | - <a href="#" title="" class="float"></a> | ||
172 | - </div> | ||
173 | - <div class="sort_price float padding_60"> | ||
174 | - <span>'.$t->_("sort").':</span> | ||
175 | - </div> | ||
176 | - <div class="sort_price float last"> | ||
177 | - <a href="#" title="">'.( in_array( 3, $sort ) ? $sortName[3] : (in_array( 4, $sort )? $sortName[4] :$sortName[5]) ).'</a> | ||
178 | - <div class="sort_price_dropdown display_none"> | ||
179 | - <ul> | ||
180 | - <li><a href="'.$this->seoUrl->setUrl($this->url->get($page_url_for_sort['3'])).'" title="">'.$sortName[3].'</a></li> | ||
181 | - <li><a href="'.$this->seoUrl->setUrl($this->url->get($page_url_for_sort['4'])).'" title="">'.$sortName[4].'</a></li> | ||
182 | - <li><a href="'.$this->seoUrl->setUrl($this->url->get($page_url_for_sort['5'])).'" title="">'.$sortName[5].'</a></li> | ||
183 | - </ul> | ||
184 | - </div> | ||
185 | - </div> | ||
186 | - </div> | ||
187 | - </div> | ||
188 | - '; ?> | ||
189 | - | ||
190 | - <?= $data_items ?> | ||
191 | - <div class="items clearfix"> | ||
192 | - <?php | ||
193 | - $maxPrice = 0; | ||
194 | - $minPrice = 0; | ||
195 | - ?> | ||
196 | - <?php foreach ($groups as $k => $i): ?> | ||
197 | - <?php $this->partial('partial/item_group', ['k' => $k, 'i' => $i, 'limit' => 3]) ?> | ||
198 | - <?php | ||
199 | - if ($i['price'] > $maxPrice) { | ||
200 | - $maxPrice = $i['price']; | ||
201 | - } elseif ($i['price'] < $maxPrice) { | ||
202 | - $minPrice = $i['price']; | ||
203 | - } | ||
204 | - ?> | ||
205 | - <?php endforeach; ?> | ||
206 | - </div> | ||
207 | - <?php } ?> | ||
208 | - <?php | ||
209 | - | ||
210 | - if( $total > \config::get( 'limits/items') ) | ||
211 | - { | ||
212 | - echo'<div class="inner1"><div class="paginate" align="center">'; | ||
213 | - echo $paginate; | ||
214 | - if(empty($_GET['all']))echo'<div align="center"><a href="'.$this->seoUrl->setUrl($this->url->get($page_url_for_sort['3'])).'?all=1" style="display:block;margin-bottom:20px;">'.$t->_("show_all").'</a></div>'; | ||
215 | - echo '</div></div>'; | ||
216 | - | ||
217 | - } | ||
218 | - | ||
219 | - ?> | ||
220 | - | ||
221 | -</div> | ||
222 | -</div> | ||
223 | - <div style="display:none;" itemprop="offers" itemscope itemtype="http://schema.org/AggregateOffer"> | ||
224 | - <span itemprop="priceCurrency">UAH</span> | ||
225 | - <span itemprop="lowPrice"><?=$max_min_price['min_price']?></span> | ||
226 | - <span itemprop="highPrice"><?=$max_min_price['max_price']?></span> | ||
227 | - </div> | ||
228 | - <div style="display: none" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> | ||
229 | - <span itemprop="ratingValue">5</span> | ||
230 | - <span itemprop="reviewCount">51</span> | ||
231 | - </div> | ||
232 | -</div> | ||
233 | - | ||
234 | - | ||
235 | -<?php if(!isset($page) || $page == 1):?> | ||
236 | - <div class="content_accost"> | ||
237 | - <div class="shadow_to_down"></div> | ||
238 | - <div class="inner"> | ||
239 | - <div class="content_accost_title"></div> | ||
240 | - <div class="content_accost_content"> | ||
241 | - <p> | ||
242 | - <?= isset( $seo['seo_text'] ) && !empty( $seo['seo_text'] ) ? $seo['seo_text'] : ''?> | ||
243 | - </p> | ||
244 | - </div> | ||
245 | - </div> | ||
246 | - </div> | ||
247 | -<?php endif ?> | ||
248 | - | ||
249 | -<div class="content_blog"> | ||
250 | - <div class="inner"> | ||
251 | - | ||
252 | - <div class="links clearfix"> | ||
253 | - | ||
254 | - <div class="float fb"> | ||
255 | - <div id="fb-root"></div> | ||
256 | - | ||
257 | - <div class="fb-like" data-href="#" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div> | ||
258 | - </div> | ||
259 | - <div class="float ok"> | ||
260 | - <div id="ok_shareWidget"></div> | ||
261 | - </div> | ||
262 | - <div class="float vk"> | ||
263 | - <script type="text/javascript"><!-- | ||
264 | - document.write(VK.Share.button(false,{type: "round", text: "Нравится"})); | ||
265 | - --> | ||
266 | - </script> | ||
267 | - </div> | ||
268 | - | ||
269 | - <div class="float share"> | ||
270 | - <p class="share_title float"><?= $t->_("share")?>:</p> | ||
271 | - | ||
272 | - <div class="pluso float" data-background="#ebebeb" data-options="small,square,line,horizontal,nocounter,theme=04" data-services="facebook,google,livejournal,moimir,odnoklassniki,vkontakte,twitter"></div> | ||
273 | - </div> | ||
274 | - </div> | ||
275 | - </div> | ||
276 | - | ||
277 | -</div><!-- content_blog --> | ||
278 | -</div><!-- catalog --> | ||
279 | -</div> | 1 | +<div id="content" class="clearfix"> |
2 | +<div class="subcategory"> | ||
3 | +<?php $banner = $this->getDi()->get('models')->getBanner()->getBannerLike(); | ||
4 | + $url = $this->router->getRewriteUri(); | ||
5 | +?> | ||
6 | +<?php if(!empty($banner)){?> | ||
7 | + <div style = "background: url('<?= $this->storage->getBanerUrl($banner['image']) ?>') no-repeat center center; position: relative" class="catalog_slider"> | ||
8 | + | ||
9 | + <div class="inner"> | ||
10 | + <div class="catalog_description logo<?= $catalog['id'] ?>"> | ||
11 | + <div class="catalog_description_image float"> | ||
12 | + <?= '<a href="'.$this->seoUrl->setUrl($type_alias).'" title="'.$catalog['title'].'"><img src="/images/types_logo/'.$catalog['id'].'.jpg" alt="'.$catalog['title'].'" width="99" height="99" /></a>' ?> | ||
13 | + </div> | ||
14 | + <div class="catalog_description_content float"> | ||
15 | + <h2 class="catalog_description_title"> | ||
16 | + <?= '<a href="'.$this->seoUrl->setUrl($type_alias).'" title="'.$catalog['title'].'">'.$catalog['title'].'</a>' ?> | ||
17 | + </h2> | ||
18 | + <p> | ||
19 | + <?= $t->_("internet_store_seeds")?> | ||
20 | + </p> | ||
21 | + </div> | ||
22 | + </div> | ||
23 | + </div> | ||
24 | + </div> | ||
25 | +<?php }else{?> | ||
26 | + <div class="catalog_slider"> | ||
27 | + | ||
28 | + <div class="inner"> | ||
29 | + <div class="catalog_description logo<?= $catalog['id'] ?>"> | ||
30 | + <div class="catalog_description_image float"> | ||
31 | + <?= '<a href="'.$this->seoUrl->setUrl($type_alias).'" title="'.$catalog['title'].'"><img src="/images/types_logo/'.$catalog['id'].'.jpg" alt="'.$catalog['title'].'" width="99" height="99" /></a>' ?> | ||
32 | + </div> | ||
33 | + <div class="catalog_description_content float"> | ||
34 | + <h2 class="catalog_description_title"> | ||
35 | + <?= '<a href="'.$this->seoUrl->setUrl($type_alias).'" title="'.$catalog['title'].'">'.$catalog['title'].'</a>' ?> | ||
36 | + </h2> | ||
37 | + <p> | ||
38 | + <?= $t->_("internet_store_seeds")?> | ||
39 | + </p> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + </div> | ||
44 | +<?php }?> | ||
45 | + | ||
46 | + | ||
47 | +<div class="breadcrumbs"> | ||
48 | + <div class="inner"> | ||
49 | + <?= $breadcrumbs ?> | ||
50 | + </div> | ||
51 | +</div> | ||
52 | + | ||
53 | +<div class="<?= strstr($url, '/dobriva_ta_zasobi_zakhistu_1c0/zasobi_zakhistu_1c1') || strstr($url, '/udobrenija_i_sredstva_zashchity_1c_20/sredstva_zashchity_1c_21') ? 'zasobi_zakhistu_logo' : '213' ?> sidebar_content_wrapper" itemscope itemtype="http://schema.org/Product"> | ||
54 | + | ||
55 | +<div class="inner clearfix"> | ||
56 | +<div class="icon_for_phone icon_filter" style="display:none;left: 0;position: fixed;"><a onclick="document.getElementById('sidebar').style.display='block'; false"></a></div> | ||
57 | + | ||
58 | +<div id="sidebar" class="float"> | ||
59 | +<div class="icon_for_phone icon_exit" style="display:none;right: 0;position: fixed;"><a onclick="document.getElementById('sidebar').style.display='none'; false"></a></div> | ||
60 | + <div class="subcategory_sidebar_title"> | ||
61 | + <h1 itemprop="name" class="seo-h1"><?= isset( $seo['h1'] ) && !empty( $seo['h1'] ) ? $seo['h1'] : $catalog['sub']['title']; ?></h1> | ||
62 | + <p><?= $t->_("products_found_for_the_filter")?> <?= $total ?></p> | ||
63 | + </div> | ||
64 | + <?php | ||
65 | + | ||
66 | + if( !empty( $filters ) ) | ||
67 | + { | ||
68 | + $data_filters = '<ul id="subcategory_menu">'; | ||
69 | + | ||
70 | + foreach( $filters as $key => $val ) | ||
71 | + { | ||
72 | + $data_filters .= | ||
73 | + '<li>'. | ||
74 | + '<div class="main clearfix">'. | ||
75 | + '<p class="float">'.$key.'</p>'. | ||
76 | + '<p class="float dropdown"></p>'. | ||
77 | + '</div>'. | ||
78 | + '<ul>'; | ||
79 | + | ||
80 | + foreach( $val as $v ) | ||
81 | + { | ||
82 | + $data_filters .= | ||
83 | + '<li>'. | ||
84 | + ((count($val)>1)?'<a href="'.$this->seoUrl->setUrl($v['alias']).'" title="" onClick="document.location=\''.$this->seoUrl->setUrl($v['alias']).'\';">':''). | ||
85 | + '<input type="checkbox" '.((count($val)==1)?'disabled="disabled" checked':'').' id="'.$v['filter_value_id'].'" value="'.$v['filter_value_id'].'" '.(!empty( $v['checked'] ) ? 'checked="checked"' : '').' />'. | ||
86 | + '<label for="'.$v['id'].'"><span></span>'.$v['filter_value_value'].'</label>'. | ||
87 | + ((count($val)>1)?'</a>':''). | ||
88 | + '</li>'; | ||
89 | + } | ||
90 | + | ||
91 | + | ||
92 | + $data_filters .= | ||
93 | + '</ul>'. | ||
94 | + '</li>'; | ||
95 | + } | ||
96 | + | ||
97 | + $data_filters .= | ||
98 | + '<li class="subcategory_menu_last_child"> | ||
99 | + <div class="main subcategory_menu_price clearfix"> | ||
100 | + <p class="float">'.$t->_("price").'</p> | ||
101 | + </div> | ||
102 | + <div class="price_slider_container"> | ||
103 | + <div class="border_for_slider"> | ||
104 | + <div id="slider"></div> | ||
105 | + </div> | ||
106 | + <div> | ||
107 | + <label for="price_from" class="float">'.$t->_("from").'</label> | ||
108 | + <input type="text" class="float" name="price_from" value="'.( isset($price_array) && !empty($price_array) ? $price_array['0'] : $max_min_price['min_price'] ).'" id="price_from" /> | ||
109 | + <label for="price_from" class="float">до</label> | ||
110 | + <input type="text" class="float" name="price_to" value="'.( isset($price_array) && !empty($price_array) ? $price_array['1'] : $max_min_price['max_price'] ).'" id="price_to" /> | ||
111 | + <a href="'.$this->seoUrl->setUrl($current_url).'" class="price_ok"><img src="/images/price_ok.png" width="7" height="7" alt="Ok" /></a> | ||
112 | + <input type="hidden" value="'.$current_url_without_price.'" class="current_url"> | ||
113 | + <input type="hidden" value="'.$max_min_price['min_price'].'" class="min_price"> | ||
114 | + <input type="hidden" value="'.($max_min_price['max_price']+1).'" class="max_price"> | ||
115 | + <input type="hidden" value="'.( !empty($sort) ? join('-', $sort) : '' ).'" class="sort_params"> | ||
116 | + </div> | ||
117 | + </div> | ||
118 | + </li>'. | ||
119 | + '</ul>'; | ||
120 | + | ||
121 | + echo( $data_filters ); | ||
122 | + } | ||
123 | + | ||
124 | + ?> | ||
125 | + <?php foreach($catalog_sales as $k => $sale): ?> | ||
126 | + <?= $this->partial('partial/one_sale', ['k' => $k, 'sale' => $sale]) ?> | ||
127 | + <?php endforeach; ?> | ||
128 | +</div> | ||
129 | +<div id="content_wrapper" class="float"> | ||
130 | + | ||
131 | + | ||
132 | + <?php | ||
133 | + | ||
134 | + if( !empty( $groups ) ) | ||
135 | + { | ||
136 | + $data_items = | ||
137 | + '<div class="content_wrapper_header">'. | ||
138 | + '<div class="content_wrapper_header_filters clearfix">'; | ||
139 | + | ||
140 | + if( !empty( $filters_applied ) ) | ||
141 | + { | ||
142 | + foreach( $filters_applied as $f ) | ||
143 | + { | ||
144 | + $data_items .= '<div class="float"><a href="'.$this->seoUrl->setUrl($f['alias']).'" title="">'.$f['filter_value_value'].'</a></div>'; | ||
145 | + } | ||
146 | + | ||
147 | + $data_items .= '<div class="float empty_filters"><a href="'.$this->seoUrl->setUrl($this->url->get([ 'for' => 'subtype', 'type' => $type_alias, 'subtype' => $subtype_alias ])).'" title="Скинути всі фільтри">Скинути всі фільтри</a></div>'; | ||
148 | + } | ||
149 | + $sortName[3] = $t->_("from_cheap_to_expensive"); | ||
150 | + $sortName[4] = $t->_("from_expensive_to_cheap"); | ||
151 | + $sortName[5] = $t->_("sort_alphabetically"); | ||
152 | + $data_items .= | ||
153 | + '</div> | ||
154 | + <div class="content_wrapper_header_menu change_sort clearfix"> | ||
155 | + <div class="tabs float"> | ||
156 | + <ul> | ||
157 | + <li class="tabs_all_items float '.( in_array( 1, $sort ) ? 'previous' : '' ).' '.( in_array( 0, $sort ) || empty( $sort ) ? 'active_tab' : 'not_active' ).' first_tab" onClick="document.location=\''.$current_url.'\'">'. | ||
158 | + '<a href="'.$this->seoUrl->setUrl($current_url).'" title="">'.$t->_("all").'</a>'. | ||
159 | + '</li> | ||
160 | + | ||
161 | + <li class="tabs_new_items float '.( in_array( 2, $sort ) ? 'previous' : '' ).' '.( in_array( 1, $sort ) ? 'active_tab' : 'not_active' ).'" onClick="document.location=\''.$this->url->get(['for' => 'subtype_sorted', 'type' => $type_alias, 'subtype' => $subtype_alias, 'sort' => '1-'.$sort_default_2]).'\'">'. | ||
162 | + '<a href="'.$this->seoUrl->setUrl($this->url->get($page_url_for_sort['1'])).'" title="">'.$t->_("what_new").'</a>'. | ||
163 | + '</li> | ||
164 | + | ||
165 | + <li class="tabs_top_items float '.( in_array( 2, $sort ) ? 'active_tab' : 'not_active' ).' last_tab" onClick="document.location=\''.$this->url->get(['for' => 'subtype_sorted', 'type' => $type_alias, 'subtype' => $subtype_alias, 'sort' => '2-'.$sort_default_2]).'\'">'. | ||
166 | + '<a href="'.$this->seoUrl->setUrl($this->url->get($page_url_for_sort['2'])).'" title="">'.$t->_("top_sales").'</a>'. | ||
167 | + '</li> | ||
168 | + </ul> | ||
169 | + </div> | ||
170 | + <div class="thumbs active float padding_60"> | ||
171 | + <a href="#" title=""></a> | ||
172 | + </div> | ||
173 | + <div class="lists float"> | ||
174 | + <a href="#" title="" class="float"></a> | ||
175 | + </div> | ||
176 | + <div class="sort_price float padding_60"> | ||
177 | + <span>'.$t->_("sort").':</span> | ||
178 | + </div> | ||
179 | + <div class="sort_price float last"> | ||
180 | + <a href="#" title="">'.( in_array( 3, $sort ) ? $sortName[3] : (in_array( 4, $sort )? $sortName[4] :$sortName[5]) ).'</a> | ||
181 | + <div class="sort_price_dropdown display_none"> | ||
182 | + <ul> | ||
183 | + <li><a href="'.$this->seoUrl->setUrl($this->url->get($page_url_for_sort['3'])).'" title="">'.$sortName[3].'</a></li> | ||
184 | + <li><a href="'.$this->seoUrl->setUrl($this->url->get($page_url_for_sort['4'])).'" title="">'.$sortName[4].'</a></li> | ||
185 | + <li><a href="'.$this->seoUrl->setUrl($this->url->get($page_url_for_sort['5'])).'" title="">'.$sortName[5].'</a></li> | ||
186 | + </ul> | ||
187 | + </div> | ||
188 | + </div> | ||
189 | + </div> | ||
190 | + </div> | ||
191 | + '; ?> | ||
192 | + | ||
193 | + <?= $data_items ?> | ||
194 | + <div class="items clearfix"> | ||
195 | + <?php | ||
196 | + $maxPrice = 0; | ||
197 | + $minPrice = 0; | ||
198 | + ?> | ||
199 | + <?php foreach ($groups as $k => $i): ?> | ||
200 | + <?php $this->partial('partial/item_group', ['k' => $k, 'i' => $i, 'limit' => 3]) ?> | ||
201 | + <?php | ||
202 | + if ($i['price'] > $maxPrice) { | ||
203 | + $maxPrice = $i['price']; | ||
204 | + } elseif ($i['price'] < $maxPrice) { | ||
205 | + $minPrice = $i['price']; | ||
206 | + } | ||
207 | + ?> | ||
208 | + <?php endforeach; ?> | ||
209 | + </div> | ||
210 | + <?php } ?> | ||
211 | + <?php | ||
212 | + | ||
213 | + if( $total > \config::get( 'limits/items') ) | ||
214 | + { | ||
215 | + echo'<div class="inner1"><div class="paginate" align="center">'; | ||
216 | + echo $paginate; | ||
217 | + if(empty($_GET['all']))echo'<div align="center"><a href="'.$this->seoUrl->setUrl($this->url->get($page_url_for_sort['3'])).'?all=1" style="display:block;margin-bottom:20px;">'.$t->_("show_all").'</a></div>'; | ||
218 | + echo '</div></div>'; | ||
219 | + | ||
220 | + } | ||
221 | + | ||
222 | + ?> | ||
223 | + | ||
224 | +</div> | ||
225 | +</div> | ||
226 | + <div style="display:none;" itemprop="offers" itemscope itemtype="http://schema.org/AggregateOffer"> | ||
227 | + <span itemprop="priceCurrency">UAH</span> | ||
228 | + <span itemprop="lowPrice"><?=$max_min_price['min_price']?></span> | ||
229 | + <span itemprop="highPrice"><?=$max_min_price['max_price']?></span> | ||
230 | + </div> | ||
231 | + <div style="display: none" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> | ||
232 | + <span itemprop="ratingValue">5</span> | ||
233 | + <span itemprop="reviewCount">51</span> | ||
234 | + </div> | ||
235 | +</div> | ||
236 | + | ||
237 | + | ||
238 | +<?php if(!isset($page) || $page == 1):?> | ||
239 | + <div class="content_accost"> | ||
240 | + <div class="shadow_to_down"></div> | ||
241 | + <div class="inner"> | ||
242 | + <div class="content_accost_title"></div> | ||
243 | + <div class="content_accost_content"> | ||
244 | + <p> | ||
245 | + <?= isset( $seo['seo_text'] ) && !empty( $seo['seo_text'] ) ? $seo['seo_text'] : ''?> | ||
246 | + </p> | ||
247 | + </div> | ||
248 | + </div> | ||
249 | + </div> | ||
250 | +<?php endif ?> | ||
251 | + | ||
252 | +<div class="content_blog"> | ||
253 | + <div class="inner"> | ||
254 | + | ||
255 | + <div class="links clearfix"> | ||
256 | + | ||
257 | + <div class="float fb"> | ||
258 | + <div id="fb-root"></div> | ||
259 | + | ||
260 | + <div class="fb-like" data-href="#" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div> | ||
261 | + </div> | ||
262 | + <div class="float ok"> | ||
263 | + <div id="ok_shareWidget"></div> | ||
264 | + </div> | ||
265 | + <div class="float vk"> | ||
266 | + <script type="text/javascript"><!-- | ||
267 | + document.write(VK.Share.button(false,{type: "round", text: "Нравится"})); | ||
268 | + --> | ||
269 | + </script> | ||
270 | + </div> | ||
271 | + | ||
272 | + <div class="float share"> | ||
273 | + <p class="share_title float"><?= $t->_("share")?>:</p> | ||
274 | + | ||
275 | + <div class="pluso float" data-background="#ebebeb" data-options="small,square,line,horizontal,nocounter,theme=04" data-services="facebook,google,livejournal,moimir,odnoklassniki,vkontakte,twitter"></div> | ||
276 | + </div> | ||
277 | + </div> | ||
278 | + </div> | ||
279 | + | ||
280 | +</div><!-- content_blog --> | ||
281 | +</div><!-- catalog --> | ||
282 | +</div> |
src/app/frontend/views/partial/popupCart.php
1 | -<div class="popup" style="display: none;"> | ||
2 | - <div class="popup_window"> | ||
3 | - <div class="popup_close_button"></div> | ||
4 | - <div class="popup_window_content"> | ||
5 | - <h4><?= $t->_('cart') ?></h4> | ||
6 | - <div class="basket_block"> | ||
7 | - <div class="basket_block_header"> | ||
8 | - <div><?= $t->_('name') ?></div> | ||
9 | - <div style="width:290px;"></div> | ||
10 | - <div style="padding-left: 0; padding-right: 50px"><?= $t->_('packing') ?></div> | ||
11 | - <div class="w90"><?= $t->_('cost_per_unit') ?></div> | ||
12 | - <div><?= $t->_('number_of') ?></div> | ||
13 | - <div class="w120" style="padding-right: 40px"><?= $t->_('cost') ?></div> | ||
14 | - </div> | ||
15 | - <div class="basket_block_content overflow"> | ||
16 | - </div> | ||
17 | - </div> | ||
18 | - <div class="summary_price"> | ||
19 | - <span class="text"><?= $t->_('total') ?>: <span id="total_price" class="price"> | ||
20 | - <span class="sum"></span> грн.</span> | ||
21 | - </span> | ||
22 | - </div> | ||
23 | - <div class="popup_footer"> | ||
24 | - <a href="#" style="float: left" id="help"><?= $t->_('need_help') ?></a> | ||
25 | - <span class="min_price_message"><?=$t->_("min_price") ?></span> | ||
26 | - <a href="#" class="cont_shop_but"><?= $t->_('continue_shopping') ?></a> | ||
27 | - <a href="<?= $this->seoUrl->setUrl('/basket') ?>" class="green_but2"><?= $t->_('checkout') ?></a> | ||
28 | - </div> | ||
29 | - </div> | ||
30 | - </div> | ||
31 | -</div> | 1 | +<div class="popup" style="display: none;"> |
2 | + <div class="popup_window"> | ||
3 | + <div class="popup_close_button"></div> | ||
4 | + <div class="popup_window_content"> | ||
5 | + <h4><?= $t->_('cart') ?></h4> | ||
6 | + <div class="basket_block"> | ||
7 | + <div class="basket_block_header"> | ||
8 | + <div><?= $t->_('name') ?></div> | ||
9 | + <div style="width:290px;"></div> | ||
10 | + <div style="padding-left: 0; padding-right: 50px"><?= $t->_('packing') ?></div> | ||
11 | + <div class="w90"><?= $t->_('cost_per_unit') ?></div> | ||
12 | + <div><?= $t->_('number_of') ?></div> | ||
13 | + <div class="w120" style="padding-right: 40px"><?= $t->_('cost') ?></div> | ||
14 | + </div> | ||
15 | + <div class="basket_block_content overflow"> | ||
16 | + </div> | ||
17 | + <div class="basket_block_content_html_mobile overflow" style="display:none;"> | ||
18 | + </div> | ||
19 | + </div> | ||
20 | + <div class="summary_price"> | ||
21 | + <span class="text"><?= $t->_('total') ?>: <span id="total_price" class="price"> | ||
22 | + <span class="sum"></span> грн.</span> | ||
23 | + </span> | ||
24 | + </div> | ||
25 | + <div class="popup_footer"> | ||
26 | + <a href="#" style="float: left" id="help"><?= $t->_('need_help') ?></a> | ||
27 | + <span class="min_price_message"><?=$t->_("min_price") ?></span> | ||
28 | + <a href="#" class="cont_shop_but"><?= $t->_('continue_shopping') ?></a> | ||
29 | + <a href="<?= $this->seoUrl->setUrl('/basket') ?>" class="green_but2"><?= $t->_('checkout') ?></a> | ||
30 | + </div> | ||
31 | + </div> | ||
32 | + </div> | ||
33 | +</div> |
src/lib/models/sales.php
@@ -206,6 +206,7 @@ class sales extends \db | @@ -206,6 +206,7 @@ class sales extends \db | ||
206 | public function updateData($data, $id) | 206 | public function updateData($data, $id) |
207 | { | 207 | { |
208 | 208 | ||
209 | + | ||
209 | return $this->exec( | 210 | return $this->exec( |
210 | ' | 211 | ' |
211 | UPDATE | 212 | UPDATE |
@@ -344,13 +345,12 @@ class sales extends \db | @@ -344,13 +345,12 @@ class sales extends \db | ||
344 | EXTRACT (DOY FROM end_date) | 345 | EXTRACT (DOY FROM end_date) |
345 | OR | 346 | OR |
346 | ( | 347 | ( |
347 | - EXTRACT (DOY FROM start_date) >= EXTRACT (DOY FROM end_date) | 348 | + EXTRACT (DOY FROM start_date) <= EXTRACT (DOY FROM end_date) |
348 | AND | 349 | AND |
349 | - ( | ||
350 | EXTRACT (DOY FROM NOW()) >= EXTRACT (DOY FROM start_date) | 350 | EXTRACT (DOY FROM NOW()) >= EXTRACT (DOY FROM start_date) |
351 | - OR | ||
352 | - EXTRACT (DOY FROM NOW()) < EXTRACT (DOY FROM end_date) | ||
353 | - ) | 351 | + AND |
352 | + EXTRACT (DOY FROM NOW()) <= EXTRACT (DOY FROM end_date) | ||
353 | + | ||
354 | ) | 354 | ) |
355 | ) | 355 | ) |
356 | ) | 356 | ) |
1 | +@media only screen and (max-width:1051px){ | ||
2 | +.input.float.promo_code { | ||
3 | + max-width: 100%; | ||
4 | +} | ||
5 | +.icon_for_phone.icon_filter { | ||
6 | + display: block !important; | ||
7 | + background: #fff; | ||
8 | + left: 0; | ||
9 | + top: 50%; | ||
10 | + position: fixed; | ||
11 | + z-index: 90; | ||
12 | + border-radius: 50%; | ||
13 | +} | ||
14 | +.icon_filter a{ | ||
15 | + background-image:url('../images/phone_filter.png'); | ||
16 | +} | ||
17 | + .content_accost_content{height:124px;padding-bottom:11px;overflow:hidden;}a.cont_shop_but { | ||
18 | + display: block !important; | ||
19 | + clear: both; | ||
20 | + margin: 20px 10px; | ||
21 | + position: relative; | ||
22 | + top: 13px; | ||
23 | + | ||
24 | +} | ||
25 | +a#help { | ||
26 | + float: right !important; | ||
27 | +} | ||
28 | +ul#subcategory_menu { | ||
29 | + margin: 0 auto; | ||
30 | + width: 80%; | ||
31 | +} | ||
32 | +.cabinet div#sidebar { | ||
33 | + display: block; | ||
34 | + position: relative; | ||
35 | + overflow: hidden; | ||
36 | + width: 100%; | ||
37 | + padding-bottom: 20px; | ||
38 | + padding-left: 40px; | ||
39 | + z-index: 0; | ||
40 | +} | ||
41 | +.my_order_item_content { | ||
42 | + margin-left: 122px !important; | ||
43 | +} | ||
44 | + | ||
45 | +.cabinet .float.my_order_item { | ||
46 | + width: 100%; | ||
47 | + border-bottom: 1px solid #000; | ||
48 | + margin-bottom: 20px; | ||
49 | + min-height: 100px !important; | ||
50 | +} | ||
51 | +.subcategory .icon_for_phone.icon_exit { | ||
52 | + display: block !important; | ||
53 | +} | ||
54 | +} | ||
55 | +@media only screen and (max-width:1051px) and (min-width:769px){.recomended_groups.clearfix{height:400px;overflow:scroll;width:100%;} | ||
56 | +.recomended_groups .items.clearfix{width:1000px;padding-top:16px;} | ||
57 | +li.float.order_second_column{width:100px !important;margin-top:15px !important;} | ||
58 | +.float.count.minus, .float.count.plus{box-sizing:content-box;} | ||
59 | +li.clearfix.main_li.order_form_header{} | ||
60 | +li.float.order_third_column{margin:10px !important;} | ||
61 | +li.float.order_fourth_column{margin:15px !important;} | ||
62 | +li.float.order_fifth_column{margin-top:15px !important;} | ||
63 | +.basket_element_delete{float:right;position:relative;top:20px;padding:0 12px 0 0 !important;} | ||
64 | +.basket_element_priceall{padding-left:20px;display:block;width:25%;float:left;margin-top:29px;} | ||
65 | +.basket_element_pricenum{float:left;margin-bottom:23px;margin-top:21px;display:block !important;width:25%;padding:0 !important;text-align:center;padding-left:15px !important;} | ||
66 | +.basket_element_prepack{display:block !important;width:50% !important;clear:both;padding:28px 0 17px 0;top:-71px;margin-bottom:-70px;padding-left:144px;} | ||
67 | +.basket_element.table_line{display:block;} | ||
68 | +.basket_element_priceone{display:none !important;} | ||
69 | +.basket_block_content_html_mobile.overflow{max-height:270px;overflow:auto;} | ||
70 | +.basket_block_content.overflow{display:none;} | ||
71 | +.basket_block_content_html_mobile.overflow{display:block !important;} | ||
72 | +.basket_block_header{display:none !important;} | ||
73 | +.box-all img{max-width:100% !important;height:auto !important;} | ||
74 | +.box-wr a img{max-width:100% !important;height:auto !important;} | ||
75 | +.catalog_slider{background-size:100% !important;display:none;} | ||
76 | +div#your-clock{text-align:center;} | ||
77 | +p.countdown_action{height:40px;} | ||
78 | +p.countdown{height:32px;} | ||
79 | +.countdown_clock{height:149px !important;} | ||
80 | +.box-all{max-width:100% !important;width:100% !important;} | ||
81 | +.box-wr{max-width:100%;} | ||
82 | +.menu li{padding:16px 0px;width:33%;text-align:center;font-size:10px;} | ||
83 | +p.lending_pic_p{} | ||
84 | +div#adv_block{} | ||
85 | +.why_block.bounceInUp{margin:0 auto;display:block;} | ||
86 | +div#reviews_block{} | ||
87 | +.user_tabs li a{margin:0 auto;display:block;width:100%;text-align:center;} | ||
88 | +div#widget_block{display:none;} | ||
89 | +.sales_registration{height:134px !important;} | ||
90 | +div#sales_reg{height:213px;} | ||
91 | +.sales_des{max-width:90%;margin:10px 5%;text-align:justify;} | ||
92 | +.section-box.lending_pic{height:700px;background-size:auto 100%;} | ||
93 | +.popup_footer .green_but2{display:inline-block;margin:10px 0;} | ||
94 | +.inner.clearfix h1{line-height:30px;} | ||
95 | +.static_page_wrapper{padding:0 10px;} | ||
96 | +input#search_submit_for_phone{width:150px;height:50px;margin:0 auto;display:block;background:#fff;color:#000;font-size:18px;margin-top:50px;border-radius:34px;} | ||
97 | +#search_for_phone input#search_item{height:70px;width:100%;margin:83px 0 10px 0!important;color:#000;padding:0 20px;font-size:16px;box-sizing:border-box;} | ||
98 | +div#search_for_phone{position:fixed;background:rgba(84, 171, 39, 0.79);width:100%;height:100%;top:0;left:0;z-index:999999;padding-top:48px;color:#fff;} | ||
99 | +.icon_for_phone.icon_ua{position:absolute;top:5px;right:50px;} | ||
100 | +.icon_for_phone.icon_ua.activ a{background-image:url('../images/icon_ua_activ.png');} | ||
101 | +.icon_for_phone.icon_ru.activ a{background-image:url('../images/icon_ru_activ.png');} | ||
102 | +.icon_for_phone.icon_ua.pas a{background-image:url('../images/icon_ua_pas.png');} | ||
103 | +.icon_for_phone.icon_ru.pas a{background-image:url('../images/icon_ru_pas.png');} | ||
104 | +.icon_for_phone.icon_ru{position:absolute;top:5px;right:10px;} | ||
105 | +.icon_for_phone a span{position:absolute;right:-5px;top:-3px;background:#55a727;border-radius:100%;padding:0 4px;color:#fff;} | ||
106 | +.icon_for_phone a{position:relative;} | ||
107 | +.icon_for_phone.icon_exit, .icon_for_phone.icon_exit_white{position:absolute;top:5px;} | ||
108 | +div#wrapper{padding-top:47px;} | ||
109 | +div#menu_for_phone{position:fixed;background:#54ab27;width:100%;height:100%;top:0;left:0;z-index:999999;padding-top:48px;color:#fff;overflow:auto;} | ||
110 | +#menu_for_phone li a{height:20px;text-align:right;padding:25px 20px 0px 20px !important;border-bottom:#000 solid 1px;color:#fff;font-size:20px;text-decoration:none;font-family:Arial, Tahom;} | ||
111 | +div#header{position:fixed;width:100%;z-index:100;top:0;} | ||
112 | +.icon_search a{background-image:url('../images/phone_search.png');} | ||
113 | +.icon_menu a{background-image:url('../images/phone_menu.png');} | ||
114 | +.icon_exit a{background-image:url('../images/phone_exit.png');} | ||
115 | +.icon_exit_white a{background-image:url('../images/phone_exit_white.png');} | ||
116 | +div#top_icon_for_phone{display:block;height:50px;float:right;} | ||
117 | +.icon_for_phone a{width:40px;height:40px;display:inline-block;background-size:40px;background-position:center;background-repeat:no-repeat;} | ||
118 | +.icon_basket a{background-image:url('../images/phone_basket.png');} | ||
119 | +.icon_for_phone{width:50px;height:50px;display:inline-block;} | ||
120 | +div#top_icon_for_phone{display:block !important;height:50px;float:right;position:absolute;right:0;} | ||
121 | +.icon_for_phone{width:50px;height:50px;display:inline-block;padding:5px;} | ||
122 | +.logo img{height:35px;} | ||
123 | +.logo{margin:0 !important;padding:10px 7px 0px 7px;} | ||
124 | +div#header .float.columns3.second_column{margin:0;} | ||
125 | +.static_page_wrapper img{max-width:100% !important;height:auto !important;} | ||
126 | +.contacts_form .child{max-width:100% !important;box-sizing:border-box;width:100% !important;} | ||
127 | +.contacts_form .input.float{width:100% !important;} | ||
128 | +div#content div{min-width:0px !important;} | ||
129 | +.news_content{box-sizing:border-box;padding:0 20px;} | ||
130 | +.news_content img{max-width:100%;height:auto !important;} | ||
131 | +.items .one_item{margin:0;} | ||
132 | +.items .one_item .one_item_buttons, .compare_items_table .compare_one_item .one_item_buttons{margin:0 !important;} | ||
133 | +.order div.registrated_customer .label{margin:0 auto;float:left;width:90px !important;padding-right:27px;position:relative;top:7px;} | ||
134 | +.order div.registrated_customer .input{float:left;} | ||
135 | +.order_wrapper .question_mark{background:none;} | ||
136 | +.order .contacts_form .input textarea, section #content .contacts_form .input textarea{max-width:100% !important;} | ||
137 | +.contacts_form{} | ||
138 | +.contacts_form .tabs.clearfix.do_order{margin:0;box-sizing:border-box;} | ||
139 | +.new_customer .contacts_form .label, ul.form li .label{text-align:left !important;} | ||
140 | +div{box-sizing:border-box;} | ||
141 | +.contacts_form li.float.not_active.last_tab.registrated_customer{display:block !important;} | ||
142 | +.order_form ul.form{position:relative;} | ||
143 | +li.clearfix.main_li.order_form_content{width:1000px;margin-bottom:138px;} | ||
144 | +li.clearfix.main_li.order_form_header{width:1000px;} | ||
145 | +.order .order_form ul li.clearfix{width:100%;padding-right:10px !important;} | ||
146 | +.input.float.promo_code{} | ||
147 | +.new_customer ul{max-width:100%;padding:0 30px 0 20px;box-sizing:border-box;} | ||
148 | +.order .contacts_form .input, ul.form li .input{} | ||
149 | +.new_customer .input_radio .additional_info{} | ||
150 | +.order .contacts_form .label, ul.form li .label{} | ||
151 | +.order .login_with_email{width:100% !important;text-align:center;margin:0 !important;box-sizing:border-box;} | ||
152 | +.order .login_with_social{width:100% !important;text-align:center;margin:0 !important;box-sizing:border-box;} | ||
153 | +.order div.registrated_customer .input input{margin:0 auto;text-align:center;} | ||
154 | +.basket_block{overflow:auto;} | ||
155 | +.popup_window{width:100% !important;max-height:100% !important;} | ||
156 | +.basket_block_content, .basket_block_header{width:915px;} | ||
157 | +#content_wrapper .content_wrapper_header .content_wrapper_header_menu .lists{display:none;} | ||
158 | +.sort_price.last .sort_price_dropdown{right:0 !important;left:auto !important;} | ||
159 | +.sort_price.float.last{max-width:92px;position:absolute;margin-top:0px;} | ||
160 | +.content_nav_items.float{display:none;} | ||
161 | +.content_nav_items{display:none;} | ||
162 | +.buy_compare .one_item_buttons.float{float:left !important;width:100px !important;} | ||
163 | +.one_news_img.float{margin:0 0 10px 0 !important;width:100% !important;text-align:center;} | ||
164 | +.one_news_content.float{width:100% !important;padding-top:14px;} | ||
165 | +.news_wrapper .one_news{width:46% !important;padding:0 20px;box-sizing:border-box;margin:0 2% !important;} | ||
166 | +.item_decription, .item_title, .clearfix .packing{padding:0 20px;} | ||
167 | +.float.properties{padding-left:20px;} | ||
168 | +.item_menu_content{padding:0 20px;} | ||
169 | +.other_items{overflow-y:scroll;} | ||
170 | +li.float.last_tab.not_active{display:none;} | ||
171 | +.change_similar_items li.float{max-width:33%;box-sizing:border-box;height:auto !important;} | ||
172 | +.other_items .items.inner.clearfix{width:1000px !important;margin-top:55px;padding:0 20px;} | ||
173 | +.other_items .item_menu_header_menu{position:absolute;width:100%;} | ||
174 | +.other_items .one_item.float{min-height:490px !important;} | ||
175 | +li.float.last_tab.not_active{display:none;} | ||
176 | +.change_similar_items li.float{max-width:33%;box-sizing:border-box;height:auto !important;} | ||
177 | +li.float.width_400{max-width:100%;} | ||
178 | +.float.item_content{width:50% !important;} | ||
179 | +.item .item_wrapper .item_images{max-width:46%;margin:20px 2% !important;} | ||
180 | +.clearfix.buy_compare{overflow:hidden;} | ||
181 | +.float.contacts_wrapper_map{width:100% !important;margin:0 !important;} | ||
182 | +.map_description{padding:0 20px;box-sizing:border-box;} | ||
183 | +.map_description_after_map{padding:0 20px;box-sizing:border-box;} | ||
184 | +.contacts_email_address p{padding:0 20px;} | ||
185 | +.order_menu_shadow,.item_menu_shadow{max-width:100% !important;background-size:100% !important;} | ||
186 | +.not_availiable.ukr{background-repeat:no-repeat;background-size:100%;background-position:center;} | ||
187 | +.subcategory_list .items .one_item .one_item_title{margin:0 !important;} | ||
188 | +.subcategory_list .items .one_item .align_bottom{position:relative !important;text-align:center !important;left:0 !important;top:0 !important;} | ||
189 | +.subcategory_list .items .one_item .one_item_image{margin:0 auto 10px auto !important;float:none !important;} | ||
190 | +.subcategory_list .items .one_item .align_bottom .one_item_compare{float:none;display:block;margin:0;} | ||
191 | +.subcategory_list .items .one_item .one_item_title, .subcategory_list .items .one_item .one_item_description{text-align:center !important;position:relative !important;} | ||
192 | +#content_wrapper .content_wrapper_header .content_wrapper_header_menu .thumbs, #content_wrapper .content_wrapper_header .content_wrapper_header_menu .lists.active, #content_wrapper .content_wrapper_header .content_wrapper_header_menu .lists:hover{display:none;} | ||
193 | +.subcategory .items .one_item, .subcategory_list .items .one_item, .search .items .one_item{width:33% !important;padding:0 5px;margin:0 !important;box-sizing:border-box;min-height:410px !important;} | ||
194 | +.one_item_image{max-width:100% !important;height:auto !important;} | ||
195 | +.items .one_item .one_item_buttons .btn, .compare_items .compare_items_table table th .btn, .items .one_item .one_item_buttons .btn, .items .one_item .one_item_buttons .not_available{margin:3px 5px !important;min-width:50% !important;display:inline-block !important;box-sizing:border-box;padding:5px 10px;width:auto;} | ||
196 | +.one_item_buttons{width:100% !important;margin-left:0 !important;overflow:hidden;text-align:center !important;margin:15px 0 15px 10px !important;float:none !important;display:block !important;} | ||
197 | +.breadcrumbs ul{padding:15px;} | ||
198 | +h1.seo-h1{padding-left:15px;} | ||
199 | +div#sidebar{display:none;position: fixed;background: #fff;z-index: 934;margin: 0 !important;width: 100%!important;height: 100%;overflow: scroll;top: 0;} | ||
200 | +.search #content_wrapper, .catalog #content_wrapper, .subcategory #content_wrapper, .subcategory_list #content_wrapper, .cabinet #content_wrapper{width:100% !important;} | ||
201 | +.catalog #content_wrapper ul li{margin:0 !important;width:33%;box-sizing:border-box;} | ||
202 | +.catalog #content_wrapper ul li a, .catalog #content_wrapper ul li a:hover{margin:0 auto;max-width:100%;} | ||
203 | +.catalog #content_wrapper ul li a img{max-width:100%;} | ||
204 | +.columns3.second_column{max-width:170px !important;} | ||
205 | +.content_items .title{background:none !important;} | ||
206 | +.content_accost .inner{padding:0 20px 0 20px;box-sizing:border-box;} | ||
207 | +.stock_items.clearfix, .prof_stock_items.clearfix{overflow:scroll;padding:10px 0 0 20px;} | ||
208 | +.stock_items .items.clearfix, .top_items .items.clearfix, .recomended_items .items.clearfix, .new_items .items.clearfix, .prof_stock_items .items.clearfix{height:420px;width:1000px !important;padding-top:19px;} | ||
209 | +.title.clearfix{position:absolute;} | ||
210 | +.top_items.clearfix{overflow:scroll;padding:10px 0 0 20px;} | ||
211 | +.recomended_items.clearfix{overflow:scroll;padding:10px 0 0 20px;} | ||
212 | +.new_items.clearfix{overflow:scroll;padding:10px 0 0 20px;} | ||
213 | +.content_blog{display:none;} | ||
214 | +.content_nav_second_floor .float{padding:0 !important;width:33% !important;box-sizing:border-box;text-align:center;margin:25px 0;height:140px;} | ||
215 | +.content_nav_first_floor.clearfix{border:0 !important;width:50%;float:left;} | ||
216 | +.content_nav_first_floor.clearfix{padding:0;width:33% !important;box-sizing:border-box;text-align:center;margin:15px 0;} | ||
217 | +#content_nav .content_nav_first_floor .content_nav_logo{width:100% !important;margin:25px 0 !important;padding:0 !important;height:140px !important;} | ||
218 | +#content_nav .content_nav_first_floor{padding:0 !important;margin:0 !important;} | ||
219 | +.one_post.first.clearfix{max-width:100%;} | ||
220 | +html, body{width:100%;min-width:100% !important;} | ||
221 | +.content_blog{display:none;} | ||
222 | +.text_posts.float{max-width:100%;} | ||
223 | +.video_posts.float.last.small{max-width:100%;} | ||
224 | +.float.columns3.first_column{display:none;} | ||
225 | +.float.columns3.third_column.last{display:none;} | ||
226 | +div#header_nav{display:none;} | ||
227 | +.inner{width:100% !important;box-sizing:border-box;} | ||
228 | +div#layerslider-container-fw{display:none;} | ||
229 | +} | ||
230 | +@media only screen and (max-width:768px) and (min-width:431px){.float.login_with.login_with_email { | ||
231 | + width: 100% !important; | ||
232 | +} | ||
233 | + | ||
234 | +.float.login_with.login_with_social.last { | ||
235 | + width: 100% !important; | ||
236 | +} | ||
237 | + | ||
238 | +.cabinet #content_wrapper, .cabinet_login #content_wrapper { | ||
239 | + max-width: 98%; | ||
240 | + margin-left: 2% !important; | ||
241 | +}.recomended_groups.clearfix{height:400px;overflow:scroll;width:100%;} | ||
242 | +.recomended_groups .items.clearfix{width:1000px;padding-top:16px;} | ||
243 | +li.float.order_second_column{display:none;} | ||
244 | +.float.count.minus, .float.count.plus{box-sizing:content-box;} | ||
245 | +li.clearfix.main_li.order_form_header{display:none;} | ||
246 | +li.float.order_third_column{margin:10px !important;} | ||
247 | +li.float.order_fourth_column{margin:15px !important;} | ||
248 | +li.float.order_fifth_column{margin-top:15px !important;} | ||
249 | +.basket_element_delete{float:right;position:relative;top:20px;padding:0 12px 0 0 !important;} | ||
250 | +.basket_element_priceall{padding-left:20px;display:block;width:25%;float:left;margin-top:30px;} | ||
251 | +.basket_element_pricenum{float:left;margin-bottom:23px;margin-top:21px;display:block !important;width:25%;padding:0 !important;text-align:center;padding-left:15px !important;} | ||
252 | +.basket_element_prepack{display:block !important;width:100% !important;clear:both;position:relative !important;top:-42px;padding-left:140px;} | ||
253 | +.basket_element.table_line{display:block;} | ||
254 | +.basket_element_priceone{display:none !important;} | ||
255 | +.basket_block_content_html_mobile.overflow{max-height:270px;overflow:auto;} | ||
256 | +.basket_block_content.overflow{display:none;} | ||
257 | +.basket_block_content_html_mobile.overflow{display:block !important;} | ||
258 | +.basket_block_header{display:none !important;} | ||
259 | +.box-all img{max-width:100% !important;height:auto !important;} | ||
260 | +.box-wr a img{max-width:100% !important;height:auto !important;} | ||
261 | +.catalog_slider{background-size:100% !important;display:none;} | ||
262 | +div#your-clock{text-align:center;} | ||
263 | +p.countdown_action{height:40px;} | ||
264 | +p.countdown{height:32px;} | ||
265 | +.countdown_clock{height:149px !important;} | ||
266 | +.box-all{max-width:100% !important;width:100% !important;} | ||
267 | +.box-wr{max-width:100%;} | ||
268 | +.menu li{padding:16px 0px;width:33%;text-align:center;font-size:10px;} | ||
269 | +p.lending_pic_p{margin-top:0;} | ||
270 | +div#adv_block{height:400px !important;} | ||
271 | +.why_block.bounceInUp{margin:0 auto !important;display:block;width:50%;float:left;} | ||
272 | +div#reviews_block{height:703px;background-repeat:repeat;display:none;} | ||
273 | +.user_tabs li a{margin:0 auto;display:block;width:100%;text-align:center;} | ||
274 | +div#widget_block{display:none;} | ||
275 | +.sales_registration{height:181px !important;} | ||
276 | +div#sales_reg{height:264px;} | ||
277 | +.sales_des{max-width:90%;margin:10px 5%;text-align:justify;} | ||
278 | +.section-box.lending_pic{height:700px;background-size:auto 100%;} | ||
279 | +.popup_footer .green_but2{display:inline-block;margin:10px 0;} | ||
280 | +.inner.clearfix h1{line-height:30px;} | ||
281 | +.static_page_wrapper{padding:0 10px;} | ||
282 | +input#search_submit_for_phone{width:150px;height:50px;margin:0 auto;display:block;background:#fff;color:#000;font-size:18px;margin-top:50px;border-radius:34px;} | ||
283 | +#search_for_phone input#search_item{height:70px;width:100%;margin:83px 0 10px 0!important;color:#000;padding:0 20px;font-size:16px;box-sizing:border-box;} | ||
284 | +div#search_for_phone{position:fixed;background:rgba(84, 171, 39, 0.79);width:100%;height:100%;top:0;left:0;z-index:999999;padding-top:48px;color:#fff;} | ||
285 | +.icon_for_phone.icon_ua{position:absolute;top:5px;right:50px;} | ||
286 | +.icon_for_phone.icon_ua.activ a{background-image:url('../images/icon_ua_activ.png');} | ||
287 | +.icon_for_phone.icon_ru.activ a{background-image:url('../images/icon_ru_activ.png');} | ||
288 | +.icon_for_phone.icon_ua.pas a{background-image:url('../images/icon_ua_pas.png');} | ||
289 | +.icon_for_phone.icon_ru.pas a{background-image:url('../images/icon_ru_pas.png');} | ||
290 | +.icon_for_phone.icon_ru{position:absolute;top:5px;right:10px;} | ||
291 | +.icon_for_phone a span{position:absolute;right:-5px;top:-3px;background:#55a727;border-radius:100%;padding:0 4px;color:#fff;} | ||
292 | +.icon_for_phone a{position:relative;} | ||
293 | +.icon_for_phone.icon_exit, .icon_for_phone.icon_exit_white{position:absolute;top:5px;} | ||
294 | +div#wrapper{padding-top:47px;} | ||
295 | +div#menu_for_phone{position:fixed;background:#54ab27;width:100%;height:100%;top:0;left:0;z-index:999999;padding-top:48px;color:#fff;overflow:auto;} | ||
296 | +#menu_for_phone li a{height:20px;text-align:right;padding:25px 20px 0px 20px !important;border-bottom:#000 solid 1px;color:#fff;font-size:20px;text-decoration:none;font-family:Arial, Tahom;} | ||
297 | +div#header{position:fixed;width:100%;z-index:100;top:0;} | ||
298 | +.icon_search a{background-image:url('../images/phone_search.png');} | ||
299 | +.icon_menu a{background-image:url('../images/phone_menu.png');} | ||
300 | +.icon_exit a{background-image:url('../images/phone_exit.png');} | ||
301 | +.icon_exit_white a{background-image:url('../images/phone_exit_white.png');} | ||
302 | +div#top_icon_for_phone{display:block;height:50px;float:right;} | ||
303 | +.icon_for_phone a{width:40px;height:40px;display:inline-block;background-size:40px;background-position:center;background-repeat:no-repeat;} | ||
304 | +.icon_basket a{background-image:url('../images/phone_basket.png');} | ||
305 | +.icon_for_phone{width:50px;height:50px;display:inline-block;} | ||
306 | +div#top_icon_for_phone{display:block !important;height:50px;float:right;position:absolute;right:0;} | ||
307 | +.icon_for_phone{width:50px;height:50px;display:inline-block;padding:5px;} | ||
308 | +.logo img{height:35px;} | ||
309 | +.logo{margin:0 !important;padding:10px 7px 0px 7px;} | ||
310 | +div#header .float.columns3.second_column{margin:0;} | ||
311 | +.static_page_wrapper img{max-width:100% !important;height:auto !important;} | ||
312 | +.contacts_form .child{max-width:100% !important;box-sizing:border-box;width:100% !important;} | ||
313 | +.contacts_form .input.float{width:100% !important;} | ||
314 | +div#content div{min-width:0px !important;} | ||
315 | +.news_content{box-sizing:border-box;padding:0 20px;} | ||
316 | +.news_content img{max-width:100%;height:auto !important;} | ||
317 | +.items .one_item{margin:0;} | ||
318 | +.items .one_item .one_item_buttons, .compare_items_table .compare_one_item .one_item_buttons{margin:0 !important;} | ||
319 | +.order div.registrated_customer .label{margin:0 auto;float:left;width:90px !important;padding-right:27px;position:relative;top:7px;} | ||
320 | +.order div.registrated_customer .input{float:left;} | ||
321 | +.order_wrapper .question_mark{background:none;} | ||
322 | +.order .contacts_form .input textarea, section #content .contacts_form .input textarea{max-width:100% !important;} | ||
323 | +.contacts_form{} | ||
324 | +.contacts_form .tabs.clearfix.do_order{margin:0;box-sizing:border-box;} | ||
325 | +.new_customer .contacts_form .label, ul.form li .label{text-align:left !important;} | ||
326 | +div{box-sizing:border-box;} | ||
327 | +.contacts_form li.float.not_active.last_tab.registrated_customer{display:block !important;} | ||
328 | +.order_form ul.form{position:relative;} | ||
329 | +li.clearfix.main_li.order_form_content{width:1000px;margin-bottom:138px;} | ||
330 | +li.clearfix.main_li.order_form_header{width:1000px;} | ||
331 | +.order .order_form ul li.clearfix{width:100%;padding-right:10px !important;box-sizing:border-box;} | ||
332 | +.input.float.promo_code{} | ||
333 | +.new_customer ul{max-width:100%;padding:0 30px 0 20px;box-sizing:border-box;} | ||
334 | +.order .contacts_form .input, ul.form li .input{} | ||
335 | +.new_customer .input_radio .additional_info{} | ||
336 | +.order .contacts_form .label, ul.form li .label{} | ||
337 | +.order .login_with_email{width:100% !important;text-align:center;margin:0 !important;box-sizing:border-box;} | ||
338 | +.order .login_with_social{width:100% !important;text-align:center;margin:0 !important;box-sizing:border-box;} | ||
339 | +.order div.registrated_customer .input input{margin:0 auto;text-align:center;} | ||
340 | +.basket_block{overflow:auto;} | ||
341 | +.popup_window{width:100% !important;max-height:100% !important;} | ||
342 | +.basket_block_content, .basket_block_header{width:915px;} | ||
343 | +#content_wrapper .content_wrapper_header .content_wrapper_header_menu .lists{display:none;} | ||
344 | +.sort_price.last .sort_price_dropdown{right:0 !important;left:auto !important;} | ||
345 | +.sort_price.float.last{max-width:92px;position:absolute;margin-top:0px;} | ||
346 | +.content_nav_items.float{display:none;} | ||
347 | +.content_nav_items{display:none;} | ||
348 | +.buy_compare .one_item_buttons.float{float:left !important;width:100px !important;} | ||
349 | +.one_news_img.float{margin:0 0 10px 0 !important;width:100% !important;text-align:center;} | ||
350 | +.one_news_content.float{width:100% !important;padding-top:14px;} | ||
351 | +.news_wrapper .one_news{width:100% !important;padding:0 20px;box-sizing:border-box;} | ||
352 | +.item_decription, .item_title, .clearfix .packing{padding:0 20px;} | ||
353 | +.float.properties{padding-left:20px;} | ||
354 | +.item_menu_content{padding:0 20px;} | ||
355 | +.other_items{overflow-y:scroll;} | ||
356 | +li.float.last_tab.not_active{display:none;} | ||
357 | +.change_similar_items li.float{max-width:33%;box-sizing:border-box;height:auto !important;} | ||
358 | +.other_items .items.inner.clearfix{width:1000px !important;margin-top:55px;padding:0 20px;} | ||
359 | +.other_items .item_menu_header_menu{position:absolute;width:100%;} | ||
360 | +.other_items .one_item.float{min-height:490px !important;} | ||
361 | +li.float.last_tab.not_active{display:none;} | ||
362 | +.change_similar_items li.float{max-width:33%;box-sizing:border-box;height:auto !important;} | ||
363 | +li.float.width_400{max-width:100%;} | ||
364 | +.float.item_content{width:100% !important;} | ||
365 | +.item .item_wrapper .item_images{max-width:100%;margin:20px auto !important;float:none;display:block;} | ||
366 | +.clearfix.buy_compare{overflow:hidden;} | ||
367 | +.float.contacts_wrapper_map{width:100% !important;margin:0 !important;} | ||
368 | +.map_description{padding:0 20px;box-sizing:border-box;} | ||
369 | +.map_description_after_map{padding:0 20px;box-sizing:border-box;} | ||
370 | +.contacts_email_address p{padding:0 20px;} | ||
371 | +.order_menu_shadow,.item_menu_shadow{max-width:100% !important;background-size:100% !important;} | ||
372 | +.not_availiable.ukr{background-repeat:no-repeat;background-size:100%;background-position:center;} | ||
373 | +.subcategory_list .items .one_item .one_item_title{margin:0 !important;} | ||
374 | +.subcategory_list .items .one_item .align_bottom{position:relative !important;text-align:center !important;left:0 !important;top:0 !important;} | ||
375 | +.subcategory_list .items .one_item .one_item_image{margin:0 auto 10px auto !important;float:none !important;} | ||
376 | +.subcategory_list .items .one_item .align_bottom .one_item_compare{float:none;display:block;margin:0;} | ||
377 | +.subcategory_list .items .one_item .one_item_title, .subcategory_list .items .one_item .one_item_description{text-align:center !important;position:relative !important;} | ||
378 | +#content_wrapper .content_wrapper_header .content_wrapper_header_menu .thumbs, #content_wrapper .content_wrapper_header .content_wrapper_header_menu .lists.active, #content_wrapper .content_wrapper_header .content_wrapper_header_menu .lists:hover{display:none;} | ||
379 | +.subcategory .items .one_item, .subcategory_list .items .one_item, .search .items .one_item{width:33% !important;padding:0 5px;margin:0 !important;box-sizing:border-box;min-height:410px !important;} | ||
380 | +.one_item_image{max-width:100% !important;height:auto !important;} | ||
381 | +.items .one_item .one_item_buttons .btn, .compare_items .compare_items_table table th .btn, .items .one_item .one_item_buttons .btn, .items .one_item .one_item_buttons .not_available{margin:3px 5px !important;min-width:50% !important;display:inline-block !important;box-sizing:border-box;padding:5px 10px;width:auto;} | ||
382 | +.one_item_buttons{width:100% !important;margin-left:0 !important;overflow:hidden;text-align:center !important;margin:15px 0 15px 10px !important;float:none !important;display:block !important;} | ||
383 | +.breadcrumbs ul{padding:15px;} | ||
384 | +h1.seo-h1{padding-left:15px;} | ||
385 | +div#sidebar{display:none;position: fixed;background: #fff;z-index: 934;margin: 0 !important;width: 100%!important;height: 100%;overflow: scroll;top: 0;} | ||
386 | +.search #content_wrapper, .catalog #content_wrapper, .subcategory #content_wrapper, .subcategory_list #content_wrapper, .cabinet #content_wrapper{width:100% !important;} | ||
387 | +.catalog #content_wrapper ul li{margin:0 !important;width:33%;box-sizing:border-box;} | ||
388 | +.catalog #content_wrapper ul li a, .catalog #content_wrapper ul li a:hover{margin:0 auto;max-width:100%;} | ||
389 | +.catalog #content_wrapper ul li a img{max-width:100%;} | ||
390 | +.columns3.second_column{max-width:170px !important;} | ||
391 | +.content_items .title{background:none !important;} | ||
392 | +.content_accost .inner{padding:0 20px 0 20px;box-sizing:border-box;} | ||
393 | +.stock_items.clearfix, .prof_stock_items.clearfix{overflow:scroll;padding:10px 0 0 20px;} | ||
394 | +.stock_items .items.clearfix, .top_items .items.clearfix, .recomended_items .items.clearfix, .new_items .items.clearfix, .prof_stock_items .items.clearfix{height:420px;width:1000px !important;padding-top:19px;} | ||
395 | +.title.clearfix{position:absolute;} | ||
396 | +.top_items.clearfix{overflow:scroll;padding:10px 0 0 20px;} | ||
397 | +.recomended_items.clearfix{overflow:scroll;padding:10px 0 0 20px;} | ||
398 | +.new_items.clearfix{overflow:scroll;padding:10px 0 0 20px;} | ||
399 | +.content_blog{display:none;} | ||
400 | +.content_nav_second_floor .float{padding:0 !important;width:33% !important;box-sizing:border-box;text-align:center;margin:25px 0;height:140px;} | ||
401 | +.content_nav_first_floor.clearfix{border:0 !important;width:50%;float:left;} | ||
402 | +.content_nav_first_floor.clearfix{padding:0;width:33% !important;box-sizing:border-box;text-align:center;margin:15px 0;} | ||
403 | +#content_nav .content_nav_first_floor .content_nav_logo{width:100% !important;margin:25px 0 !important;padding:0 !important;height:140px !important;} | ||
404 | +#content_nav .content_nav_first_floor{padding:0 !important;margin:0 !important;} | ||
405 | +.one_post.first.clearfix{max-width:100%;} | ||
406 | +html, body{width:100%;min-width:100% !important;} | ||
407 | +.content_blog{display:none;} | ||
408 | +.text_posts.float{max-width:100%;} | ||
409 | +.video_posts.float.last.small{max-width:100%;} | ||
410 | +.float.columns3.first_column{display:none;} | ||
411 | +.float.columns3.third_column.last{display:none;} | ||
412 | +div#header_nav{display:none;} | ||
413 | +.inner{width:100% !important;box-sizing:border-box;} | ||
414 | +div#layerslider-container-fw{display:none;} | ||
415 | +} | ||
416 | +@media only screen and (max-width:430px){.float.login_with.login_with_email { | ||
417 | + width: 100% !important; | ||
418 | +} | ||
419 | + | ||
420 | +.float.login_with.login_with_social.last { | ||
421 | + width: 100% !important; | ||
422 | +} | ||
423 | + | ||
424 | +.cabinet #content_wrapper, .cabinet_login #content_wrapper { | ||
425 | + max-width: 98%; | ||
426 | + margin-left: 2% !important; | ||
427 | +}.why_me {line-height: 32px;} .sort_price_dropdown a{margin-top:10px !important;} | ||
428 | +.sort_price.float.padding_60{padding-left:0 !important;} | ||
429 | +.sort_price.float.last a{height:27px;padding-bottom:10px !important;overflow:hidden;box-sizing:border-box;margin-top:-5px;} | ||
430 | +.sort_price.float.padding_60{float:left;} | ||
431 | +.recomended_groups.clearfix{height:400px;overflow:scroll;width:100%;} | ||
432 | +.recomended_groups .items.clearfix{width:1000px;padding-top:16px;}.ilightbox-holder.light.ilightbox-dialogue{max-width:100%;left:0 !important;} | ||
433 | +.ilightbox-container{width:100% !important;} | ||
434 | +li.float.order_second_column{display:none;} | ||
435 | +.float.count.minus, .float.count.plus{box-sizing:content-box;} | ||
436 | +li.clearfix.main_li.order_form_header{display:none;} | ||
437 | +li.float.order_third_column{margin:10px !important;} | ||
438 | +li.float.order_fourth_column{margin:15px !important;} | ||
439 | +li.float.order_fifth_column{margin-top:15px !important;} | ||
440 | +.basket_element_delete{float:right;position:relative;top:20px;padding:0 12px 0 0 !important;} | ||
441 | +.basket_element_priceall{padding-left:20px;display:block;width:50%;float:left;} | ||
442 | +.basket_element_pricenum{float:left;margin-bottom:23px;margin-top:21px;display:block !important;width:50%;padding:0 !important;text-align:center;padding-left:15px !important;} | ||
443 | +.basket_element_prepack{display:block !important;width:100% !important;clear:both;padding:28px 0 17px 0;} | ||
444 | +.basket_element.table_line{display:block;} | ||
445 | +.basket_element_priceone{display:none !important;} | ||
446 | +.basket_block_content_html_mobile.overflow{max-height: 290px;overflow:auto;} | ||
447 | +.basket_block_content.overflow{display:none;} | ||
448 | +.basket_block_content_html_mobile.overflow{display:block !important;} | ||
449 | +.basket_block_header{display:none !important;} | ||
450 | +.box-all img{max-width:100% !important;height:auto !important;} | ||
451 | +.box-wr a img{max-width:100% !important;height:auto !important;} | ||
452 | +.catalog_slider{background-size:100% !important;display:none;} | ||
453 | +div#your-clock{text-align:center;} | ||
454 | +p.countdown_action{height:auto;line-height:40px;} | ||
455 | +p.countdown{height:32px;} | ||
456 | +.countdown_clock{height:auto !important;} | ||
457 | +.box-all{max-width:100% !important;width:100% !important;} | ||
458 | +.box-wr{max-width:100%;} | ||
459 | +.menu li{padding:16px 0px !important;width:33%;text-align:center;font-size:10px;} | ||
460 | +p.lending_pic_p{margin-top:0;} | ||
461 | +div#adv_block{height: 753px !important;} | ||
462 | +.why_block.bounceInUp{margin:0 auto !important;display:block;width:100%;} | ||
463 | +div#reviews_block{height:703px;background-repeat:repeat;display:none;} | ||
464 | +.user_tabs li a{margin:0 auto;display:block;width:100%;text-align:center;} | ||
465 | +div#widget_block{display:none;} | ||
466 | +.sales_registration{height:334px !important;} | ||
467 | +div#sales_reg{height:399px;} | ||
468 | +.sales_des{max-width:90%;margin:10px 5%;text-align:justify;} | ||
469 | +.section-box.lending_pic{height:700px;background-size:auto 100%;} | ||
470 | +.popup_footer .green_but2{display:inline-block;margin:10px 0;} | ||
471 | +.inner.clearfix h1{line-height:30px;} | ||
472 | +.static_page_wrapper{padding:0 10px;} | ||
473 | +input#search_submit_for_phone{width:150px;height:50px;margin:0 auto;display:block;background:#fff;color:#000;font-size:18px;margin-top:50px;border-radius:34px;} | ||
474 | +#search_for_phone input#search_item{height:70px;width:100%;margin:83px 0 10px 0!important;color:#000;padding:0 20px;font-size:16px;box-sizing:border-box;} | ||
475 | +div#search_for_phone{position:fixed;background:rgba(84, 171, 39, 0.79);width:100%;height:100%;top:0;left:0;z-index:999999;padding-top:48px;color:#fff;} | ||
476 | +.icon_for_phone.icon_ua{position:absolute;top:5px;right:50px;} | ||
477 | +.icon_for_phone.icon_ua.activ a{background-image:url('../images/icon_ua_activ.png');} | ||
478 | +.icon_for_phone.icon_ru.activ a{background-image:url('../images/icon_ru_activ.png');} | ||
479 | +.icon_for_phone.icon_ua.pas a{background-image:url('../images/icon_ua_pas.png');} | ||
480 | +.icon_for_phone.icon_ru.pas a{background-image:url('../images/icon_ru_pas.png');} | ||
481 | +.icon_for_phone.icon_ru{position:absolute;top:5px;right:10px;} | ||
482 | +.icon_for_phone a span{position:absolute;right:-5px;top:-3px;background:#55a727;border-radius:100%;padding:0 4px;color:#fff;} | ||
483 | +.icon_for_phone a{position:relative;} | ||
484 | +.icon_for_phone.icon_exit, .icon_for_phone.icon_exit_white{position:absolute;top:5px;} | ||
485 | +div#wrapper{padding-top:47px;} | ||
486 | +div#menu_for_phone{position:fixed;background:#54ab27;width:100%;height:100%;top:0;left:0;z-index:999999;padding-top:48px;color:#fff;overflow:auto;} | ||
487 | +#menu_for_phone li a{height:20px;text-align:right;padding:25px 20px 0px 20px !important;border-bottom:#000 solid 1px;color:#fff;font-size:20px;text-decoration:none;font-family:Arial, Tahom;} | ||
488 | +div#header{position:fixed;width:100%;z-index:100;top:0;} | ||
489 | +.icon_search a{background-image:url('../images/phone_search.png');} | ||
490 | +.icon_menu a{background-image:url('../images/phone_menu.png');} | ||
491 | +.icon_exit a{background-image:url('../images/phone_exit.png');} | ||
492 | +.icon_exit_white a{background-image:url('../images/phone_exit_white.png');} | ||
493 | +div#top_icon_for_phone{display:block;height:50px;float:right;} | ||
494 | +.icon_for_phone a{width:40px;height:40px;display:inline-block;background-size:40px;background-position:center;background-repeat:no-repeat;} | ||
495 | +.icon_basket a{background-image:url('../images/phone_basket.png');} | ||
496 | +.icon_for_phone{width:50px;height:50px;display:inline-block;} | ||
497 | +div#top_icon_for_phone{display:block !important;height:50px;float:right;position:absolute;right:0;} | ||
498 | +.icon_for_phone{width:50px;height:50px;display:inline-block;padding:5px;} | ||
499 | +.logo img{height:35px;} | ||
500 | +.logo{margin:0 !important;padding:10px 7px 0px 7px;} | ||
501 | +div#header .float.columns3.second_column{margin:0;} | ||
502 | +.static_page_wrapper img{max-width:100% !important;height:auto !important;} | ||
503 | +.contacts_form .child{max-width:100% !important;box-sizing:border-box;width:100% !important;} | ||
504 | +.contacts_form .input.float{width:100% !important;} | ||
505 | +div#content div{min-width:0px !important;} | ||
506 | +.news_content{box-sizing:border-box;padding:0 20px;} | ||
507 | +.news_content img{max-width:100%;height:auto !important;} | ||
508 | +.items .one_item{margin:0;} | ||
509 | +.items .one_item .one_item_buttons, .compare_items_table .compare_one_item .one_item_buttons{margin:0 !important;} | ||
510 | +.order div.registrated_customer .label{margin:0 auto;float:left;width:90px !important;padding-right:27px;position:relative;top:7px;} | ||
511 | +.order div.registrated_customer .input{float:left;} | ||
512 | +.order_wrapper .question_mark{background:none;} | ||
513 | +.order .contacts_form .input textarea, section #content .contacts_form .input textarea{max-width:100% !important;} | ||
514 | +.contacts_form{} | ||
515 | +.contacts_form .tabs.clearfix.do_order{margin:0;box-sizing:border-box;} | ||
516 | +.new_customer .contacts_form .label, ul.form li .label{text-align:left !important;} | ||
517 | +div{box-sizing:border-box;} | ||
518 | +.contacts_form li.float.not_active.last_tab.registrated_customer{display:block !important;} | ||
519 | +.order_form ul.form{} | ||
520 | +li.clearfix.main_li.order_form_content{width:1000px;margin-bottom:138px;} | ||
521 | +li.clearfix.main_li.order_form_header{width:1000px;} | ||
522 | +.order .order_form ul li.clearfix{width:100% !important;padding-right:10px !important;box-sizing:border-box;} | ||
523 | +.input.float.promo_code{} | ||
524 | +.new_customer ul{max-width:100%;padding:0 30px 0 20px;box-sizing:border-box;} | ||
525 | +.order .contacts_form .input, ul.form li .input{} | ||
526 | +.new_customer .input_radio .additional_info{} | ||
527 | +.order .contacts_form .label, ul.form li .label{} | ||
528 | +.order .login_with_email{width:100% !important;text-align:center;margin:0 !important;box-sizing:border-box;} | ||
529 | +.order .login_with_social{width:100% !important;text-align:center;margin:0 !important;box-sizing:border-box;} | ||
530 | +.order div.registrated_customer .input input{margin:0 auto;text-align:center;} | ||
531 | +.basket_block{overflow:auto;} | ||
532 | +.popup_window{width:100% !important;max-height:100% !important;} | ||
533 | +.basket_block_content, .basket_block_header{width:915px;} | ||
534 | +#content_wrapper .content_wrapper_header .content_wrapper_header_menu .lists{display:none;} | ||
535 | +.sort_price.last .sort_price_dropdown{right:0 !important;left:auto !important;} | ||
536 | +.sort_price.float.last{max-width:63px;} | ||
537 | +.content_nav_items.float{display:none;} | ||
538 | +.content_nav_items{display:none;} | ||
539 | +.buy_compare .one_item_buttons.float{float:left !important;width:100px !important;} | ||
540 | +.one_news_img.float{margin:0 0 10px 0 !important;width:100% !important;text-align:center;} | ||
541 | +.one_news_content.float{width:100% !important;padding-top:14px;} | ||
542 | +.news_wrapper .one_news{width:100% !important;padding:0 20px;box-sizing:border-box;} | ||
543 | +.item_decription, .item_title, .clearfix .packing{padding:0 20px;} | ||
544 | +.float.properties{padding-left:20px;} | ||
545 | +.item_menu_content{padding:0 20px;} | ||
546 | +.other_items{overflow-y:scroll;} | ||
547 | +li.float.last_tab.not_active{display:none;} | ||
548 | +.change_similar_items li.float{max-width:33%;box-sizing:border-box;height:auto !important;} | ||
549 | +.other_items .items.inner.clearfix{width:1000px !important;margin-top:55px;padding:0 20px;} | ||
550 | +.other_items .item_menu_header_menu{position:absolute;} | ||
551 | +.other_items .one_item.float{min-height:490px !important;} | ||
552 | +li.float.last_tab.not_active{display:none;} | ||
553 | +.change_similar_items li.float{max-width:33%;box-sizing:border-box;height:auto !important;} | ||
554 | +li.float.width_400{max-width:100%;} | ||
555 | +.float.item_content{width:100% !important;} | ||
556 | +.item .item_wrapper .item_images{max-width:100%;} | ||
557 | +.clearfix.buy_compare{overflow:hidden;} | ||
558 | +.float.contacts_wrapper_map{width:100% !important;margin:0 !important;} | ||
559 | +.map_description{padding:0 20px;box-sizing:border-box;} | ||
560 | +.map_description_after_map{padding:0 20px;box-sizing:border-box;} | ||
561 | +.contacts_email_address p{padding:0 20px;} | ||
562 | +.order_menu_shadow,.item_menu_shadow{max-width:100% !important;background-size:100% !important;} | ||
563 | +.not_availiable.ukr{background-repeat:no-repeat;background-size:100%;background-position:center;} | ||
564 | +.subcategory_list .items .one_item .one_item_title{margin:0 !important;} | ||
565 | +.subcategory_list .items .one_item .align_bottom{position:relative !important;text-align:center !important;left:0 !important;top:0 !important;} | ||
566 | +.subcategory_list .items .one_item .one_item_image{margin:0 auto 10px auto !important;float:none !important;} | ||
567 | +.subcategory_list .items .one_item .align_bottom .one_item_compare{float:none;display:block;margin:0;} | ||
568 | +.subcategory_list .items .one_item .one_item_title, .subcategory_list .items .one_item .one_item_description{text-align:center !important;position:relative !important;} | ||
569 | +#content_wrapper .content_wrapper_header .content_wrapper_header_menu .thumbs, #content_wrapper .content_wrapper_header .content_wrapper_header_menu .lists.active, #content_wrapper .content_wrapper_header .content_wrapper_header_menu .lists:hover{display:none;} | ||
570 | +.subcategory .items .one_item, .subcategory_list .items .one_item, .search .items .one_item{width:50% !important;padding:0 5px;margin:0 !important;box-sizing:border-box;min-height:410px !important;} | ||
571 | +.one_item_image{max-width:100% !important;height:auto !important;} | ||
572 | +.items .one_item .one_item_buttons .btn, .compare_items .compare_items_table table th .btn, .items .one_item .one_item_buttons .btn, .items .one_item .one_item_buttons .not_available{margin:3px 5px !important;min-width:50% !important;display:inline-block !important;box-sizing:border-box;padding:5px 10px;width:auto;} | ||
573 | +.one_item_buttons{width:100% !important;margin-left:0 !important;overflow:hidden;text-align:center !important;margin:15px 0 15px 10px !important;float:none !important;display:block !important;} | ||
574 | +.breadcrumbs ul{padding:15px;} | ||
575 | +h1.seo-h1{padding-left:15px;} | ||
576 | +div#sidebar{display: none;position: fixed;background: #fff;z-index: 934;margin: 0 !important;width: 100%!important;height: 100%;overflow: scroll;top: 0;} | ||
577 | +.search #content_wrapper, .catalog #content_wrapper, .subcategory #content_wrapper, .subcategory_list #content_wrapper, .cabinet #content_wrapper{width:100% !important;} | ||
578 | +.catalog #content_wrapper ul li{margin:0 !important;width:50%;box-sizing:border-box;} | ||
579 | +.catalog #content_wrapper ul li a, .catalog #content_wrapper ul li a:hover{margin:0 auto;max-width:100%;} | ||
580 | +.catalog #content_wrapper ul li a img{max-width:100%;} | ||
581 | +.columns3.second_column{max-width:170px !important;} | ||
582 | +.content_items .title{background:none !important;} | ||
583 | +.content_accost .inner{padding:0 20px 0 20px;box-sizing:border-box;} | ||
584 | +.stock_items.clearfix, .prof_stock_items.clearfix{overflow:scroll;padding:10px 0 0 20px;} | ||
585 | +.stock_items .items.clearfix, .top_items .items.clearfix, .recomended_items .items.clearfix, .new_items .items.clearfix, .prof_stock_items .items.clearfix{height:420px;width:1000px !important;padding-top:19px;} | ||
586 | +.title.clearfix{position:absolute;} | ||
587 | +.top_items.clearfix{overflow:scroll;padding:10px 0 0 20px;} | ||
588 | +.recomended_items.clearfix{overflow:scroll;padding:10px 0 0 20px;} | ||
589 | +.new_items.clearfix{overflow:scroll;padding:10px 0 0 20px;} | ||
590 | +.content_blog{display:none;} | ||
591 | +.content_nav_second_floor .float{padding:0 !important;width:50% !important;box-sizing:border-box;text-align:center;margin:15px 0;height:140px;} | ||
592 | +.content_nav_first_floor.clearfix{border:0 !important;width:50%;float:left;} | ||
593 | +.content_nav_first_floor.clearfix{padding:0;width:50% !important;box-sizing:border-box;text-align:center;margin:15px 0;} | ||
594 | +#content_nav .content_nav_first_floor .content_nav_logo{width:100% !important;margin:15px 0 !important;padding:0 !important;height:140px !important;} | ||
595 | +#content_nav .content_nav_first_floor{padding:0 !important;margin:0 !important;} | ||
596 | +.one_post.first.clearfix{max-width:100%;} | ||
597 | +html, body{width:100%;min-width:100% !important;} | ||
598 | +.content_blog{display:none;} | ||
599 | +.text_posts.float{max-width:100%;} | ||
600 | +.video_posts.float.last.small{max-width:100%;} | ||
601 | +.float.columns3.first_column{display:none;} | ||
602 | +.float.columns3.third_column.last{display:none;} | ||
603 | +div#header_nav{display:none;} | ||
604 | +.inner{width:100% !important;box-sizing:border-box;} | ||
605 | +div#layerslider-container-fw{display:none;} | ||
606 | +} | ||
0 | \ No newline at end of file | 607 | \ No newline at end of file |
www/dist/js/cart.js
1 | -$('[data-toggle="popover"]').popover(); | ||
2 | - | ||
3 | -calculateFirmTotal(); | ||
4 | - | ||
5 | -calculateFirmRemain(); | ||
6 | - | ||
7 | -var $order = $('#order'); | ||
8 | - | ||
9 | -var $preorder = $('#preorder'); | ||
10 | - | ||
11 | -var delOrderItem = function (item_id) { | ||
12 | - $.ajax({ | ||
13 | - url: '/basket/delete_item', | ||
14 | - data: { | ||
15 | - 'item_id': item_id | ||
16 | - }, | ||
17 | - type: "POST", | ||
18 | - dataType: 'json', | ||
19 | - success: function () { | ||
20 | - }, | ||
21 | - error: function (e) { | ||
22 | - console.error(e); | ||
23 | - } | ||
24 | - }); | ||
25 | -}; | ||
26 | - | ||
27 | -var delPreOrderItem = function (item_id) { | ||
28 | - $.ajax({ | ||
29 | - url: '/dealer/delete_preorder_item', | ||
30 | - data: { | ||
31 | - 'item_id': item_id | ||
32 | - }, | ||
33 | - type: "POST", | ||
34 | - dataType: 'json', | ||
35 | - success: function () { | ||
36 | - }, | ||
37 | - error: function (e) { | ||
38 | - console.error(e); | ||
39 | - } | ||
40 | - }); | ||
41 | -}; | ||
42 | - | ||
43 | -var addOrderItem = function (item_id, count_items) { | ||
44 | - $.ajax({ | ||
45 | - url: '/basket/add_item', | ||
46 | - data: { | ||
47 | - 'item_id': item_id, | ||
48 | - 'count_items': count_items | ||
49 | - }, | ||
50 | - type: "POST", | ||
51 | - success: function () { | ||
52 | - }, | ||
53 | - error: function (e) { | ||
54 | - console.error(e); | ||
55 | - } | ||
56 | - }); | ||
57 | -}; | ||
58 | - | ||
59 | -$('body, .popup_window').on('click', '.delete_but', function (e) { | ||
60 | - e.preventDefault(); | ||
61 | - var $table_parent = $(this).parent().parent().parent(); | ||
62 | - var $item = $(this).parent().parent(); | ||
63 | - if ($item.attr('data-status') == 'order') | ||
64 | - delOrderItem($item.attr('data-id')); | ||
65 | - else | ||
66 | - delPreOrderItem($item.attr('data-id')); | ||
67 | - $item.remove(); | ||
68 | - calculateTotalPrice($table_parent); | ||
69 | - calculateFirmTotal(); | ||
70 | - calculateFirmRemain(); | ||
71 | -}); | ||
72 | - | ||
73 | - | ||
74 | -$('body, .popup_window').on('click', ".minus_button", function (e) { | ||
75 | - e.preventDefault(); | ||
76 | - var $item = $(this).parents('.table_line'); | ||
77 | - var $item_num = $(this).parent().find(".item_num"); | ||
78 | - var a = $item_num.val(); | ||
79 | - if (a != 1) { | ||
80 | - $item_num.val(--a); | ||
81 | - change_count_basket($item.data('id'), a); | ||
82 | - calculateSumPrice($item_num); | ||
83 | - calculateFirmTotal(); | ||
84 | - calculateFirmRemain(); | ||
85 | - } | ||
86 | -}); | ||
87 | - | ||
88 | -$('body, .popup_window').on('click', ".plus_button", function (e) { | ||
89 | - e.preventDefault(); | ||
90 | - var $item = $(this).parents('.table_line'); | ||
91 | - var $item_num = $(this).parent().find(".item_num"); | ||
92 | - var a = $item_num.val(); | ||
93 | - $item_num.val(++a); | ||
94 | - change_count_basket($item.data('id'), a); | ||
95 | - calculateSumPrice($item_num); | ||
96 | - calculateFirmTotal(); | ||
97 | - calculateFirmRemain(); | ||
98 | - | ||
99 | -}); | ||
100 | - | ||
101 | -$('body, .popup_window').on('change', '.item_num', function (e) { | ||
102 | - e.preventDefault(); | ||
103 | - var $item = $(this).parents('.table_line'); | ||
104 | - var a = $(this).val(); | ||
105 | - change_count_basket($item.data('id'), a); | ||
106 | - calculateSumPrice($(this)); | ||
107 | - calculateFirmTotal(); | ||
108 | - calculateFirmRemain(); | ||
109 | -}); | ||
110 | - | ||
111 | -$(".last_order").click(function () { | ||
112 | - if ($(this).find("span").hasClass("arrow_down")) { | ||
113 | - $(this).find("span").removeClass("arrow_down").addClass("arrow_up"); | ||
114 | - $(".last_order_block").removeClass("hidden"); | ||
115 | - } | ||
116 | - else { | ||
117 | - $(this).find("span").removeClass("arrow_up").addClass("arrow_down"); | ||
118 | - $(".last_order_block").addClass("hidden"); | ||
119 | - } | ||
120 | -}); | ||
121 | - | ||
122 | -$("#checkbox_all").change(function () { | ||
123 | - if ($(this).prop('checked')) { | ||
124 | - $('.single_checkbox').prop('checked', true); | ||
125 | - } else { | ||
126 | - $('.single_checkbox').prop('checked', false); | ||
127 | - } | ||
128 | -}); | ||
129 | - | ||
130 | -$('.product_price').click(function (e) { | ||
131 | - e.preventDefault(); | ||
132 | - $('.product_price').removeClass('activepr'); | ||
133 | - $(this).addClass('activepr'); | ||
134 | - var action_id = $(this).attr('data-id'); | ||
135 | - getActionDiscount(action_id); | ||
136 | - calculateFirmRemain(); | ||
137 | -}); | ||
138 | - | ||
139 | -$('#add_to_order').click(function (e) { | ||
140 | - e.preventDefault(); | ||
141 | - $('input[name]:checked').each(function () { | ||
142 | - var $item = $(this).parent().parent().detach(); | ||
143 | - delPreOrderItem($item.attr('data-id')); | ||
144 | - addOrderItem($item.attr('data-id'), $item.find('.item_num').val()); | ||
145 | - $item.find('.nopdrgt').removeClass('nopdrgt pdglt15'); | ||
146 | - $item.find('input[type=checkbox]').parent().remove(); | ||
147 | - $item.find('.count1').removeClass('count1'); | ||
148 | - $item.attr('data-status', 'order'); | ||
149 | - | ||
150 | - var $last = $('.table_line').last(); | ||
151 | - $last.before($item); | ||
152 | - }); | ||
153 | - calculateTotalPrice($order); | ||
154 | - calculateTotalPrice($preorder); | ||
155 | - calculateFirmTotal(); | ||
156 | - calculateFirmRemain(); | ||
157 | -}); | ||
158 | - | ||
159 | - | ||
160 | -function getActionDiscount(action_id) { | ||
161 | - $.ajax({ | ||
162 | - url: '/ajax/action_discount/' + action_id, | ||
163 | - dataType: 'html', | ||
164 | - success: function (data) { | ||
165 | - $('.actions').empty(); | ||
166 | - $('.actions').html(data); | ||
167 | - }, | ||
168 | - error: function (e) { | ||
169 | - console.error(e.data); | ||
170 | - } | ||
171 | - }); | ||
172 | -} | ||
173 | - | ||
174 | -function calculateSumPrice($item_num) { | ||
175 | - var $table_line = $item_num.parents(".table_line"); | ||
176 | - var price_per_unit = $table_line.find('.price_per_unit span').text(); | ||
177 | - var sum = parseFloat(price_per_unit * $item_num.val()).toFixed(2); | ||
178 | - $table_line.find('.sum_price span').text(sum); | ||
179 | - calculateTotalPrice($table_line.parent()); | ||
180 | -} | ||
181 | - | ||
182 | -function calculateTotalPrice($parent) { | ||
183 | - var sums = $parent.find('.sum_price span').get(); | ||
184 | - var total = 0; | ||
185 | - $.each(sums, function (k, v) { | ||
186 | - total += +v.textContent; | ||
187 | - }); | ||
188 | - //for reusability | ||
189 | - var $total_price = $parent.find('#total_price span').length ? $parent.find('#total_price span') : $('#total_price span'); | ||
190 | - $total_price.text(total.toFixed(2)); | ||
191 | -} | ||
192 | - | ||
193 | -function calculateFirmTotal() { | ||
194 | - var $table_lines = $('#order .table_line'); | ||
195 | - var firm_sum = 0; | ||
196 | - $.each($table_lines, function (index, val) { | ||
197 | - if ($(val).attr('data-firm') == 'true') { | ||
198 | - firm_sum += +$(val).find('.sum_price span').text(); | ||
199 | - } | ||
200 | - }); | ||
201 | - $('#firm_total').find('span').text(firm_sum.toFixed(2)); | ||
202 | -} | ||
203 | - | ||
204 | -function calculateFirmRemain() { | ||
205 | - var total = +$('#firm_total').find('span').text(); | ||
206 | - var activepr = $('.activepr').find('span').text(); | ||
207 | - var remain = activepr - total; | ||
208 | - if (remain < 0) | ||
209 | - remain = 0; | ||
210 | - $('#firm_remain').find('span').text(remain); | ||
211 | -} | ||
212 | - | ||
213 | -$('.popup_window').on('click', '.basket_element_prepack .group_sizes', function(event){ | ||
214 | - event.preventDefault(); | ||
215 | - if(!$(this).hasClass('active')) { | ||
216 | - var $packing_block = $(this).parent(); | ||
217 | - var $element = $packing_block.parent(); | ||
218 | - var $prev = $packing_block.find('.group_sizes.active'); | ||
219 | - $prev.removeClass('active'); | ||
220 | - $(this).addClass('active'); | ||
221 | - var item_id = $(this).data('item_id'); | ||
222 | - $.ajax({ | ||
223 | - url: '/change_with_size', | ||
224 | - dataType: 'json', | ||
225 | - method: 'POST', | ||
226 | - data : | ||
227 | - { | ||
228 | - 'item_id' : item_id | ||
229 | - }, | ||
230 | - success: function(data){ | ||
231 | - var $item_num = $element.find('.item_num'); | ||
232 | - delOrderItem($prev.data('item_id')); | ||
233 | - add_to_basket(item_id, $item_num.val()); | ||
234 | - $element.find('.price_per_unit span').text(data['price']); | ||
235 | - calculateSumPrice($item_num); | ||
236 | - }, | ||
237 | - error: function(e){ | ||
238 | - console.error(e); | ||
239 | - } | ||
240 | - }); | ||
241 | - } | ||
242 | -}); | ||
243 | - | ||
244 | - | ||
245 | -//popup window | ||
246 | -var getCartItems = function() { | ||
247 | - $.ajax({ | ||
248 | - url: '/basket/get_cart_items', | ||
249 | - dataType: 'json', | ||
250 | - | ||
251 | - success: function (data) { | ||
252 | - | ||
253 | - var html = ''; | ||
254 | - for (var i = 0; i < data['items'].length; i++) { | ||
255 | - | ||
256 | - var cover = data['items'][i].cover; | ||
257 | - html += '<div data-status="order" data-id="'+ data['items'][i]['id'] | ||
258 | - + '" class="basket_element table_line"><div class="basket_element_name"><img src="' | ||
259 | - + cover + '" class="picture_element">' | ||
260 | - + '<div class="title_element">' + data['items'][i].title | ||
261 | - + '</div>' | ||
262 | - + '</div>' | ||
263 | - + '<div class="basket_element_prepack">'; | ||
264 | - for(var j = 0; j < data['items'][i]['group_sizes'].length; j++) { | ||
265 | - var size = data['items'][i]['group_sizes'][j]['size']; | ||
266 | - html += '<a href="#" class="group_sizes' | ||
267 | - + (data['items'][i]['group_sizes'][j]['size'] == data['items'][i]['size'] ? ' active' : '') | ||
268 | - + '" style="text-align:start;padding-top:'+(j*3) + 'px; width:' + (31+(j*3)) | ||
269 | - + 'px" data-item_id="' + data['items'][i]['group_sizes'][j]['id'] + '" >' | ||
270 | - + '<span class="group_sizes_header"></span>' | ||
271 | - + '<span class="group_sizes_content">' + data['items'][i]['group_sizes'][j]['size'] + '</span>' | ||
272 | - +'</a>'; | ||
273 | - if(data['items'][i]['group_sizes'][j+1] === undefined || size === data['items'][i]['group_sizes'][j+1]['size']) | ||
274 | - break; | ||
275 | - } | ||
276 | - html += '</div>' | ||
277 | - + '<div class="basket_element_priceone"><span class="price price_per_unit"><span>' + data['items'][i].price + '</span> грн.</span>' | ||
278 | - + '</div>' | ||
279 | - + '<div class="basket_element_pricenum"><div style="width: 100px">' | ||
280 | - + '<a href="#" class="minus_button"><img src="/images/minus.png" style="padding-right:7px;"></a>' | ||
281 | - + '<input type="number" value="' + data['items'][i].count + '" min="1" class="item_num">' | ||
282 | - + '<a href="#" class="plus_button"><img src="/images/plus.png" style="padding-left:7px;"></a></div></div>' | ||
283 | - + '<div class="basket_element_priceall"><span class="price sum_price"><span>' + data['items'][i].total_price + '</span> грн.</span>' | ||
284 | - + '</div>' | ||
285 | - + '<div class="basket_element_delete"><a class="delete_but"></a></div></div>'; | ||
286 | - } | ||
287 | - | ||
288 | - $('.summary_price .sum').text(data.total_price); | ||
289 | - $('.basket_block_content').html(html); | ||
290 | - $(".popup").animate({opacity: "show", display: "block"}, 300); | ||
291 | - $(".popup_window").animate({marginTop: "5%", width: "1000px"}, 120); | ||
292 | - | ||
293 | - }, | ||
294 | - | ||
295 | - error: function (err) { | ||
296 | - document.write(err.responseText); | ||
297 | - } | ||
298 | - }); | ||
299 | -}; | ||
300 | - | ||
301 | -var popup = function () { | ||
302 | - | ||
303 | - function closePopup() { | ||
304 | - $(".popup_window").animate({marginTop: "0.6in", width: "500px"}, 120); | ||
305 | - $(".popup").animate({opacity: "hide", display: "none"}, 300); | ||
306 | - } | ||
307 | - $(".cont_shop_but, .popup_close_button").click(function (e) { | ||
308 | - e.preventDefault(); | ||
309 | - closePopup(); | ||
310 | - }); | ||
311 | - | ||
312 | - $('.popup').click(function() { | ||
313 | - closePopup(); | ||
314 | - }); | ||
315 | - | ||
316 | - $('.popup_window').click(function(e) { | ||
317 | - e.stopPropagation(); | ||
318 | - }); | ||
319 | - | ||
320 | - $(document).on('click', '.buy', function (e) { | ||
321 | - e.preventDefault(); | ||
322 | - var $parent = $(this).parents('.product, .item_content'); | ||
323 | - var group_id = $(this).data('group_id'); | ||
324 | - var item_id = $parent.find('.active').data('item_id'); | ||
325 | - var count_items = $parent.find('input').val(); | ||
326 | - | ||
327 | - $.ajax({ | ||
328 | - url : '/ajax/get_item_group', | ||
329 | - method: 'POST', | ||
330 | - dataType: 'json', | ||
331 | - data: { | ||
332 | - 'group_id': group_id, | ||
333 | - 'item_id' : item_id | ||
334 | - }, | ||
335 | - success: function(item) { | ||
336 | - console.log('item_id ' + item['id']); | ||
337 | - add_to_basket(item['id'], count_items || 1, getCartItems); | ||
338 | - }, | ||
339 | - error: function(error) { | ||
340 | - console.error(error); | ||
341 | - document.write(error.responseText); | ||
342 | - } | ||
343 | - }); | ||
344 | - | ||
345 | - }); | ||
346 | - | ||
347 | - $('#help').click(function(e){ | ||
348 | - e.preventDefault(); | ||
349 | - videoConfirm(function(){}); | ||
350 | - }); | ||
351 | - | ||
352 | -}; | ||
353 | - | ||
354 | -popup(); | 1 | +$('[data-toggle="popover"]').popover(); |
2 | + | ||
3 | +calculateFirmTotal(); | ||
4 | + | ||
5 | +calculateFirmRemain(); | ||
6 | + | ||
7 | +var $order = $('#order'); | ||
8 | + | ||
9 | +var $preorder = $('#preorder'); | ||
10 | + | ||
11 | +var delOrderItem = function (item_id) { | ||
12 | + $.ajax({ | ||
13 | + url: '/basket/delete_item', | ||
14 | + data: { | ||
15 | + 'item_id': item_id | ||
16 | + }, | ||
17 | + type: "POST", | ||
18 | + dataType: 'json', | ||
19 | + success: function () { | ||
20 | + }, | ||
21 | + error: function (e) { | ||
22 | + console.error(e); | ||
23 | + } | ||
24 | + }); | ||
25 | +}; | ||
26 | + | ||
27 | +var delPreOrderItem = function (item_id) { | ||
28 | + $.ajax({ | ||
29 | + url: '/dealer/delete_preorder_item', | ||
30 | + data: { | ||
31 | + 'item_id': item_id | ||
32 | + }, | ||
33 | + type: "POST", | ||
34 | + dataType: 'json', | ||
35 | + success: function () { | ||
36 | + }, | ||
37 | + error: function (e) { | ||
38 | + console.error(e); | ||
39 | + } | ||
40 | + }); | ||
41 | +}; | ||
42 | + | ||
43 | +var addOrderItem = function (item_id, count_items) { | ||
44 | + $.ajax({ | ||
45 | + url: '/basket/add_item', | ||
46 | + data: { | ||
47 | + 'item_id': item_id, | ||
48 | + 'count_items': count_items | ||
49 | + }, | ||
50 | + type: "POST", | ||
51 | + success: function () { | ||
52 | + }, | ||
53 | + error: function (e) { | ||
54 | + console.error(e); | ||
55 | + } | ||
56 | + }); | ||
57 | +}; | ||
58 | + | ||
59 | +$('body, .popup_window').on('click', '.delete_but', function (e) { | ||
60 | + e.preventDefault(); | ||
61 | + var $table_parent = $(this).parent().parent().parent(); | ||
62 | + var $item = $(this).parent().parent(); | ||
63 | + if ($item.attr('data-status') == 'order') | ||
64 | + delOrderItem($item.attr('data-id')); | ||
65 | + else | ||
66 | + delPreOrderItem($item.attr('data-id')); | ||
67 | + $item.remove(); | ||
68 | + calculateTotalPrice($table_parent); | ||
69 | + calculateFirmTotal(); | ||
70 | + calculateFirmRemain(); | ||
71 | +}); | ||
72 | + | ||
73 | + | ||
74 | +$('body, .popup_window').on('click', ".minus_button", function (e) { | ||
75 | + e.preventDefault(); | ||
76 | + var $item = $(this).parents('.table_line'); | ||
77 | + var $item_num = $(this).parent().find(".item_num"); | ||
78 | + var a = $item_num.val(); | ||
79 | + if (a != 1) { | ||
80 | + $item_num.val(--a); | ||
81 | + change_count_basket($item.data('id'), a); | ||
82 | + calculateSumPrice($item_num); | ||
83 | + calculateFirmTotal(); | ||
84 | + calculateFirmRemain(); | ||
85 | + } | ||
86 | +}); | ||
87 | + | ||
88 | +$('body, .popup_window').on('click', ".plus_button", function (e) { | ||
89 | + e.preventDefault(); | ||
90 | + var $item = $(this).parents('.table_line'); | ||
91 | + var $item_num = $(this).parent().find(".item_num"); | ||
92 | + var a = $item_num.val(); | ||
93 | + $item_num.val(++a); | ||
94 | + change_count_basket($item.data('id'), a); | ||
95 | + calculateSumPrice($item_num); | ||
96 | + calculateFirmTotal(); | ||
97 | + calculateFirmRemain(); | ||
98 | + | ||
99 | +}); | ||
100 | + | ||
101 | +$('body, .popup_window').on('change', '.item_num', function (e) { | ||
102 | + e.preventDefault(); | ||
103 | + var $item = $(this).parents('.table_line'); | ||
104 | + var a = $(this).val(); | ||
105 | + change_count_basket($item.data('id'), a); | ||
106 | + calculateSumPrice($(this)); | ||
107 | + calculateFirmTotal(); | ||
108 | + calculateFirmRemain(); | ||
109 | +}); | ||
110 | + | ||
111 | +$(".last_order").click(function () { | ||
112 | + if ($(this).find("span").hasClass("arrow_down")) { | ||
113 | + $(this).find("span").removeClass("arrow_down").addClass("arrow_up"); | ||
114 | + $(".last_order_block").removeClass("hidden"); | ||
115 | + } | ||
116 | + else { | ||
117 | + $(this).find("span").removeClass("arrow_up").addClass("arrow_down"); | ||
118 | + $(".last_order_block").addClass("hidden"); | ||
119 | + } | ||
120 | +}); | ||
121 | + | ||
122 | +$("#checkbox_all").change(function () { | ||
123 | + if ($(this).prop('checked')) { | ||
124 | + $('.single_checkbox').prop('checked', true); | ||
125 | + } else { | ||
126 | + $('.single_checkbox').prop('checked', false); | ||
127 | + } | ||
128 | +}); | ||
129 | + | ||
130 | +$('.product_price').click(function (e) { | ||
131 | + e.preventDefault(); | ||
132 | + $('.product_price').removeClass('activepr'); | ||
133 | + $(this).addClass('activepr'); | ||
134 | + var action_id = $(this).attr('data-id'); | ||
135 | + getActionDiscount(action_id); | ||
136 | + calculateFirmRemain(); | ||
137 | +}); | ||
138 | + | ||
139 | +$('#add_to_order').click(function (e) { | ||
140 | + e.preventDefault(); | ||
141 | + $('input[name]:checked').each(function () { | ||
142 | + var $item = $(this).parent().parent().detach(); | ||
143 | + delPreOrderItem($item.attr('data-id')); | ||
144 | + addOrderItem($item.attr('data-id'), $item.find('.item_num').val()); | ||
145 | + $item.find('.nopdrgt').removeClass('nopdrgt pdglt15'); | ||
146 | + $item.find('input[type=checkbox]').parent().remove(); | ||
147 | + $item.find('.count1').removeClass('count1'); | ||
148 | + $item.attr('data-status', 'order'); | ||
149 | + | ||
150 | + var $last = $('.table_line').last(); | ||
151 | + $last.before($item); | ||
152 | + }); | ||
153 | + calculateTotalPrice($order); | ||
154 | + calculateTotalPrice($preorder); | ||
155 | + calculateFirmTotal(); | ||
156 | + calculateFirmRemain(); | ||
157 | +}); | ||
158 | + | ||
159 | + | ||
160 | +function getActionDiscount(action_id) { | ||
161 | + $.ajax({ | ||
162 | + url: '/ajax/action_discount/' + action_id, | ||
163 | + dataType: 'html', | ||
164 | + success: function (data) { | ||
165 | + $('.actions').empty(); | ||
166 | + $('.actions').html(data); | ||
167 | + }, | ||
168 | + error: function (e) { | ||
169 | + console.error(e.data); | ||
170 | + } | ||
171 | + }); | ||
172 | +} | ||
173 | + | ||
174 | +function calculateSumPrice($item_num) { | ||
175 | + var $table_line = $item_num.parents(".table_line"); | ||
176 | + var price_per_unit = $table_line.find('.price_per_unit span').text(); | ||
177 | + var sum = parseFloat(price_per_unit * $item_num.val()).toFixed(2); | ||
178 | + $table_line.find('.sum_price span').text(sum); | ||
179 | + calculateTotalPrice($table_line.parent()); | ||
180 | +} | ||
181 | + | ||
182 | +function calculateTotalPrice($parent) { | ||
183 | + var sums = $parent.find('.sum_price span').get(); | ||
184 | + var total = 0; | ||
185 | + $.each(sums, function (k, v) { | ||
186 | + total += +v.textContent; | ||
187 | + }); | ||
188 | + //for reusability | ||
189 | + var $total_price = $parent.find('#total_price span').length ? $parent.find('#total_price span') : $('#total_price span'); | ||
190 | + $total_price.text(total.toFixed(2)); | ||
191 | +} | ||
192 | + | ||
193 | +function calculateFirmTotal() { | ||
194 | + var $table_lines = $('#order .table_line'); | ||
195 | + var firm_sum = 0; | ||
196 | + $.each($table_lines, function (index, val) { | ||
197 | + if ($(val).attr('data-firm') == 'true') { | ||
198 | + firm_sum += +$(val).find('.sum_price span').text(); | ||
199 | + } | ||
200 | + }); | ||
201 | + $('#firm_total').find('span').text(firm_sum.toFixed(2)); | ||
202 | +} | ||
203 | + | ||
204 | +function calculateFirmRemain() { | ||
205 | + var total = +$('#firm_total').find('span').text(); | ||
206 | + var activepr = $('.activepr').find('span').text(); | ||
207 | + var remain = activepr - total; | ||
208 | + if (remain < 0) | ||
209 | + remain = 0; | ||
210 | + $('#firm_remain').find('span').text(remain); | ||
211 | +} | ||
212 | + | ||
213 | +$('.popup_window').on('click', '.basket_element_prepack .group_sizes', function(event){ | ||
214 | + event.preventDefault(); | ||
215 | + if(!$(this).hasClass('active')) { | ||
216 | + var $packing_block = $(this).parent(); | ||
217 | + var $element = $packing_block.parent(); | ||
218 | + var $prev = $packing_block.find('.group_sizes.active'); | ||
219 | + $prev.removeClass('active'); | ||
220 | + $(this).addClass('active'); | ||
221 | + var item_id = $(this).data('item_id'); | ||
222 | + $.ajax({ | ||
223 | + url: '/change_with_size', | ||
224 | + dataType: 'json', | ||
225 | + method: 'POST', | ||
226 | + data : | ||
227 | + { | ||
228 | + 'item_id' : item_id | ||
229 | + }, | ||
230 | + success: function(data){ | ||
231 | + var $item_num = $element.find('.item_num'); | ||
232 | + delOrderItem($prev.data('item_id')); | ||
233 | + add_to_basket(item_id, $item_num.val()); | ||
234 | + $element.find('.price_per_unit span').text(data['price']); | ||
235 | + calculateSumPrice($item_num); | ||
236 | + }, | ||
237 | + error: function(e){ | ||
238 | + console.error(e); | ||
239 | + } | ||
240 | + }); | ||
241 | + } | ||
242 | +}); | ||
243 | + | ||
244 | + | ||
245 | +//popup window | ||
246 | +var getCartItems = function() { | ||
247 | + $.ajax({ | ||
248 | + url: '/basket/get_cart_items', | ||
249 | + dataType: 'json', | ||
250 | + | ||
251 | + success: function (data) { | ||
252 | + | ||
253 | + var html = ''; | ||
254 | + for (var i = 0; i < data['items'].length; i++) { | ||
255 | + | ||
256 | + var cover = data['items'][i].cover; | ||
257 | + html += '<div data-status="order" data-id="'+ data['items'][i]['id'] | ||
258 | + + '" class="basket_element table_line"><div class="basket_element_name"><img src="' | ||
259 | + + cover + '" class="picture_element">' | ||
260 | + + '<div class="title_element">' + data['items'][i].title | ||
261 | + + '</div>' | ||
262 | + + '</div>' | ||
263 | + + '<div class="basket_element_prepack">'; | ||
264 | + for(var j = 0; j < data['items'][i]['group_sizes'].length; j++) { | ||
265 | + var size = data['items'][i]['group_sizes'][j]['size']; | ||
266 | + html += '<a href="#" class="group_sizes' | ||
267 | + + (data['items'][i]['group_sizes'][j]['size'] == data['items'][i]['size'] ? ' active' : '') | ||
268 | + + '" style="text-align:start;padding-top:'+(j*3) + 'px; width:' + (31+(j*3)) | ||
269 | + + 'px" data-item_id="' + data['items'][i]['group_sizes'][j]['id'] + '" >' | ||
270 | + + '<span class="group_sizes_header"></span>' | ||
271 | + + '<span class="group_sizes_content">' + data['items'][i]['group_sizes'][j]['size'] + '</span>' | ||
272 | + +'</a>'; | ||
273 | + if(data['items'][i]['group_sizes'][j+1] === undefined || size === data['items'][i]['group_sizes'][j+1]['size']) | ||
274 | + break; | ||
275 | + } | ||
276 | + html += '</div>' | ||
277 | + + '<div class="basket_element_priceone"><span class="price price_per_unit"><span>' + data['items'][i].price + '</span> грн.</span>' | ||
278 | + + '</div>' | ||
279 | + + '<div class="basket_element_pricenum"><div style="width: 100px">' | ||
280 | + + '<a href="#" class="minus_button"><img src="/images/minus.png" style="padding-right:7px;"></a>' | ||
281 | + + '<input type="number" value="' + data['items'][i].count + '" min="1" class="item_num">' | ||
282 | + + '<a href="#" class="plus_button"><img src="/images/plus.png" style="padding-left:7px;"></a></div></div>' | ||
283 | + + '<div class="basket_element_priceall"><span class="price sum_price"><span>' + data['items'][i].total_price + '</span> грн.</span>' | ||
284 | + + '</div>' | ||
285 | + + '<div class="basket_element_delete"><a class="delete_but"></a></div></div>'; | ||
286 | + } | ||
287 | + var html_mobile = ''; | ||
288 | + for (var i = 0; i < data['items'].length; i++) { | ||
289 | + var cover = data['items'][i].cover; | ||
290 | + html_mobile += '<div data-status="order" data-id="' + data['items'][i]['id'] + '" class="basket_element table_line">' + '<div class="basket_element_delete" ><a class="delete_but"></a></div>' + '<div class="title_element">' + data['items'][i].title + '</div>' + '<img src="' + cover + '" class="picture_element" style="max-width:50%;margin: 0 !important;">' + '<div class="basket_element_priceone"><span class="price price_per_unit"><span>' + data['items'][i].price + '</span> грн.</span>' + '</div>' + '<div class="basket_element_pricenum"><div style="width: 100px">' + '<a href="#" class="minus_button"><img src="/images/minus.png" style="padding-right:7px;"></a>' + '<input type="number" value="' + data['items'][i].count + '" min="1" class="item_num">' + '<a href="#" class="plus_button"><img src="/images/plus.png" style="padding-left:7px;"></a></div></div>' + '<div class="basket_element_priceall" ><span class="price sum_price"><span>' + data['items'][i].total_price + '</span> грн.</span>' + '</div>' + '<div class="basket_element_prepack">'; | ||
291 | + for (var j = 0; j < data['items'][i]['group_sizes'].length; j++) { | ||
292 | + var size = data['items'][i]['group_sizes'][j]['size']; | ||
293 | + html_mobile += '<a href="#" class="group_sizes' + (data['items'][i]['group_sizes'][j]['size'] == data['items'][i]['size'] ? ' active' : '') + '" style="text-align:start;padding-top:' + (j * 3) + 'px; width:' + (31 + (j * 3)) + 'px" data-item_id="' + data['items'][i]['group_sizes'][j]['id'] + '" >' + '<span class="group_sizes_header"></span>' + '<span class="group_sizes_content">' + data['items'][i]['group_sizes'][j]['size'] + '</span>' + '</a>'; | ||
294 | + if (data['items'][i]['group_sizes'][j + 1] === undefined || size === data['items'][i]['group_sizes'][j + 1]['size']) break; | ||
295 | + } | ||
296 | + html_mobile += '</div>' + '</div>'; | ||
297 | + } | ||
298 | + $('.summary_price .sum').text(data.total_price); | ||
299 | + $('.basket_block_content').html(html); | ||
300 | + $('.basket_block_content_html_mobile').html(html_mobile); | ||
301 | + $(".popup").animate({opacity: "show", display: "block"}, 300); | ||
302 | + $(".popup_window").animate({marginTop: "5%", width: "1000px"}, 120); | ||
303 | + | ||
304 | + }, | ||
305 | + | ||
306 | + error: function (err) { | ||
307 | + document.write(err.responseText); | ||
308 | + } | ||
309 | + }); | ||
310 | +}; | ||
311 | + | ||
312 | +var popup = function () { | ||
313 | + | ||
314 | + function closePopup() { | ||
315 | + $(".popup_window").animate({marginTop: "0.6in", width: "500px"}, 120); | ||
316 | + $(".popup").animate({opacity: "hide", display: "none"}, 300); | ||
317 | + } | ||
318 | + $(".cont_shop_but, .popup_close_button").click(function (e) { | ||
319 | + e.preventDefault(); | ||
320 | + closePopup(); | ||
321 | + }); | ||
322 | + | ||
323 | + $('.popup').click(function() { | ||
324 | + closePopup(); | ||
325 | + }); | ||
326 | + | ||
327 | + $('.popup_window').click(function(e) { | ||
328 | + e.stopPropagation(); | ||
329 | + }); | ||
330 | + | ||
331 | + $(document).on('click', '.buy', function (e) { | ||
332 | + e.preventDefault(); | ||
333 | + var $parent = $(this).parents('.product, .item_content'); | ||
334 | + var group_id = $(this).data('group_id'); | ||
335 | + var item_id = $parent.find('.active').data('item_id'); | ||
336 | + var count_items = $parent.find('input').val(); | ||
337 | + | ||
338 | + $.ajax({ | ||
339 | + url : '/ajax/get_item_group', | ||
340 | + method: 'POST', | ||
341 | + dataType: 'json', | ||
342 | + data: { | ||
343 | + 'group_id': group_id, | ||
344 | + 'item_id' : item_id | ||
345 | + }, | ||
346 | + success: function(item) { | ||
347 | + console.log('item_id ' + item['id']); | ||
348 | + add_to_basket(item['id'], count_items || 1, getCartItems); | ||
349 | + }, | ||
350 | + error: function(error) { | ||
351 | + console.error(error); | ||
352 | + document.write(error.responseText); | ||
353 | + } | ||
354 | + }); | ||
355 | + | ||
356 | + }); | ||
357 | + | ||
358 | + $('#help').click(function(e){ | ||
359 | + e.preventDefault(); | ||
360 | + videoConfirm(function(){}); | ||
361 | + }); | ||
362 | + | ||
363 | +}; | ||
364 | + | ||
365 | +popup(); |
www/images/art_web_logo.png
www/images/asd_ua_01.png
www/images/check.png
www/images/content_arrow_left.png
www/images/content_arrow_right.png
441 Bytes
480 Bytes
422 Bytes
444 Bytes
www/images/logo.png
www/images/new.png
397 Bytes
397 Bytes
286 Bytes
1.16 KB
304 Bytes
438 Bytes
www/images/shadow.png
www/images/types_logo/6.jpg
www/images/up.png
www/images/video_play.png