Title: AAcAN's Replies | WordPress.org

---

# AAcAN

  [  ](https://wordpress.org/support/users/aacan/)

 *   [Profile](https://wordpress.org/support/users/aacan/)
 *   [Topics Started](https://wordpress.org/support/users/aacan/topics/)
 *   [Replies Created](https://wordpress.org/support/users/aacan/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/aacan/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/aacan/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/aacan/engagements/)
 *   [Favorites](https://wordpress.org/support/users/aacan/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Yoast SEO breaks WooCommerce Products](https://wordpress.org/support/topic/yoast-seo-breaks-woocommerce-products/)
 *  Thread Starter [AAcAN](https://wordpress.org/support/users/aacan/)
 * (@aacan)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/yoast-seo-breaks-woocommerce-products/#post-10667570)
 * Thank you, had no clue about that.
    Marked completed 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Mini Cart does not update after Woocommerce 2.5 update](https://wordpress.org/support/topic/mini-cart-does-not-update-after-woocommerce-25-update/)
 *  Thread Starter [AAcAN](https://wordpress.org/support/users/aacan/)
 * (@aacan)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/mini-cart-does-not-update-after-woocommerce-25-update/#post-6989609)
 * Hi Mike,
 * Thank you very much for the breeze reply!
    1 – Yes, even changing to Storefront
   or Twenty fourteen doesn’t change the mini cart glitch. so 2 is not applicable.
   3 – Talked to bluehost. and ofcourse they had varnish. Disabled it and Bamm! 
   it’s fixed! **I can’t say how grateful i am. Thank a ton mike.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PDF Invoices & Packing Slips for WooCommerce] Can we password protect the generated Invoice or Packing Slips?](https://wordpress.org/support/topic/can-we-password-protect-the-generated-invoice-or-packing-slips/)
 *  [AAcAN](https://wordpress.org/support/users/aacan/)
 * (@aacan)
 * [11 years ago](https://wordpress.org/support/topic/can-we-password-protect-the-generated-invoice-or-packing-slips/#post-5139735)
 * Hey [@ewout](https://wordpress.org/support/users/ewout/) i’ve tried your method,
   and the PDF gets password protected but it displays a blank pdf without any billing
   info.
    Here’s the code! (extracted from plugin)
 *     ```
       /**
       		 * Create & render DOMPDF object
       		 */
       		public function generate_pdf( $template_type, $order_ids )	{
       			$paper_size = apply_filters( 'wpo_wcpdf_paper_format', $this->template_settings['paper_size'], $template_type );
       			$paper_orientation = apply_filters( 'wpo_wcpdf_paper_orientation', 'portrait', $template_type);
   
       			do_action( 'wpo_wcpdf_before_pdf', $template_type );
       			if ( !class_exists('DOMPDF') ) {
       				// extra check to avoid clashes with other plugins using DOMPDF
       				// This could have unwanted side-effects when the version that's already
       				// loaded is different, and it could also miss fonts etc, but it's better
       				// than not checking...
       				require_once( WooCommerce_PDF_Invoices::$plugin_path . "lib/dompdf/dompdf_config.inc.php" );
       			}
   
       			$dompdf = new DOMPDF();
       			$dompdf->load_html($this->process_template( $template_type, $order_ids ));
       			$dompdf->render();
       			do_action( 'wpo_wcpdf_after_pdf', $template_type );
   
       			// Set Password
       			$dompdf->get_canvas()->get_cpdf()->setEncryption('userpass', 'ownerpass', array('print'));
   
       			// Try to clean up a bit of memory
   
       			unset($complete_pdf);
   
       			return $dompdf;
       		}
   
       		/**
       		 * Stream PDF
       		 */
       		public function stream_pdf( $template_type, $order_ids, $filename ) {
   
       			$dompdf = $this->generate_pdf( $template_type, $order_ids );
       			$dompdf->stream($filename);
       ```
   
 * I know i must initiate the set password function between render and stream calls
   but the results i get is a blank password protected pdf with only black lines(
   from template i guess).
 * And if you get to develop this into a next version of the plugin, this will be
   the only plugin with such capability. (believe me i’ve searched everywhere)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Store Toolkit – WooCommerce Extensions, Quick Enhancements & Handy Tools] Can you Automate nuke to Delete Orders by Order Status](https://wordpress.org/support/topic/can-you-automate-nuke-to-delete-orders-by-order-status/)
 *  Thread Starter [AAcAN](https://wordpress.org/support/users/aacan/)
 * (@aacan)
 * [11 years ago](https://wordpress.org/support/topic/can-you-automate-nuke-to-delete-orders-by-order-status/#post-6207790)
 * oh then i’ll have to wait till the new update.
    it’s fine! Thanks for developing
   awesome stuff for free!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Store Toolkit – WooCommerce Extensions, Quick Enhancements & Handy Tools] Can you Automate nuke to Delete Orders by Order Status](https://wordpress.org/support/topic/can-you-automate-nuke-to-delete-orders-by-order-status/)
 *  Thread Starter [AAcAN](https://wordpress.org/support/users/aacan/)
 * (@aacan)
 * [11 years ago](https://wordpress.org/support/topic/can-you-automate-nuke-to-delete-orders-by-order-status/#post-6207789)
 * Ok i found it inside the cron plugin.
    Thanks anyway!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Store Toolkit – WooCommerce Extensions, Quick Enhancements & Handy Tools] Can you Automate nuke to Delete Orders by Order Status](https://wordpress.org/support/topic/can-you-automate-nuke-to-delete-orders-by-order-status/)
 *  Thread Starter [AAcAN](https://wordpress.org/support/users/aacan/)
 * (@aacan)
 * [11 years ago](https://wordpress.org/support/topic/can-you-automate-nuke-to-delete-orders-by-order-status/#post-6207787)
 * where can i get the secret key?
    BTW thanks for your response and really admire
   your work.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Caldera Forms - More Than Contact Forms] Using conditions in calculation fields](https://wordpress.org/support/topic/using-conditions-in-calculation-fields/)
 *  Thread Starter [AAcAN](https://wordpress.org/support/users/aacan/)
 * (@aacan)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/using-conditions-in-calculation-fields/#post-6033446)
 * thanks man! i must say you’r effort on this is very appreciated! Caldera forms
   is not much popular among wp people. but it must! hopefully with future updates
   it’ll be more awesome and people will love it!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Caldera Forms - More Than Contact Forms] Adding thumbnails to Radio selectors.](https://wordpress.org/support/topic/adding-thumbnails-to-radio-selectors/)
 *  Thread Starter [AAcAN](https://wordpress.org/support/users/aacan/)
 * (@aacan)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/adding-thumbnails-to-radio-selectors/#post-6033445)
 * i can suggest simple html,js integration. but i’m not sure i’ll be able to make
   an add-on.
 *     ```
       <div id="emotion">
           <input type="radio" name="emotion" id="sad" />
               <label for="sad"><img src="sad_image.png" alt="I'm sad" /></label>
   
           <input type="radio" name="emotion" id="happy" />
               <label for="happy"><img src="happy_image.png" alt="I'm happy" /></label>
       </div>
       ```
   
 * js:
 *     ```
       $('#emotion input:radio').addClass('input_hidden');
       $('#emotion label').click(function(){
           $(this).addClass('selected').siblings().removeClass('selected');
       });
       ```
   
 * Css:
 *     ```
       .input_hidden {
           position: absolute;
           left: -9999px;
       }
   
       .selected {
           background-color: #ccc;
       }
   
       #emotion label {
           display: inline-block;
           cursor: pointer;
       }
   
       #emotion label img {
           padding: 3px;
       }
       ```
   

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