Title: Can we customize plugin
Last modified: September 8, 2021

---

# Can we customize plugin

 *  [Kiran](https://wordpress.org/support/users/kiran11more/)
 * (@kiran11more)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/can-we-customize-plugin/)
 * Thanks for the great plugin.
 * I want to ask if we can customize the plugin?
    1) Can we change the position 
   of the button on the cart page beside the “update cart” button? 2) Can we add
   an extra header, footer and cover in the pdf? 3) Can we change the pdf name with
   custom branding? 4)Lastly, Can we allow customers to open pdf after filling up
   popup form?
 * Thanks again.
    Kiran.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [David Jensen](https://wordpress.org/support/users/dkjensen/)
 * (@dkjensen)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/can-we-customize-plugin/#post-14850795)
 * Hi [@kiran11more](https://wordpress.org/support/users/kiran11more/)
 * Here are a couple code snippets and information on what you are looking for. 
   The custom code below can be added to your child theme **functions.php** file
   or in a custom plugin.
 * 1. Yes the following should work in most themes, though depending on your theme
   might need to adjust the CSS a bit:
 *     ```
       remove_action( 'woocommerce_proceed_to_checkout', 'wc_cart_pdf_button', 21 );
       add_action( 'woocommerce_cart_actions', 'wc_cart_pdf_button' );
       ```
   
 * 2. Yes here is the [FAQ link](https://wordpress.org/plugins/wc-cart-pdf/#how%20can%20i%20customize%20the%20pdf%20template%3F)
   on how to do that
    3. Yes use the following code to change the filename:
 *     ```
       function child_theme_cart_pdf_filename( $filename ) {
           return 'newfilename.pdf';
       }
       add_filter( 'wc_cart_pdf_filename', 'child_theme_cart_pdf_filename' );
       ```
   
 * 4. It’s possible but requires additional coding. Basically you will create your
   popup form, and upon submission of the form redirect the user to the PDF form
   page using the following URL/action:
 * `<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'cart-pdf' => '1' ),
   wc_get_cart_url() ), 'cart-pdf' ) ); ?>`
 *  Thread Starter [Kiran](https://wordpress.org/support/users/kiran11more/)
 * (@kiran11more)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/can-we-customize-plugin/#post-14860407)
 * I am really thankful for your valuable time and reply. Please take a bow.
 *  Plugin Author [David Jensen](https://wordpress.org/support/users/dkjensen/)
 * (@dkjensen)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/can-we-customize-plugin/#post-14861888)
 * [@kiran11more](https://wordpress.org/support/users/kiran11more/)
 * Sure thing – is there anything else I can help with?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can we customize plugin’ is closed to new replies.

 * ![](https://ps.w.org/wc-cart-pdf/assets/icon-256x256.png?rev=3339735)
 * [Cart PDF for WooCommerce](https://wordpress.org/plugins/wc-cart-pdf/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-cart-pdf/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-cart-pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-cart-pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-cart-pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-cart-pdf/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [David Jensen](https://wordpress.org/support/users/dkjensen/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/can-we-customize-plugin/#post-14861888)
 * Status: not resolved