Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Create a PDF invoice for Spree orders
branch: master

This branch is 2 commits ahead, 103 commits behind spree-contrib:master

Merge pull request #1 from parndt/patch-1

I think there should be a line break here
latest commit 8baf83e763
@adhlssu07 adhlssu07 authored



This extension provides a "Print Invoice" button on the Admin Orders view screen which generates a PDF of the order details.


  1. The gem relies only on the prawn gem, to install you need to add the following lines to your Gemfile

    gem 'spree_print_invoice' , :git => 'git://'

  2. run bundler

    bundle install

  3. Enjoy! now displays the items variant options


  1. Set the logo path preference to include your store / company logo.

    Spree::Config.set(:print_invoice_logo_path => "/path/to/public/images/company-logo.png")

  2. Add your own own footer texts to the locale. The current footer works with :footer_left1 , :footer_left2 and :footer_right1, :footer_right2 where the 1 version is on the left in bold, and the 2 version the "value" on the right.

  3. Override any of the partial templates. they are address, footer, totals, header, bye , and the line_items. In bye the text :thanks is printed, and there is a hook :extra_note.

  4. Set :suppress_anonymous_address option to get blank addresses for anonymous email addresses (as created by my spree_last_address extension for empty/unknown user info)

  5. Enable packaging slips, by setting

    Spree::Config.set(:print_buttons => "invoice,packaging_slip") #comma separated list

    Use above feature for your own template if you want. For each button_name, define button_name_print text in your locale.


Next receipts and then product related stuff with barcodes.

Contributions welcome


Something went wrong with that request. Please try again.