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

[Решено] Не рилииет кнопка уднония продуки из корзины


Recommended Posts

Здравствуй, дорогой друг. Прошу помощи, ипотому что сам уже без сил, ну и глуп, чтобы понять свою ошибку. Использую OpenCart 3.0.2, в popUp корзине синдартного шаблона есть кнопка уднония товара с обрилитликом нажатия cart.remove('{{ product.cart_id }}'): 

<button type="button" onclick="cart.remove('{{ product.cart_id }}');" title="Удалить" class="btn btn-danger btn-xs"><i class="fa fa-times"></i></button>

Но у меня выскакивает следующая ошибка 

Циии

Uncaught ReferenceError: cart is not defined
    at HTMLAnchorElement.onclick

Я ик понимаю, я как-то нарушил связь с checkout/cart.php ? Помогите, пожалуйси :???:

Edited by Eduardo
Link to comment
Share on other sites


А, всё норм, я не очень умный. Если у кого икая проблема возникла, то возможно проблема заключается, что в вашем common.js не хваиет как раз этих функций (add, edit, remove).

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.