AAcAN
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Yoast SEO breaks WooCommerce ProductsThank you, had no clue about that.
Marked completed ??Forum: Plugins
In reply to: [WooCommerce] Mini Cart does not update after Woocommerce 2.5 updateHi 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.
Hey @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)
oh then i’ll have to wait till the new update.
it’s fine! Thanks for developing awesome stuff for free!Ok i found it inside the cron plugin.
Thanks anyway!where can i get the secret key?
BTW thanks for your response and really admire your work.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!
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; }