Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33
  1. #1
    Join Date
    Apr 2009
    Location
    London
    Posts
    124
    Plugin Contributions
    0

    Default PDF Order Centre-Where's the code generating shipping method text in invoice.php

    Hi,

    I have installed the PDFOC and Big Royal Mail. The invoice printed shown shipping method in html code, I need to run a function to clean up the html. But I can not find the line where it tells to get the shipping method in invoice.php. can any guru out there can shine me some light.

    Thank you in advance for help and suggestion.

    Genesis

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

    Default PDFOC + BRM Crash

    Dear all,

    I have been having problems with the combine use of PDF Order Centre (PDFOC) and Big Royal Mail module.

    The problem is when my customer chooses to use royal mail as shipping method. In the invoice PDF file generated, a html code was displayed on the shipping method line just above the total amount line.

    I have been looking at the code of invoice.php in the PDFOC mod, I can see they use a function namely PDFOC_html_cleanup, believe to be function more or less the same as striptag(). Every other defined objects have their html tags removed, but for the shipping method. It stays.

    Later I have realised that shipping method was declared as a CharVar in the order table of shipping method field. I then have change the variable type to adapt the long html text. Problem still persist.

    I then use zen cart admin – order – packing slip. It display perfectly in the browser. So I am sure that the shipping method was taken from elsewhere.

    Now question. In the order table of MySQL database, shipping method field. What is the purpose of this field, if system read from this field, when? And where it display?

    In the admin – order – packing slip that generated, where is the shipping method code they draw from? Is it possible to rewrite the code to draw the shipping method code from the same place of where the packing slip generate.?

    Many thanks in advance for help and suggestion.

    Genesis Ruan
    Last edited by Kim; 25 Dec 2009 at 07:44 PM.

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

    Default PDFOC Invoice Template, html code did not clean up

    Dear All,

    This has been bugging me for more than six months now. Trying to sign up the forum in nl but never got approved. Since I can't speak dutch, it's logical that I ask for help here.

    PDFOC generate my invoices and packing slip, it's an wonderful addon. But I am never able to get the shipping text show proper on prints. Reason being is becasue the shipping mod I use contain html code and PDFOC may had made no provision to clean it up. So..... it looks something like this on the print out.

    [SCR]http://www.gamenano.com/images/PDFOC-ShippingMethodLineFault.jpg[/SCR]

    I have been looking at the code, and PDFOC do clean up html code, but I can never find where the shipping method text in the whole of this invoice template file. Below is the code that shows PDFOC do use html clean up in their code.

    PHP Code:
                //
                
    if ($pos PDFOC_BOTTOM_MARGIN) {
                   
    $secondpage true;
                   return;
                }
              
    $pdf->ezSetY($pos);
              
    $cy $pdf->ezText(zen_date_short($orders_comments->fields['date_added']) ,7); // 7 is font size here
              
    $pdf->ezText("<b>"PDFOC_TEXT_COMMENTS "</b>",PDFOC_COMMENTS_FONT_SIZE);
              
    $cx $pdf->getTextWidth(PDFOC_COMMENTS_FONT_SIZE,PDFOC_TEXT_COMMENTS) + PDFOC_LEFT_MARGIN;
              
    $pdf->ezSetY($cy);
              
    $y $pdf->ezText(pdfoc_html_cleanup($orders_comments->fields['comments']),PDFOC_COMMENTS_FONT_SIZE, array('aleft'=>$cx+10));
              
    $pos = ($y -5);
            
            }  
    // EOIF zen_not_null 
    So why the shipping method got html code??? Please help, you make me one very happy man once I get a clearly printed invoice. Many many thanks for you help.
    Last edited by Kim; 23 Feb 2010 at 07:16 PM.

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

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

    I see cleaned comments ... where is that cleaning the shipping?
    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!]
    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. #5
    Join Date
    Apr 2009
    Location
    London
    Posts
    124
    Plugin Contributions
    0

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

    Hi Ajeh,

    You have come to my rescue once again! Good question, that is excatly it. I can't find where the shipping_method_text are in the whole of the php file. Can I forward the file to you?

    Genesis
    Last edited by gamenano; 21 Feb 2010 at 03:57 AM.

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

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

    Let me try and find one I had to work on and see if I had to address this issue ... might be a few ...
    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!]
    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!

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

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

    Ok, Thank you very very much!

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

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

    I don't remember the original line but see if you have something similar:
    Code:
        $pdf->ezText("<b>" . pdfoc_html_cleanup($order->totals[$i]['title']) . "</b>",PDFOC_TABLE_HEADER_FONT_SIZE,array('justification'=> 'right','aright'=>$x));
    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!]
    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!

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

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

    NOTE: the download directory is a protected directory to prevent direct downloads ...
    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!]
    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!

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

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

    Oh yes forgot about that.

    Yes, there is that line on 430. What can I do?

    Genesis

 

 
Page 1 of 4 123 ... 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

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