• Priority: 0
  • Status: Waiting on customer
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 19.08.24, 10:01
  • Opened by: Nicola

Ticket #25719 - Availability color in product page

Hello, i need to modify the color of the availability of products (in stock, not in stock etc…) with green or red. I noticed that Prestashop do it but probably the theme override it and is always grey. In attachment the file.
How can i modify it?

Attachments:

color.jpg (245.9 KiB)

Comments

Fred 19 Aug 2024, 22:53

Hi, Nicola.
Can you please give me a link to a page where I can see the issue?

Nicola 20 Aug 2024, 18:20

Here an example: https://test.cebsas.it/it/batterie-alcaline/15586-batteria-9v-powerline-panasonic But the problem is in all product's pages

Fred 20 Aug 2024, 22:16

Hi, Nicola.
The issue has been fixed. Please test to confirm the change
Updated file is

/themes/alysum/templates/catalog/_partials/product-add-to-cart.tpl
Nicola 21 Aug 2024, 08:48

I checked but is still not working the color. Here how it displays and on the right how it should be. Is ok even if only the words is with colour (as the original Prestashop theme)

Attachments:

color.jpg (146.8 KiB)
Fred 21 Aug 2024, 21:00

Is the path to the file correct? Or you have installed test subdomain in another folder?

Nicola 27 Aug 2024, 09:15

I checked but is still not working. I noticed that inside the file has been modified classes with the end part with number 1, in attachment the file where i think you modified.
The file is correct at /themes/alysum/templates/catalog/_partials/product-add-to-cart.tpl in the subdomain test.cebsas.it

Attachments:

modifiche.jpg (172 KiB)
Fred 28 Aug 2024, 21:12

yes, just remove that "1" in the end

Nicola 29 Aug 2024, 16:21

i tried but is not working, i still have the grey color if in stock or not in stock

Fred 29 Aug 2024, 23:01

but I still see it in the page's code https://take.ms/cUFVW maybe it's cache issue or something else