function populateField(ele) {
$('#size').attr('data-size', $(ele).children("option:selected").text())
}
<?php
/* Template name: Результаты */
/* Template part for displaying posts */
?>
<?php
$count_items = -1;
if ($query->have_posts()) {
?>
<br>
<span>Найдено <?php echo $query->found_posts; ?> товара (товаров)</span><br>
<div class="pagination"><?php next_posts_link('', $query->max_num_pages); ?></div>
<div class="nav-next"><?php previous_posts_link(''); ?></div>
<?php
while ($query->have_posts()) {
$query->the_post(); ?>
<div class="offer__item">
<img src="<?php the_field('image'); ?>" alt="">
<span class="category__span">Категория товара</span>
<span><?php the_title(); ?></span>
<div>
<button>Заказать</button>
<button>Информация</button>
</div>
</div>
<?php
} ?>
<div style="clear: both;"></div>
<span class="page__count">Страница <?php echo $query->query['paged']; ?> из <?php echo $query->max_num_pages; ?></span>
<div class="pagination">
<div class="nav-previous"><?php next_posts_link('', $query->max_num_pages); ?></div>
<div class="nav-next"><?php previous_posts_link(''); ?></div>
<?php
/* example code for using the wp_pagenavi plugin */
if (function_exists('wp_pagenavi')) {
echo "<br>";
wp_pagenavi(array('query' => $query));
} ?>
</div>
</div>
<?php
} else {
echo "</br> Результатов не найдено :(";
}
?>
</div>
function displayCart() {
var cartArray = shoppingCart.listCart();
var output = "" + "<div ><input class='input-send' name='phone' value='' placeholder='Номер телефона' requaired>" + "<input class='input-send' name='name' value='' placeholder='Ваша почта' requaired>" + "<button class='sendspan' type='submit'>Отправить заказ</button></div>";
for (var i in cartArray) {
output += "<div class='form-group'>"
+ "<img src=" + cartArray[i].name + ">"
+ "<div>" + cartArray[i].article + "</div>"
+ "<div>" + cartArray[i].price + "</div>"
+ "<select></select>"
+ "<div class='input-group'><button class='minus-item input-group-addon' data-name=" + cartArray[i].name + ">-</button>"
+ "<input name='mutch' type='number' class='item-count form-control' data-name='" + cartArray[i].name + "' value='" + cartArray[i].count + "' requaired>"
+ "<button class='plus-item btn input-group-addon' data-name=" + cartArray[i].name + ">+</button></div>"
+ "<div name='price' requaired>" + cartArray[i].total + "</div>"
+ "<button class='delete-item btn btn-danger' data-name=" + cartArray[i].name + ">×</button>"
+ "<p class='form-message'></p>"
+ "<div id='message'></div>"
+ "</div>"
+ "<input class='offer' name='offer[]' value='Артикул: " + cartArray[i].article + " | Размер: " + cartArray[i].size + " | Количество: " + cartArray[i].count + " | Сумма: " + cartArray[i].total + "' requaired>"
+ "</div>";
}
$('.show-cart').html(output);
$('.total-cart').html(shoppingCart.totalCart());
$('.total-count').html(shoppingCart.totalCount());
}
+ "<select></select>"
нужно реализовать. Ваши условия и код интегрируются на страницу, где конкретно Выводится данная корзина? function displayCart() {
var cartArray = shoppingCart.listCart();
var output = "" + "<div ><input class='input-send' name='phone' value='' placeholder='Номер телефона' requaired>" + "<input class='input-send' name='name' value='' placeholder='Ваша почта' requaired>" + "<button class='sendspan' type='submit'>Отправить заказ</button></div>";
for (var i in cartArray) {
output += "<div class='form-group'>"
+ "<img src=" + cartArray[i].name + ">"
+ "<div>" + cartArray[i].article + "</div>"
+ "<div>" + cartArray[i].price + "</div>"
+ "<select>" + cartArray[i].size + "</select>"
+ "<div class='input-group'><button class='minus-item input-group-addon' data-name=" + cartArray[i].name + ">-</button>"
+ "<input name='mutch' type='number' class='item-count form-control' data-name='" + cartArray[i].name + "' value='" + cartArray[i].count + "' requaired>"
+ "<button class='plus-item btn input-group-addon' data-name=" + cartArray[i].name + ">+</button></div>"
+ "<div name='price' requaired>" + cartArray[i].total + "</div>"
+ "<button class='delete-item btn btn-danger' data-name=" + cartArray[i].name + ">×</button>"
+ "<p class='form-message'></p>"
+ "<div id='message'></div>"
+ "</div>"
+ "<input class='offer' name='offer[]' value='Артикул: " + cartArray[i].article + " | Размер: " + cartArray[i].size + " | Количество: " + cartArray[i].count + " | Сумма: " + cartArray[i].total + "' requaired>"
+ "</div>";
}
$('.show-cart').html(output);
$('.total-cart').html(shoppingCart.totalCart());
$('.total-count').html(shoppingCart.totalCount());
}
# Start Open Server 2258df3f82741f61d02509ead5bd4e0b_hosts
127.0.0.1 moom.wordpress
127.0.0.1 moom.wp
127.0.0.1 moomloc
127.0.0.1 taxe
127.0.0.1 anchor
127.0.0.1 avto.loc
127.0.0.1 basic
127.0.0.1 board.acheonshipping.com
127.0.0.1 cross
127.0.0.1 director-master
127.0.0.1 gostkarkas
127.0.0.1 infection.loc
127.0.0.1 kotzdorov
127.0.0.1 landings.git
127.0.0.1 localhost
127.0.0.1 moom
127.0.0.1 moom.loc
127.0.0.1 prestigepharm.loc
127.0.0.1 soon
127.0.0.1 study.loc
127.0.0.1 taxi
127.0.0.1 volna.loc
# End Open Server 2258df3f82741f61d02509ead5bd4e0b_hosts
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
# This HOSTS file cured by Dr.Web Anti-rootkit API
0.0.0.0 serius.mwbsys.com
0.0.0.0 keystone.mwbsys.com