Community Documentation

Commerce PDF Invoice

Last updated June 22, 2012. Created by s1l on April 16, 2012.
Log in to edit this page.

Basic installation guide

  • Download the commerce_pdf_invoice module
  • Download the Views PDF module with its required TCPDF and FPDI libraries.
  • Instructions of how to do that can be found under 'installation' (steps 1-3) at http://drupal.org/node/1086584

  • Enable the commerce_pdf_invoice module (listed as PDF Invoice on module listing page)
  • Make sure you enable Views UI
  • Go to admin/structure/views/view/commerce_pdf_invoice and configure the PDF invoice the way you want
  • Invoices can now be found at commerce/invoice/%
  • (enter an existing invoice id instead of the %)

  • NEEDS UPDATING -> INSECURE! Make sure you edit the View's Access options, or else all users can view ALL orders as PDF.
  • In the View under PDF settings at access click 'none' and check 'permission' and as permission select Order->View Own orders of any type

  • Make sure your customer has the permission to 'View own orders of any type' at admin/people/permissions

Comments

Don't see a thing

So I downloaded and installed modules.
Checked to find invoice at commerce/invoices.....and nothing, page not found...
What am I missing?
I can see my created View, in the View UI , but what now?

same here ... installed ..

same here ... installed .. checked the view ... checked the path and its says the page is not present

the PDF invoice URL

Did you enter an existing invoice id instead of the %?
I've updated the documentation to explain this.

Issues regarding this module can be found (and added to) the issue queue at:
http://drupal.org/project/issues/commerce_pdf_invoice

Page status

Needs updating

Log in to edit this page

About this page

Drupal version
Drupal 7.x
Level
Beginner
Audience
Site administrators
Keywords
Commerce

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.