Welcome, Guest
Username: Password: Remember me

TOPIC: CmGroupBuying Module More Deals

CmGroupBuying Module More Deals 5 years 9 months ago #3246

  • alfred2014
  • alfred2014's Avatar
  • Offline
  • Senior Boarder
  • Posts: 55
  • Karma: 0
Hello my friend. One quick question. How i can add discount % inside module More Deals? I am looking the code in responsive.php but adding $discount and respective <div> tag does not work. May you give me an example about how to add it? many thanks
The administrator has disabled public write access.

CmGroupBuying Module More Deals 5 years 9 months ago #3247

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1636
  • Thank you received: 245
  • Karma: 27
Hi,

You need to calculate the discount value by yourself. You can see components/com_cmgroupbuying/layouts/groupbuy/deal.php for example (search for "$discount"). Then you can display the value with PHP's echo.

Regards,
Hung
The administrator has disabled public write access.