Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8204537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:55:47+00:00 2026-06-07T07:55:47+00:00

I am working on an ordering system for my company utilizing Open Cart. Everything

  • 0

I am working on an ordering system for my company utilizing Open Cart.
Everything is being done in PHP and HTML.

I am trying to modify the invoice page to include a signature line at the bottom of the printed invoice. Invoices can stretch to multiple pages depending on the number of lines/items, and they can also be batched so that one document to be printed has multiple invoices (using a loop). I am not a web developer, and have hit the end of my abilities to get this part of the project done. Please give me pointers or pseudo code samples.

Footer Code:

<style type="text/css">
    .picklistCheck{
        width:15px;
        height:15px;
        border:1px solid #c7c7c7;
        margin:0 auto;
        border-radius:2px;
        box-shadow:inset 0px 0px 2px rgba(0,0,0,0.1);
        font-size:14pt;
    }
    .signature{
        border-bottom-style:solid;
        font-size:14pt;
        page-break-after:always;
    }
    td{
        font-size:14pt;
    }
</style>

<?php
    foreach ($orders as $order) {
        ?>
        //<div>orders go here </div>
        <?php
    }
    include ("footer.php");
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:55:48+00:00Added an answer on June 7, 2026 at 7:55 am

    Every time your logic decides to put a page break in the invoice, tell it to insert the following code also:

    <?php include ("footer.php"); ?>
    

    Create a footer.php file with the simple html you want to place in the footer. The above code assumes that your script and footer.php are in same directory.

    EDIT: To answer your comment,

    The Include PHP.net will behave exactly like you actually copy-pasted all the code directly instead of including it. But every include file should have its own <?php ?> tags where-ever required. Without <?php ?> tags, Control will just output whatever it sees there.

    Footer.php can be a simple HTML-only file:

    <div id="footer">
        Company XYZ (c)2000-2012 All Copyrights Reserved
        Some other footer text.
    </div>
    

    You could also name it footer.html, but if later, in future, you decide to put some dynamic data in footer, it will be very difficult to change .html to .php in all include lines written in various files.

    Example of Dynamic Footer:

    <div id="footer">
        Company XYZ (c)2000-2012 All Copyrights Reserved
        <?php echo $who_printed." ".$who_authorized; ?>
    </div>
    

    Of course it is just a simple example.

    In a html page, you could force a div by using the following CSS code in an external linked .css file:

    #footer{
    text-align: right;
    height: 20px;
    position:fixed;
    margin:0px;
    bottom:0px;
    }
    

    position:fixed; & bottom:0px; is here doing the trick. It is forcing this "footer" div to stick to bottom always, even if page is scrolled or something. Like the way Facebook sticks its header menu to top & chat bar to bottom. You can also define left, right properties

    Update: Ok, based on your comments, here is the sample code:

    In CSS Style section, use:

    .signature{
        border-bottom-style:solid;
        font-size:14pt;
        page-break-after:always;
    
        text-align: center;
        height: 20px;
        width: 100%;
        margin:0px auto;
        position:fixed;
        bottom:0px;
    }
    

    All properties are self-explanatory. Text-align makes the text center-aligned. Width is making this div .signature 100% wide on page. It is required to put the div with equal margins on both sides. Margin is saying put 0px margin on top & bottom sides and auto on both left & right side. Position makes it fixed on viewport/page. Bottom says keep 0px from bottom.

    In body of page, use this code:

    <?php
        foreach ($orders as $order) {
            ?>
            //<div class="order">order1 go here </div>
            //<div class="order">order2 go here </div>
            //<div class="order">order3 go here </div>
            //<div class="order">order4 go here </div>
            <?php
        } // for each ENDS
    ?>
    
    <div class="signature">
          Authorized by <?php echo $who_authorized; ?> |
          Printed by <?php echo $who_printed; ?>
    </div><!--//signature-->
    

    It simply assigns whatever properties you defined in CSS Styling to signature div. Obviously you need to wrap this snippet into your logic, which decides when to echo/introduce the signature div. Also, $who_authorized & $who_printed needs to hold some value.

    For any block bigger than 3 lines, I always come out (?>) of PHP parser/control and simply write HTML as desired. Then, when required, I again enter PHP (<?php)

    If you want to go with include, you can omit the last 6 lines( starting from ?> & ending with <!--//signature--> from my code and simply put this line there.

    include ("footer.php");
    ?>
    

    This option also requires you to create a file named footer.php in the same directory and insert the following html code in it.

    <div class="signature">
          Authorized by <?php echo $who_authorized; ?> |
          Printed by <?php echo $who_printed; ?>
    </div><!--//signature-->
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I'm working on a textbook ordering html form with PHP User shown a
Hi i'm working through an ordering system, i've got the placing an order done
I'm working on a transactional inventory system for our e-commerce company, and I'm looking
i'm attempting to make a purchase ordering system for work in php, mysql and
I am working on a iPad ordering web app at the moment which consists
I am working on some specs for my Rails app that involve re-ordering Models
I’m working on a sandwich ordering app in ASP.NET MVC, C# and LINQ to
I am using a query for ordering results by relevancy. Sometimes it's working: SELECT
I'm trying to create a food ordering application. It will recieve menu data from
I am working on a lock free data structure, and am trying to CAS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.