TOPIC: warning price vm-best sales

warning price vm-best sales 10 years 1 month ago #4540

  • miwadesign
  • miwadesign's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 0
Hi!

I get a warning message within the module VM Best Sales on the Frontpage.

The message is as follows:

Speichern
Warning: Division by zero in /var/www/web116/html/websites/10042013/templates/ot_fashionpurestyle/html/mod_virtuemart_product/default.php on line 56
0%

I did a backup of the website and installed the backup on the server. Everything went okay yesterday. There war also no warning message within this module. But today it is shown.

Do you know what to do?

Link: backup.waffen-obertreis.de

Thank you.
The administrator has disabled public write access.

Re: warning price vm-best sales 10 years 1 month ago #4543

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2284
  • Thank you received: 998
  • Karma: 121
Cause you disable Base price with Tax, now you can edit that default.php file and replace code
if (round($product->prices['discountAmount']) != '0' )

by
if (round($product->prices['discountAmount']) != '0' && $product->prices['basePriceWithTax'] > 0)

online 53

Regards
The administrator has disabled public write access.

Re: warning price vm-best sales 10 years 1 month ago #4598

  • miwadesign
  • miwadesign's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 0
Thank you. Could you please let me know where I can find this file. Thank you again.
The administrator has disabled public write access.

Re: warning price vm-best sales 10 years 1 month ago #4608

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2284
  • Thank you received: 998
  • Karma: 121
Hello,

You can edit this file: templates/ot_fashionpurestyle/html/mod_virtuemart_product/default.php

Regards
The administrator has disabled public write access.
The following user(s) said Thank You: miwadesign
Time to create page: 0.095 seconds