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

TOPIC: [2.0.0] Black background when print coupon

[2.0.0] Black background when print coupon 1 year 5 months ago #1142

  • hungtran
  • hungtran's Avatar
  • OFFLINE
  • Moderator
  • Posts: 952
  • Thank you received: 155
  • Karma: 20
In CMGroupBuying 2.0.0, the background color of CMDailyDeal and CMGroupBuy templates are changed from white to black. This creates a black background when view and print the coupon.

To fix this you can force the coupon print page have a white background.

In components/com_cmgroupbuying/layouts/YOUR LAYOUT/coupon.php

You can find these lines:
<style type="text/css">
    div#coupon
    {
        position: relative;
        top: 0px;
        left: 0px;
        width: <?php echo $width; ?>px;
        height: <?php echo $height; ?>px;
    }
</style>

You just need to add a few lines:
<style type="text/css">
    div#coupon
    {
        position: relative;
        top: 0px;
        left: 0px;
        width: <?php echo $width; ?>px;
        height: <?php echo $height; ?>px;
    }

    body {
        background-color: #FFF !important;
    }
</style>
Last Edit: 1 year 5 months ago by hungtran.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.154 seconds