[Joomla] How to add a coupon ID to a gift certificate image?


  • Default avatar
    vladislav    
     a month ago
    0

    Good day, I want to add the output of the coupon ID to the generated image of the gift certificate. How can I do this? Which code should be added to which file? Thank you in advance for your response.
  • Your avatar
    seyi    
     a month ago
    0

    Hello,

    In \administrator\components\com_awocoupon\awocoupon\library\class-awocoupon-library-profile.php around line 564, you can find this code:
    <?php
                    $image_tag_replace 
    $tag_replace;
    ?>

    After it add
    <?php
                    array_push
    $image_tag_replace['find'], '{coupon_id}' );
                    array_push$image_tag_replace['replace'], $row->id );
    ?>

    Then use {coupon_id}