• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 08.12.20, 12:18
  • Opened by: Sylvain Duval
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #20147 - hide discount amount

hello,

On my site mlv.lokris.ovh , I’d like to hide my discount amount but I can’t find where I can do that.
See sreen shot.
Thanks

Attachments:

Capture d’écran 2020-12-08 à ... (272.9 KiB)

Comments

Fred 09 Dec 2020, 13:44

try following CSS

.product-miniature .discount-amount.discount-product {display:none}
Sylvain Duval 09 Dec 2020, 16:09

It doesn’t work (see screen shot).
I have serval troubles with custom CSS codes that are not working on this website.

Attachments:

Issue discount.zip (1.3 MiB)
Fred 09 Dec 2020, 17:01

it’s 100% works https://take.ms/n7RrE

Add it directly into the theme css file

Sylvain Duval 09 Dec 2020, 17:09

There is no discount on the product you show me on your screenshot, so of course the discount isn’t displaying…

There are green flag saying “PROMO !” for my on sales product. So please have a look on good products…

Fred 10 Dec 2020, 12:34

That code works for sure, see the screenshot https://take.ms/IgYQ0

Sylvain Duval 10 Dec 2020, 15:30

I really don’t understand because this is not what I see (see screenshot).
I’have cleared cache, tried on several navigator and computers…

Attachments:

Capture d’écran 2020-12-10 à ... (814.9 KiB)
Fred 10 Dec 2020, 22:43

as I can see there is no code what I gave you in the page source code

Sylvain Duval 11 Dec 2020, 10:41

It is !
I added it on my theme settings > custom CSS Go to my back office and let’s check it. It is. But apparently it doesn’t work properly as I told you.
See screenshot please.

Attachments:

Capture d’écran 2020-12-11 à ... (187 KiB)
Fred 11 Dec 2020, 11:01

Another way.
Open the file /themes/alysum/templates/catalog/_partials/miniatures/product.tpl
find and remove the following code

<span class="discount-amount discount-product">{$product.discount_amount_to_display}</span>
Sylvain Duval 11 Dec 2020, 11:28

I’d like the custom CSS in Theme Settings to work… Because if I change directly a file via FTP and then update my theme, it could erase my modifications

Fred 11 Dec 2020, 15:38

I just added css to the file /themes/alysum/assets/css/theme.css and it works

Sylvain Duval 11 Dec 2020, 17:07

Please, don’t avoid my question : I’d like to to work this your theme settings custom CSS.
I explained (to you or your colleague) that some of my custom CSS don’t work when I use it.
It is the case for the code you gave me.

So it shows that the Theme Settings > Custom CSS is not working well.

Please have a look at it, so my Theme Settings > Custom CSS works without changing CSS files.