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

Минимальное количество товара в корзине


Slayer
 Share

Recommended Posts

Добрый день! У меня оптовый магазин и мне необходимо установить минимальное количество товаров, заказываемое одним клиентом (не менее 6 шт.). Суть такова: если клиент заказал, к примеру, менее 6 единиц различного или одного вида товара, тогда его заказ не будет оформлен. Возможно ли это сделать? Заранее благодарен!

Версия OC: v1.5.3.1

Link to comment
Share on other sites


Проблема решена. Вот её решение (может кому-то пригодится):

Прописываем в ..catalogcontrollercheckoutcheckout.php

if ($this->cart->countProducts() < 5) {
  $this->redirect($this->url->link('checkout/cart'));
}

В ..catalogcontrollercheckoutcart.php

if ($this->cart->countProducts() < 5) {
  $this->data['error_warning'] = 'Меньше 5 нельзя';
}

P.S. Спасибо пользователю Fix305 за помощь!

  • +1 3
Link to comment
Share on other sites


Guest
This topic is now closed to further replies.
 Share

×
×
  • 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.