CloudCatch
Forum Replies Created
-
Forum: Plugins
In reply to: [Splide Carousel Block] Error when try to set responsive breakpointsHi @emmek Version 1.7.1 was released which should resolve this issue. Thanks for reporting!
Forum: Plugins
In reply to: [Light Modal Block] No open modal on clickHi @eno812
The setting is not removed, but it is only available on the following blocks:
- Button
- Image
- Heading
- Group
It will be under the Advanced panel on one of those blocks.
You can trigger the modal by using a CSS selector however, something like this you can target any element that when clicked will open the modal:
View post on imgur.com
Hi @ecros
When visiting the cart page I am seeing the cart PDF button. Were you able to get this resolved?
Forum: Plugins
In reply to: [Splide Carousel Block] Problem with the “speed” optionThe plugin has been updated and should solve this issue for you.
Hello
You can add the cart number to your email subject by adding something like the below to your child theme functions.php file or in a code snippet:
add_filter( 'wc_cart_pdf_admin_copy_subject', function( $subject ) {
$incremented_num = absint( get_option( 'wc_cart_pdf_unique_increment_num', 1 ) );
$subject = sprintf( esc_html__( 'Cart Number: %s' ), sprintf( '%04d', $incremented_num ) );
// $subject = sprintf( esc_html__( 'Cart Number: %d' ), $incremented_num ); // Non formatted string
return $subject;
} );Hope this helps
Forum: Plugins
In reply to: [Cart PDF for WooCommerce] Reset PDF increment number to zeroHello
Could you please visit your URL
/wp-admin/options.php, e.g.:https://example.com/wp-admin/options.phpWhen that page loads, search for the value wc_cart_pdf_unique_increment_num
Change that back to 0 (or another number), and then save. WC Cart PDF will start from that number.
Hello
Please navigate to WooCommerce > Settings > Integrations > Cart PDF and enable the option Require customer to populate their information before download PDF.
This will enable a popup to be displayed to the customer prior to download the PDF.
To add the name field, please add the following file to child-theme/woocommerce/wc-cart-pdf/modal-capture.php:
<?php
/**
* WC Cart PDF template
*
* @package dkjensen/wc-cart-pdf
*/
?>
<dialog id="wc-cart-pdf-modal" class="wc-cart-pdf-modal" role="dialog" aria-labelledby="dialogTitle" aria-describedby="dialogDesc">
<div class="wc-cart-pdf-modal-content">
<button class="wc-cart-pdf-modal-close" role="button" aria-label="Close">×</button>
<p id="dialogTitle"><?php esc_html_e( 'Please enter your email address to receive your cart as a PDF.', 'wc-cart-pdf' ); ?></p>
<div id="wc-cart-pdf-capture-form-errors"></div>
<form id="wc-cart-pdf-capture-form" class="wc-cart-pdf-capture-form" method="post" action="<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'cart-pdf' => '1' ), wc_get_cart_url() ), 'cart-pdf' ) ); ?>">
<div><input type="email" name="billing_email" id="billing_email" placeholder="<?php esc_html_e( 'Email', 'wc-cart-pdf' ); ?>" value="<?php echo esc_attr( $customer->get_billing_email() ); ?>" required aria-required="true"></div>
<div><input type="text" name="billing_first_name" id="billing_first_name" placeholder="<?php esc_html_e( 'Name', 'wc-cart-pdf' ); ?>" value="<?php echo esc_attr( $customer->get_billing_first_name() ); ?>" required aria-required="true" /></div>
<div>
<label for="email_copy">
<input type="checkbox" name="email_copy" id="email_copy" value="1" <?php checked( apply_filters( 'wc_cart_pdf_modal_email_copy_default', true ), true ); ?>>
<?php esc_html_e( 'Send a copy of the PDF via email.', 'wc-cart-pdf' ); ?>
</label>
</div>
<div><button type="submit" class="button wp-element-button"><?php esc_html_e( 'Submit', 'wc-cart-pdf' ); ?></button></div>
</form>
</div>
</dialog>Forum: Plugins
In reply to: [Cart PDF for WooCommerce] Image not show the pdf@adamgabor Nice! I believe this answer is related to the issue you were having.
You should be able to remove previous code added to the wp-config.php file and child theme functions.php file and just keep that newest snippet that worked.
Forum: Plugins
In reply to: [Cart PDF for WooCommerce] Image not show the pdfCould you try adding the following snippet to your child theme functions.php file?
/**
* Replace image URLs with local paths in the cart PDF.
*
* @param string $content The cart PDF content.
* @return string
*/
add_filter( 'wc_cart_pdf_content', function( $content ) {
$wp_upload_dir = wp_upload_dir();
$content = str_replace( $wp_upload_dir['baseurl'], $wp_upload_dir['basedir'], $content );
return $content;
} );Forum: Plugins
In reply to: [Simple Tabs Block] Bug: Attributes Randomly Get Removed@revxx14 Version 2.0.0 was released which should fix this issue. I would like to warn however if you have any custom CSS applied to the tabs, to test the plugin update on a staging environment before upgrading on production
Forum: Plugins
In reply to: [Simple Tabs Block] Bug: Attributes Randomly Get Removed@revxx14 Thanks for bringing this to my attention. The tabs plugin uses the block
clientIdas a unique identifier, it seems when other blocks outside of the tabs are modified/removed, it can change theclientIdof the tabs.I’m currently working on refactoring this plugin, and I will be sure this is fixed in the next update.
Forum: Plugins
In reply to: [Cart PDF for WooCommerce] Variation product image is real size on pdf@pahedomotica I’m not too familiar with WebP, and a quick Google does not bring up any issues with the PDF library this plugin issues. You could try disabling WebP conversion on PDFs?
add_action( 'wc_cart_pdf_before_process', function() { add_filter( 'webpc_supported_source_file', '__return_false' ); } );Forum: Plugins
In reply to: [Cart PDF for WooCommerce] Variation product image is real size on pdf@pahedomotica Are you using a plugin such as WebP Express to convert PNG to WebP?
Forum: Plugins
In reply to: [Cart PDF for WooCommerce] Korean fonts are broken in PDF creation@yesudream The latest update version 2.3.0 should fix Korean fonts being broken.
Forum: Plugins
In reply to: [Cart PDF for WooCommerce] Korean fonts are broken in PDF creationHi @yesudream
Could you try the following code snippet
add_filter( 'wc_cart_pdf_mpdf_args', function( $args ) { $args['mode'] = 'ja+aCJK'; return $args; } );