Page 1 of 1
Change the *** (in red) next to out of stock products to different text.
Posted: Wed Aug 19, 2020 9:10 pm
by TomSut
When a customer pre orders a product I just want the *** next to the product (referring to it being out of stock) to say pre-order instead of ***
Customers are reading the message about it being out of stock but not noticing the tiny red *** next tot the product it is referring to at the checkout.
Screen shot
https://ibb.co/ScYQCxn
Thanks
Tom
Opencart 3.0.2.0
Journal 3 theme
Re: Change the *** (in red) next to out of stock products to different text.
Posted: Wed Aug 19, 2020 11:36 pm
by by mona
No idea if this will work for Journal but someone else had a question like this a while ago.
viewtopic.php?t=213708
at the end there is a ocmod
you can edit the language file to change the text in catalog/language/en-gb/checkout/cart.php
you can change the text in catalog/view/theme/YOUR-THEME/template/checkout/cart.twig
Code: Select all
<td class="text-left"><a href="{{ product.href }}">{{ product.name }}</a> {% if not product.stock %} <span class="text-danger">***</span> {% endif %}
Be aware that the above method will cut off quite a few characters but maybe you can try.
Re: Change the *** (in red) next to out of stock products to different text.
Posted: Thu Aug 20, 2020 6:07 pm
by TomSut
I tried to change the text in catalog/view/theme/YOUR-THEME/template/checkout/cart.twig before i posted on here.
Unfortunately didn't work, cleared the website cache and the browser cache. No change
Thanks for linking to the other topic. The extensions they mention are about removing the out of stock product altogether from the front end. I just want to rename ***.
Thank you for trying anyway.
Re: Change the *** (in red) next to out of stock products to different text.
Posted: Thu Aug 20, 2020 6:12 pm
by khnaz35
TomSut wrote: ↑Thu Aug 20, 2020 6:07 pm
I tried to change the text in catalog/view/theme/YOUR-THEME/template/checkout/cart.twig before i posted on here.
Unfortunately didn't work, cleared the website cache and the browser cache. No change
Thanks for linking to the other topic. The extensions they mention are about removing the out of stock product altogether from the front end. I just want to rename ***.
Thank you for trying anyway.
What is your site url?
Re: Change the *** (in red) next to out of stock products to different text.
Posted: Thu Aug 20, 2020 6:16 pm
by paulfeakins
If you can't find an extension, you could pay a developer such as
ourselves or post a job in the
Commercial Support Forum.
Re: Change the *** (in red) next to out of stock products to different text.
Posted: Thu Aug 20, 2020 7:09 pm
by letxobnav
just do a text search on your files for *** perhaps journal does it somewhere in css or javascript.
Re: Change the *** (in red) next to out of stock products to different text.
Posted: Thu Aug 20, 2020 7:32 pm
by by mona
Ditto above
The post linked in my original post offers a work around to
highlight the bar in red to avoid the customer missing the ***
No idea if this will work for Journal but someone else had a question like this a while ago.
viewtopic.php?t=213708
at the end there is a ocmod
In that post xxvirusxx linked to two modules that remove it altogether -
That is not the part I meant.
It may not be exactly what you want, but the above two comments give you your options - the third would be to contact Journal support.
I tried to change the text in catalog/view/theme/YOUR-THEME/template/checkout/cart.twig
and if you found the code in the correct theme folder and changed it and not taking effect and you cached using Opencart (both in admin modifications and dashboard) - this could be Journal cache on cache or server caching or browser caching or a caching extension - and you need to flush that out -