after line
{% for product in products %}
change
<tr>
to
<tr{% if not product.stock %} class="alert-danger"{% endif %}>
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
I did but not work
catalog/view/theme/default/template/checkout/cart.twig
Customers see alert "Products marked with *** are not available in the desired quantity or not in stock!"
but when there are many items in cart, they can not find marked with*** product easly.
is it possible marked with*** product move to top on the list of cart or mark with red backround like as alert?
please see attach pic.
Thank you for your helps

Attachments
there is no stock.jpg (100.9 KiB) Viewed 2219 times
Please understand this is a SUPPORT forum, not a request features forum.
You are running a commercial site on a free platform.
Please contact your theme developer if this does not work for you.
As a side note, do you have a catalog/view/theme/default/template/checkout/cart.twig file ? (and yes thank you)
your site looks like OC2 not OC3
Attachments
Screen-Shot-2019-09-12.jpg (42.32 KiB) Viewed 2209 times
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
https://www.opencart.com/index.php?rout ... n_id=10507
https://www.opencart.com/index.php?rout ... n_id=34349
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
hi again, so is it possible to revise these code for OC2 ?by mona wrote: ↑Fri Sep 13, 2019 12:48 amYes it does ..
Please understand this is a SUPPORT forum, not a request features forum.
You are running a commercial site on a free platform.
Please contact your theme developer if this does not work for you.
As a side note, do you have a catalog/view/theme/default/template/checkout/cart.twig file ? (and yes thank you)
your site looks like OC2 not OC3
Thank you for your helps ☺
after line
<?php foreach ($products as $product) { ?>
change
<tr>
to
<tr<?php if (!$product['stock']; { ?> class="alert-danger"<?php } ?>>
And if you login on admin page...you can see openart version on footer.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Hi "by mona" Thanks for your helps, I contacted with developer and he told me, admin 3.0.2.0 and fastor theme works like v2by mona wrote: ↑Fri Sep 13, 2019 12:48 amYes it does ..
Please understand this is a SUPPORT forum, not a request features forum.
You are running a commercial site on a free platform.
Please contact your theme developer if this does not work for you.
As a side note, do you have a catalog/view/theme/default/template/checkout/cart.twig file ? (and yes thank you)
your site looks like OC2 not OC3
Hi, I found that line
{% for product in products %}
but there is no this line
<?php foreach ($products as $product) { ?>
that line in
catalog/view/theme/default/template/checkout/cart.twig ?
Thanks..
1. Always post your OC version => you will find this at the bottom of your admin page (see attached)
2. A link to your site, especially if you have a theme
3. Mention any themes and or extension you have installed that may relate to your problem
4. It also helps not only us but the community as a whole if once your problem is solved you change your original title to <SOLVED>There is no stock!
------- x --------
That said - and thank you to virus or cyclops I think - plus your mini cart
attached is a OCMOD - you just install this in EXTENSIONS => INSTALLER => and remember to refresh in MODIFICATIONS ...
If this does not work you MUST post EITHER the cart.twig files OR your www.web address
Attachments
Screen-Shot-2019-09-14b.jpg (20.29 KiB) Viewed 2036 times
Screen-Shot-2019-09-14a.jpg (7.92 KiB) Viewed 2036 times
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Users browsing this forum: ianhaney50 and 49 guests