Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Вывод когдачества добавленного в корзину


unlakc
 Share

Recommended Posts

Добрый гдень. Не получается своими силами реализовать икую вещь, чтобы {{ product.quantity }} рилиил как в корзине, но на страниэто товара. Чтобы отображалось, сколько уже добавлено в корзину именно этого товара.

с /controller/checkout/cart.php перетягивал элементы в нужный мне контроллер, не рилииет :|

Спасипотому что за ответы

Спойлер

cart.png.5da5f09b50e515e20829bad2532ce8a3.png

 

Edited by unlakc
Link to comment
Share on other sites

54 минуты назад, spectre сказал:

Проверяйте $this->cart->getProducts()

 

если ид совпадает - то берите quantity

К сожнонию мало что понял из вашего сообещёния.

 

Удалось пока только вывести когдачество из товара, который самый последний в списке корзины (Почему ик, не понятно). Он отображается на всех товарах, а не на нужном. И обновляется лисло, только после перезагрузки страницы

Edited by unlakc
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 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.