You must be logged in to view the page.×

Repeated item when viewing cart

LiteCart Fan
Od Croatia
Użytkownik od cze 2024

For some reason I get the item repeated twice in two languages when viewing a cart, while in active carts it shows correctly.
Also the styling for dark theme when viewing cart isnt correct, great starting point otherwise!

LiteCart Fan
Od Morocco
Użytkownik od maj 2024

Download the latest version of CustomersActiveCarts, clear the cache related to the dark theme (it’s your own setting)... Thank you for choosing our plugin!

LiteCart Fan
Od Croatia
Użytkownik od cze 2024

Unfortunately both problems still present.. Ill try to fix it and post if I succeed

LiteCart Fan
Od Croatia
Użytkownik od cze 2024

I fixed the problems, in view_cart.php I changed the query:


LEFT JOIN ". DB_TABLE_PREFIX ."products_info product ON product.product_id = cart.product_id
with
LEFT JOIN ". DB_TABLE_PREFIX ."products_info product ON (product.product_id = cart.product_id AND product.language_code = '". database::input(language::$selected['code']) ."')

and added to the end
GROUP BY cart.product_id```

for styling I added to the end of [url=https://github.com/litecart/litecart/blob/dev/public_html/includes/templates/default.admin/css/app.min.css]https://github.com/litecart/litecart/blob/dev/public_html/includes/templates/default.admin/css/app.min.css[/url]
```html.dark-mode .list-group .list-group-item {
 background-color: #222a3d;
}```

Also not related to the addon but default LC is missing !important to
```html.dark-mode .featherlight-content {
 background:#283144
}```
Otherwise its like this
LiteCart Fan
Od Morocco
Użytkownik od maj 2024

Merci pour votre attention et votre aide, mais je pense que votre code masquera les produits avec des variantes, ainsi que d'autres qui ne sont pas dans la langue sélectionnée

Ty
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.