Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 33
  1. #11
    Join Date
    Apr 2009
    Location
    London
    Posts
    124
    Plugin Contributions
    0

    Default Re: PDFOC Invoice Template, html code did not clean up

    PHP Code:
        $pdf->ezSetY($pos+PDFOC_PRODUCT_TOTALS_LEADING);
        
    $x -= PDFOC_PRICING_COLUMN_SIZES;
        
    $pdf->ezText("<b>" pdfoc_html_cleanup($order->totals[$i]['title']) . "</b>",PDFOC_TABLE_HEADER_FONT_SIZE,array('justification'=> 'right','aright'=>$x));
        
    $x += PDFOC_PRICING_COLUMN_SIZES;
        
    $pdf->ezSetY($pos+PDFOC_PRODUCT_TOTALS_LEADING);
        
    $pdf->ezText(pdfoc_html_cleanup($order->totals[$i]['text']),PDFOC_TABLE_HEADER_FONT_SIZE,array('justification'=> 'right','aright'=>$x));
    //    $pdf->addText($x,$pos,PDFOC_PRODUCT_TOTALS_FONT_SIZE,pdfoc_html_cleanup($order->totals[$i]['text']), $order->info['currency_value']);

        
    $pos -=PDFOC_PRODUCT_TOTALS_LEADING;
        
    $nexttotal++;
      } 
    // EOFOR $i = $nexttotal 

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PDFOC Invoice Template, html code did not clean up

    That is cleaned for the titles but the pdfoc_html_cleanup function does not cleaned for the HTML ... if I am not mistaken ...

    See what happens if you add to that the zen_clean_html function around that ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #13
    Join Date
    Apr 2009
    Location
    London
    Posts
    124
    Plugin Contributions
    0

    Default Re: PDFOC Invoice Template, html code did not clean up

    Oh my god!!! It's been six months. I cannot beleive my eyes. The problem is solved!!!


    /admin/includes/modules/pdfoc/templates/invoice.php

    Just replace line 430

    PHP Code:
    $pdf->ezText("<b>" pdfoc_html_cleanup($order->totals[$i]['title']) . "</b>",PDFOC_TABLE_HEADER_FONT_SIZE,array('justification'=> 'right','aright'=>$x)); 
    with

    PHP Code:
    $pdf->ezText("<b>" zen_clean_html ($order->totals[$i]['title']) . "</b>",PDFOC_TABLE_HEADER_FONT_SIZE,array('justification'=> 'right','aright'=>$x)); 
    Ajeh you such a knowlegebase. You are diamond!
    Thank you very much Ajeh!

    Now it has a very small problem which I can live with, the text is too long and too big and cause the shipping text cover the total. How do I reduce the size of the shipping method text?

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PDFOC Invoice Template, html code did not clean up

    What is your column size?
    define('PDFOC_PRICING_COLUMN_SIZES', '50');

    Near the top of the file?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #15
    Join Date
    Apr 2009
    Location
    London
    Posts
    124
    Plugin Contributions
    0

    Default Re: PDFOC Invoice Template, html code did not clean up

    [SCR]http://www.gamenano.com/images/PDFOC-ShippingMethodLineFault2.jpg[/SCR]
    Last edited by Kim; 23 Feb 2010 at 07:17 PM.

  6. #16
    Join Date
    Apr 2009
    Location
    London
    Posts
    124
    Plugin Contributions
    0

    Default Re: PDFOC Invoice Template, html code did not clean up

    I tried to change the size of the text but if I do, everything shrinks it and all pushed to the left side with text still overlapping. But hey! I am already a very very happy man!

  7. #17
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PDFOC Invoice Template, html code did not clean up

    if you still have that &reg; in there you need a clean up for it ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #18
    Join Date
    Apr 2009
    Location
    London
    Posts
    124
    Plugin Contributions
    0

    Default Re: PDFOC Invoice Template, html code did not clean up



    I would guess there is something other than the size of the text. Even there are adequate space, the word "kg(s))" seems to find its way to the next line for some reason.

    Genesis

  9. #19
    Join Date
    Apr 2009
    Location
    London
    Posts
    124
    Plugin Contributions
    0

    Default Re: PDFOC Invoice Template, html code did not clean up

    if you still have that &reg; in there you need a clean up for it ...
    that &reg; is that logo - ®

    Is this a special case?

  10. #20
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PDFOC Invoice Template, html code did not clean up

    Well I still see it ... so you can either add it to the zen_clean_html function in the general.php file or clean it in the invoice.php for the PDF ...

    The deal is, for HTML emails that &reg; is fine ... but for TEXT emails and things like the PDF generator things need to be cleaned up a bit more as, you have seen, the PDF doesn't like that HTML mixed in ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. pdf.invoice file sent with the order confirmation email
    By Advisers Australia in forum Customization from the Admin
    Replies: 0
    Last Post: 3 Feb 2014, 06:53 AM
  2. PDFOC Where's the shipping text generated in the PDFOC invoice template
    By gamenano in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 9 Sep 2009, 11:39 PM
  3. PDF Order Center packing slip not shown shipping method
    By gamenano in forum General Questions
    Replies: 3
    Last Post: 24 Aug 2009, 04:20 AM
  4. PDF Order Centre - trouble installing on v1.3.8
    By gamenano in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 4 May 2009, 11:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR