Just a small update to the html. I've added a min-width property to the cart-container div to ensure it maintains a consistent width regardless of the content.
This is a LiteCart Add-on that displays the number of items and the sub-total added to the shopping cart. Both the Item count and sub-total will update dynamically without the page refreshing as the user adds items to the cart.
This add-on simply implements already existing code in LiteCart to display the cart sub-total under the item count, which is not currently implemented in the default template.
Only the Item count is implemented in the default LiteCart template on new installs.
Tested on LiteCart 2.5.5 but most likely compatible with earlier versions.
Please let me know in the forum any issues.
Easy to install. First backup includes/templates/default.catalog/views/box_cart.inc.php
and replace with box_cart.inc.php from the zip file or use the alternative VMOD and recommended method below.
Easy to style to fit your own template. All styling is contained within the html of box_cart.inc.php
Alternative Recommended Install method using a VMOD:
If you would prefer to use a VMOD, there is now one included in the root of the zip. I take no credit for this VMOD. It arrived in my inbox curtesy of another LiteCart user: @onlygoodness. Thank you @onlygoodness, great work.
To use this VMOD ignore the install Instructions in the README.md and Just copy the cart_widget.xml to VMOD folder and activate it in your LiteCart admin.
If you want to edit the styling, all the styling is contained in the vmod.
See it in action:
[+] Phiên bản 2024-06-03 | Đã tải 3 Jun 2024 bởi candypalace
Just a small update to the html. I've added a min-width property to the cart-container div to ensure it maintains a consistent width regardless of the content.
Phiên bản tương thích:
2.5.4, 2.5.5
Gói có thể tương thích với nhiều phiên bản hơn được liệt kê. Liên hệ với tác giả để biết thêm thông tin.
[+] Phiên bản 2024-03-14 | Đã tải 14 Mar 2024 bởi candypalace
Tested on LitCart 2.5.5 but most likely compatible with earlier versions.
Phiên bản tương thích:
2.5.5
Gói có thể tương thích với nhiều phiên bản hơn được liệt kê. Liên hệ với tác giả để biết thêm thông tin.
Tiện ích bổ sung được cung cấp bởi Miền công cộng.
Tiện ích bổ sung này đang được cung cấp mà không có bất kỳ hỗ trợ hoặc điều kiện sử dụng nào. Bất cứ ai cũng có thể xuất bản các bản cập nhật mới cho nó. Bạn được phép phối lại và phân phối lại tiện ích bổ sung này mà không cần ghi tác giả gốc.
Xuất bản bởi candypalace
| Chủ đề | Vừa đăng |
|---|---|
|
Shopping Cart Widget for LiteCart
bởi candypalace
|
30 thg 3 2024 10:46
bởi candypalace
|