Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: [1.9.0] Fix bug 0 value in deal report

[1.9.0] Fix bug 0 value in deal report 1 year 7 months ago #920

  • hungtran
  • hungtran's Avatar
  • OFFLINE
  • Moderator
  • Posts: 963
  • Thank you received: 157
  • Karma: 20
In CMGroupBuying 1.9.0 if you view/export for a deal, you will see that all values of the orders in the report are 0.

This is bug caused by a typo. To fix, you can modify

administrator/components/com_cmgroupbuying/controllers/report.php (line 82)
administrator/components/com_cmgroupbuying/views/report/tmpl/default3.php (line 89)
administrator/components/com_cmgroupbuying/views/report/tmpl/default.php (line 85)

You just need to change
CMGroupBuyingHelperDeal::displayDealPrice($item['quantity'] * $item['unit_price'] * $item['quantity'] * $item['shipping_cost'])

to
CMGroupBuyingHelperDeal::displayDealPrice($item['quantity'] * $item['unit_price'] + $item['quantity'] * $item['shipping_cost'])

We apologize for any inconvenience caused and thank you for your bug report!

Regards,
CMExt Team
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.377 seconds