Author Topic: Remove "Total Discount" text if no discount  (Read 455 times)

Gingerweb

  • Beginner
  • *
  • Posts: 44
  • A beginner
Remove "Total Discount" text if no discount
« on: April 07, 2020, 10:46:21 am »
The "Total Discount" is shown correctly when the boxes "Total discount amount" label is ticked. Im sure this text in the product view would only show IF there was a discount applied to the product but it is showing in all products. Is there a way to just show this label IF there is a discount and nothing to show if there is no discount?

See screenshots for correct and not correct

many thanks

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27735
  • Always on vacation
    • Jenkin Hill Internet
Re: Remove "Total Discount" text if no discount
« Reply #1 on: April 07, 2020, 11:44:32 am »
It does not do that with my default VM template. Check using Protostar, you may need to edit your overrides. I usually just use the Discount amount and not the Total discount amount.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.0 10314 on Joomla 3.9.16 PHP 7.0.33

Gingerweb

  • Beginner
  • *
  • Posts: 44
  • A beginner
Re: Remove "Total Discount" text if no discount
« Reply #2 on: April 08, 2020, 00:07:40 am »
Many thanks for your reply.