Orientation of gift certificate in email.


  • Default avatar
    bryan4    
     11 years ago
    0

    I have everything working now with one exception. The client is saying that they are unable to print the coupon from the email without it cropping the edges. I am able to print it fine but I guess her settings are off so now she thinks everyone will have this issue.. What I would like to do is have it send the coupon in the email vertically instead of horizontally. I think this would be the easiest way to resolve the issue. Any other suggestions would be welcome. This is the last issue I have so please get back to me as soon as possible.

    So in summary how do I change the code or css or whatever in order to have the email send the certificate vertcally in the email.

    Thanks in advance!
    Bryan
  • Your avatar
    seyi    
     11 years ago
    0

    Hello,

    I guess you can use the imagerotate function:
    http://php.net/manual/en/function.imagerotate.php

    The file you want to modify is
    www/administrator/components/com_awocoupon/assets/virtuemart/ps_awo_giftcert.php, function writeToImage,
    within the if statement
    <?php
            
    elseif($output=='email') {
    ?>

  • Default avatar
    bryan4    
     11 years ago
    0

    Can you give me an idea of how it should look with the applied code?
  • Your avatar
    seyi    
     11 years ago
    0

    Here is an example of rotation

    <?php
            
    elseif($output=='email') {
                
    $degrees 90;
                
    $im imagerotate($im$degrees0);
    ?>