1. It will be possible to move the checkbox in future versions of the plugin.
2. To make the text normal you can use CSS, but you will need a designer for this.
Hi Shadi,
1. Do you have an idea about the time scope of the version which will include this possibility?
2. I’m familiar with CSS, I just can’t find the CSS selector. I tried following but it didn’t help:
.form-row.pr-dhl-email-notification {
font-weight: normal !important;
}
Could you help me with the correct CSS code? I know how to implement the rest π
Thanks!
Best
-
This reply was modified 6 years, 1 month ago by
gmwp1111.
Hi Shadi,
Could you have a look on my last question?
Thanks!
Best
Can you send me the link to your site?
Hi Shadi,
the function is not implemented on my live site, but only on my staging site.
I was able to solve the problem 2 now with this CSS:
.pr-dhl-email-notification .checkbox{
font-weight: 100 !important;
}
What is still open though is my question on the time scope of the feature to move the checkbox in front of the product table.
Thanks!
-
This reply was modified 6 years ago by
gmwp1111.
Hi,
I managed to move the checkbox by replacing
add_action( 'woocommerce_review_order_before_submit', array( $this, 'add_email_notification_checkbox' ), 10 );
to
add_action( 'woocommerce_checkout_before_terms_and_conditions', array( $this, add_email_notification_checkbox' ), 10 );
in class-pr-dhl-front-end-paket.php.
Since this will be overwritten with an update: is there a possibility to do this via a PHP snippet?
Help is appreciated.
Thanks!
I will add a filter in the coming versions that will allow you to modify where the checkbox is located.
The filter has been added as promised, thanks!
With this filter this snippet moves the checkbox in front of the overview table:
add_filter( 'pr_shipping_dhl_email_notification_position', 'custom_dhl_checkbox_position' );
function custom_dhl_checkbox_position( $position ) {
return 'woocommerce_checkout_before_terms_and_conditions';
}
-
This reply was modified 5 years, 10 months ago by
gmwp1111.
Great, I am glad it worked.
Let me know if there are other questions.