Support » Plugin: DHL for WooCommerce » Move the notification checkbox

  • Resolved gmwp1111

    (@gmwp1111)


    Hi,

    I have activated the notification checkbox. How can I
    1) move the box in front of the overview table as shown on this screen shot: https://ibb.co/x1kvM6S ?
    2) Set the font-weight to normal instead of bold?

    Thanks!

    • This topic was modified 1 year, 7 months ago by gmwp1111.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Shadi Manna

    (@shadim)

    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.

    Thread Starter gmwp1111

    (@gmwp1111)

    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 1 year, 7 months ago by gmwp1111.
    Thread Starter gmwp1111

    (@gmwp1111)

    Hi Shadi,

    Could you have a look on my last question?
    Thanks!
    Best

    Plugin Author Shadi Manna

    (@shadim)

    Can you send me the link to your site?

    Thread Starter gmwp1111

    (@gmwp1111)

    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 1 year, 6 months ago by gmwp1111.
    Thread Starter gmwp1111

    (@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!

    Plugin Author Shadi Manna

    (@shadim)

    I will add a filter in the coming versions that will allow you to modify where the checkbox is located.

    Thread Starter gmwp1111

    (@gmwp1111)

    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 1 year, 4 months ago by gmwp1111.
    Plugin Author Shadi Manna

    (@shadim)

    Great, I am glad it worked.

    Let me know if there are other questions.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Move the notification checkbox’ is closed to new replies.