Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

lakstaf

Newbie
  
  • Posts

    0
  • Joined

  • Last visited

lakstaf's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Так же можно сделать +(Минимальное количество для заказа этого товара). Если товар продается минимум по 3 штуки счетчик будет увеличиваться именно на это число. За это отвечает переменная $minimum в БД, только не забываем перевести ее в числовой тип: parseInt(<?php echo $minimum; ?>) catalog\view\theme\(имя_вашей_темы)\template\product Версия ocStore 2.3.0.2.4 $('.quantity-plus-minus #minus').click(function () { var $input = $('.quantity input[type="text"]'); var count = parseInt($input.val()) - parseInt(<?php echo $minimum; ?>); count = count < <?php echo $minimum; ?> ? <?php echo $minimum; ?> : count; $input.val(count); $input.change(); return false; }); $('.quantity-plus-minus #plus').click(function () { var $input = $('.quantity input[type="text"]'); $input.val(parseInt($input.val()) + parseInt(<?php echo $minimum; ?>)); $input.change(); return false; });
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.