Title: Cart PDF for WooCommerce
Author: CloudCatch
Published: <strong>20 Febbraio 2019</strong>
Last modified: 5 Agosto 2025

---

Ricerca i plugin

![](https://ps.w.org/wc-cart-pdf/assets/icon-256x256.png?rev=3339735)

# Cart PDF for WooCommerce

 Di [CloudCatch](https://profiles.wordpress.org/cloudcatch/)

[Scarica](https://downloads.wordpress.org/plugin/wc-cart-pdf.3.2.0.zip)

 * [Dettagli](https://it.wordpress.org/plugins/wc-cart-pdf/#description)
 * [Recensioni](https://it.wordpress.org/plugins/wc-cart-pdf/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/wc-cart-pdf/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/wc-cart-pdf/#developers)

 [Supporto](https://wordpress.org/support/plugin/wc-cart-pdf/)

## Descrizione

Adds ability for users and guests to download their WooCommerce cart as PDF. Useful
for many cases such as if a user needs a quote before completing purchase.

#### Features

 * Full PDF template customization
 * Send copy of each generated cart PDF to admin
 * Capture customer / guest information from checkout and display on generated PDF

## Screenshot

 * [[
 * Preview of an example PDF generated from the WooCommerce Cart
 * [[
 * Customizer settings

## Blocchi

Questo plugin fornisce 1 blocco.

 *   Cart PDF Button Download WooCommerce cart as PDF.

## Installazione

 1. Upload plugin and then activate
 2. Ensure WooCommerce is installed and activated as well

## FAQ

### How to view or open PDF instead of download?

Add the following code snippet to your themes functions.php:

    ```
    function child_theme_wc_cart_pdf_destination( $dest ) {
        if ( class_exists( '\WCCartPDF\Mpdf\Output\Destination' ) ) {
            $dest = \WCCartPDF\Mpdf\Output\Destination::INLINE;
        }

        return $dest;
    }
    add_filter( 'wc_cart_pdf_destination', 'child_theme_wc_cart_pdf_destination' );
    ```

### How to require user to be logged in to download cart as PDF?

Add the following code snippet to your themes functions.php:

    ```
    /**
    * Remove the default download cart button
    */
    remove_action( 'woocommerce_proceed_to_checkout', 'wc_cart_pdf_button', 21 );


    /**
    * Replace the default download cart button with our own logic to display a login notice for guests
    */
    function child_theme_wc_cart_pdf_button() {
        if( ! is_cart() || WC()->cart->is_empty() ) {
            return;
        }

        if ( is_user_logged_in() ) :
        ?>

        <a href="<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'cart-pdf' => '1' ), wc_get_cart_url() ), 'cart-pdf' ) );?>" class="cart-pdf-button button" target="_blank">
            <?php esc_html_e( 'Download Cart as PDF', 'wc-cart-pdf' ); ?>
        </a>

        <?php else : ?>

        <p><a href="<?php echo get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ); ?>" class="cart-pdf-login"><?php esc_html_e( 'Please login to download your cart as a PDF', 'wc-cart-pdf' ); ?></a></p>

        <?php 
        endif;
    }
    add_action( 'woocommerce_proceed_to_checkout', 'child_theme_wc_cart_pdf_button', 21 );
    ```

### Product images are not showing on PDF

Try adding the following to your **wp-config.php** file:

    ```
    define( 'WC_CART_PDF_THUMBNAIL_COMPATIBILITY', true );
    ```

### How can I customize the PDF template?

Copy the PDF template from the plugin folder **wc-cart-pdf/templates/cart-table.
php** into your child theme folder **child-theme/woocommerce/wc-cart-pdf/cart-table.
php**.

From there you can modify the PDF template in your child theme.

## Recensioni

![](https://secure.gravatar.com/avatar/7f964392d73b82126c6c83af301371c7b8823a962bc0605f5d722dfbfe54c887?
s=60&d=retro&r=g)

### 󠀁[Excellent RFQ Plugin](https://wordpress.org/support/topic/excellent-rfq-plugin/)󠁿

 [richkent](https://profiles.wordpress.org/richkent/) 10 Dicembre 2025

Plugin does exactly what it’s supposed to do – makes it easy for customers to download
their cart as a PDF so they can get a PO or authorization to order. Also, the plugin
support is excellent. Thanks!

![](https://secure.gravatar.com/avatar/80eb5e86f9f27b9872a0d92dfa2e682fc445cc3b18e67dc1e7ec5e274a03d65e?
s=60&d=retro&r=g)

### 󠀁[Excellent Plugin](https://wordpress.org/support/topic/excellent-plugin-9410/)󠁿

 [mqfell](https://profiles.wordpress.org/mqfell/) 4 Dicembre 2024

What an excellent plugin! Simple to use for both dev and customers. Allows for plenty
of PDF customization. No bugs!

![](https://secure.gravatar.com/avatar/6e69a5e6b43945faaba61c5bcbc1559db1649fc56398ce8a93e32f237081324b?
s=60&d=retro&r=g)

### 󠀁[Nice plugin, good support!](https://wordpress.org/support/topic/nice-plugin-good-support-20/)󠁿

 [comerelva](https://profiles.wordpress.org/comerelva/) 3 Ottobre 2024

Congrats to the dev for such a nice free tool and trying to improve with community
feedback!

![](https://secure.gravatar.com/avatar/6787fa1810fdecc8e70cd4a130549ae1ed5a646173559f1d17d77a33255b8b4b?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-38670/)󠁿

 [gvangvalo](https://profiles.wordpress.org/gvangvalo/) 26 Marzo 2024

Works great, saves a lot of time

![](https://secure.gravatar.com/avatar/48c4e43fc58206adce4dc1704e6eaa5a9d025e531730462d2bbf24819327550a?
s=60&d=retro&r=g)

### 󠀁[Amazing plugin!](https://wordpress.org/support/topic/amazing-plugin-2560/)󠁿

 [mag](https://profiles.wordpress.org/modernartgraph/) 20 Marzo 2024

It is a fantastic plugin. It is feature-rich, has no bugs, is lightweight, and works
great!And unmatched support!

![](https://secure.gravatar.com/avatar/2973a7923698747378e6368383d3321ac2ef2ae9a54b8631ab5bc8423ca5d986?
s=60&d=retro&r=g)

### 󠀁[Great](https://wordpress.org/support/topic/great-15854/)󠁿

 [woofaroo](https://profiles.wordpress.org/woofaroo/) 20 Settembre 2023

great plugin, works with TM Extra product options!!! My suggestion if you want the
PDF button, additionally in checkout, not only on cart page, paste this code into
your functions.php: function wc_cart_pdf_button_checkout() { if ( WC()->cart->is_empty()){
return; } ?> <a href=”<?php echo esc_url( wp_nonce_url( add_query_arg( array( ‘cart-
pdf’ => ‘1’ ), wc_get_cart_url() ), ‘cart-pdf’ ) ); ?>” class=”cart- pdf-button 
button” target=”_blank”> <?php echo esc_html( get_option( ‘wc_cart_pdf_button_label’,
__( ‘Download Cart as PDF’, ‘wc-cart-pdf’ ) ) ); ?></a><?php} add_action( ‘woocommerce_review_order_before_submit’,‘
wc_cart_pdf_button_checkout’ );

 [ Leggi tutte le recensioni di 25 ](https://wordpress.org/support/plugin/wc-cart-pdf/reviews/)

## Contributi e sviluppo

“Cart PDF for WooCommerce” è un software open source. Le persone che hanno contribuito
allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

 *   [ CloudCatch ](https://profiles.wordpress.org/cloudcatch/)
 *   [ David Jensen ](https://profiles.wordpress.org/dkjensen/)
 *   [ Seattle Web Co. ](https://profiles.wordpress.org/seattlewebco/)
 *   [ David Perez ](https://profiles.wordpress.org/davidperez/)
 *   [ exstheme ](https://profiles.wordpress.org/exstheme/)

“Cart PDF for WooCommerce” è stato tradotto in 6 lingue. Grazie a [chi traduce](https://translate.wordpress.org/projects/wp-plugins/wc-cart-pdf/contributors)
per il contributo.

[Traduci “Cart PDF for WooCommerce” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/wc-cart-pdf)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/wc-cart-pdf/) segui
il [repository SVN](https://plugins.svn.wordpress.org/wc-cart-pdf/), segui il [log delle modifiche](https://plugins.trac.wordpress.org/log/wc-cart-pdf/)
tramite [RSS](https://plugins.trac.wordpress.org/log/wc-cart-pdf/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

3.2.0
 * Rename plugin to Cart PDF for WooCommerce

3.1.2
 * Fix product thumbnail width too large * Add filters `wc_cart_pdf_thumbnail_width`
and `wc_cart_pdf_thumbnail_height`

3.1.1
 * Fix JS error `select.getCustomerData()` undefined under certain scenarios

3.1
 * Compatibility with WP 6.7

3.0.2
 * Fix PDF template not translating the date

3.0.1
 * Fix PDF not generating when changing shipping method

3.0.0
 * **BREAKING CHANGE**: Scoped dependencies to prevent collisions. References
to namespace `\Mpdf` is now `\WCCartPDF\Mpdf`

2.10.0
 * Set minimum compatibility to PHP 8+

2.9.4
 * Fix fatal error due to missing second parameter on `woocommerce_email_styles`
filter. (Filter removed)

2.9.3
 * Fix `wc_cart_pdf_filename` filter not being applied to admin copy

2.9.2
 * Update compatibility with WooCommerce cart and checkout blocks

2.9.1
 * Fix Georgian language not displaying all characters

2.9.0
 * Compatibility with All Products for Woo Subscriptions * Improve PDF product
thumbnail compatibility

2.8.0
 * Migrate settings to WooCommerce > Settings > Integration > Cart PDF * Add
ability to capture customer details via modal popup before downloading cart as PDF*
Additional compatbility with WooCommerce blocks

2.7.0
 * Add Cart PDF Button block

2.6.0
 * HPOS (high performance order storage) compatibility

2.5.0
 * TranslatePress compatibility

2.4.0
 * Update broken image compatibility * Add debug capability using constant`
define( 'WC_CART_PDF_DEBUG', true );` to **wp-config.php**

2.3.1
 * Update compatibility

2.3.0
 * Improve multilingual capabilities * Add customizer control to open PDF 
in new tab

2.2.3
 * Update compatibility

2.2.2
 * Update compatibility

2.2.1
 * Fix capture customer not working properly for logged in users

2.2.0
 * Add customizer option to display unique generated PDF number on PDF

2.1.7
 * Disable lazy loading product thumbnails by default * Add `define( 'WC_CART_PDF_THUMBNAIL_COMPATIBILITY',
true );` to **wp-config.php** in an attempt to fix product thumbnails not loading

2.1.6
 * Fix logo rendering on cart table PDF template

2.1.5
 * Fix capture customer feature to only capture certain checkout fields

2.1.4
 * Customizer option to show Download Cart as PDF button on checkout * Ability
to capture customer and guest information from checkout and display on PDF

2.1.3
 * Add language translation file * Stylesheet changes

2.1.2
 * Add compatibility with Gravity PDF plugin

2.1.1
 * Send admin email as HTML

2.1.0
 * Ability to send an emailed copy of generated PDF to admin * Add date to
PDF * Add customer details to PDF

2.0.6
 * Update compatibility tag * Two new hooks to modify PDF output

2.0.5
 * WordPress 5.4 compatibility * Add support for coupons displaying on PDF*
Add minimum PHP requirements admin notice and prevent loading if not satisfied *
Minor styling update to PDF

2.0.4
 * Added compatibility with Visual Products Configurator * Perform WC cart
calculate_totals() method prior to generating PDF * Added customizer setting to 
modify download cart as PDF button label

2.0.3
 * Fix composer dependencies

2.0.2
 * Update compatibility

2.0.1
 * Fix product thumbnails too large

2.0.0
 * Change PDF library from Dompdf to mPDF * Add support for RTL languages

1.0.5
 * Fix CSS for language support * Default font to Noto Sans for language support*
Update Dompdf

1.0.4
 * Add PDF template actions hooks `wc_cart_pdf_before_template` and `wc_cart_pdf_after_template`

1.0.3
 * Add customizer option to change PDF header logo, width and alignment * 
Adjustments to default widths and styling of PDF cart table * Bug fix: Expand {site_title}
variable placeholder in PDF footer text

1.0.2
 * Tested up to WordPress 5.1 * Add `wc_cart_pdf_stream_options` filter for
stream options

1.0.1
 * Add compatibility with TM Extra Product Options * Add ability to override
PDF template and CSS through the theme folder woocommerce/wc-cart-pdf/ * Add filter
to change PDF filename * Add shipping and taxes to PDF * Add WooCommerce error notice
if nonce is invalid * Add action hook before PDF is generated

1.0.0
 * Initial plugin release

## Meta

 *  Versione **3.2.0**
 *  Ultimo aggiornamento **9 mesi fa**
 *  Installazioni attive **1.000+**
 *  Versione WordPress ** 6.2 o superiore **
 *  Testato fino alla versione **6.8.5**
 *  Versione PHP ** 8.0.0 o superiore **
 *  Lingue
 * [English (US)](https://wordpress.org/plugins/wc-cart-pdf/), [Russian](https://ru.wordpress.org/plugins/wc-cart-pdf/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/wc-cart-pdf/), [Spanish (Colombia)](https://es-co.wordpress.org/plugins/wc-cart-pdf/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/wc-cart-pdf/), [Spanish (Venezuela)](https://ve.wordpress.org/plugins/wc-cart-pdf/),
   e [Ukrainian](https://uk.wordpress.org/plugins/wc-cart-pdf/).
 *  [Traduci nella tua lingua](https://translate.wordpress.org/projects/wp-plugins/wc-cart-pdf)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/wc-cart-pdf/advanced/)

## Valutazioni

 5 su 5 stelle.

 *  [  25 recensioni a 5-stelle     ](https://wordpress.org/support/plugin/wc-cart-pdf/reviews/?filter=5)
 *  [  0 recensioni a 4-stelle     ](https://wordpress.org/support/plugin/wc-cart-pdf/reviews/?filter=4)
 *  [  0 recensioni a 3-stelle     ](https://wordpress.org/support/plugin/wc-cart-pdf/reviews/?filter=3)
 *  [  0 recensioni a 2-stelle     ](https://wordpress.org/support/plugin/wc-cart-pdf/reviews/?filter=2)
 *  [  0 recensioni a 1-stelle     ](https://wordpress.org/support/plugin/wc-cart-pdf/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wc-cart-pdf/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/wc-cart-pdf/reviews/)

## Collaboratori

 *   [ CloudCatch ](https://profiles.wordpress.org/cloudcatch/)
 *   [ David Jensen ](https://profiles.wordpress.org/dkjensen/)
 *   [ Seattle Web Co. ](https://profiles.wordpress.org/seattlewebco/)
 *   [ David Perez ](https://profiles.wordpress.org/davidperez/)
 *   [ exstheme ](https://profiles.wordpress.org/exstheme/)

## Supporto

Hai qualcosa da dire? Ti serve aiuto?
Problemi risolti negli ultimi due mesi:

     1 su 2

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/wc-cart-pdf/)