Home Forums Themes Support Claue Digits Plugin Compatibility

Viewing 8 reply threads
  • Author
    Posts
    • #37695

      Hi Harry,

      Hope you are fine. 🙂

      Harry, I am using Digits plugin for user’s sign up and log in.
      Digits: https://codecanyon.net/item/digits-wordpress-mobile-number-signup-and-login/19801105

      This plugin has 3 options for using:
      1. theme’s default
      2. custom page
      3. modal/popup

      their demo is here: https://digits.unitedover.com/demo/

      I want to use modal/popup option.

      for this I have two options:
      1. add their shortcode instead of the my-account bottom in the header
      2. add their class to the existing button.

      Documentation: https://help.unitedover.com/digits/kb/how-to-use-modal-login-form/

      When I add their shortcode, I will have their string, not icon.
      I want to use their defined class to keep the my-accoint icon.

      How can I have this?

      Kind regards

      Rahim Vaziri
      CEO & Founder at Look.ir

    • #37696
      This reply has been marked as private.

      Rahim Vaziri
      CEO & Founder at Look.ir

    • #37699

      Hi Rahim,

      Please add below code to claue-child > functions.php

      if ( ! function_exists( 'jas_claue_wc_my_account' ) ) {
      	function jas_claue_wc_my_account() {
      		$output = '';
      
      		if ( cs_get_option( 'header-my-account-icon' ) ) {
      			$output .= '<div class="jas-my-account hidden-xs ts__05 pr">';
      				$output .= '<a class="cb chp db digits-login-modal" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '"><i class="pe-7s-user"></i></a>';
      				$output .= '<ul class="pa tc">';
      					if ( is_user_logged_in() ) {
      						$output .= '<li><a class="db cg chp" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '">' . esc_html__( 'Dashboard', 'claue' ) . '</a></li>';
      						$output .= '<li><a class="db cg chp" href="' . esc_url( home_url( '/orders-tracking/' ) ) . '">' . esc_html__( 'Order Tracking', 'claue' ) . '</a></li>';
      						$output .= '<li><a class="db cg chp" href="' . esc_url( wp_logout_url() ) . '">' . esc_html__( 'Logout', 'claue' ) . '</a></li>';
      					} else {
      						$output .= '<li><a class="db cg chp" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '">' . esc_html__( 'Login / Register', 'claue' ) . '</a></li>';
      					}
      				$output .= '</ul>';
      			$output .= '</div>';
      		}
      
      		return apply_filters( 'jas_claue_wc_my_account', $output );
      	}
      }

      and change href of user icon to login popup.

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #37700

      Hi Harry,

      I didn’t get the last sentence: and change href of user icon to login popup.

      I added the function and cleared the cache.

      When I press the icon, the popup appears and is working as it should. but, when I press the login/register under the icon, it redirects to the login page of the Digits which was working before adding function. you check it yourself: Look.ir

      It comes from the setting of the plugin which redirects to the Digits login page.
      I need to have the same class for this string under the icon I think.

      Harry, The style of the theme, is adding a border to the fields of Digits: https://prnt.sc/tmhv0o

      Is there any solution to hide it on the popup?

      Regards

       

      Rahim Vaziri
      CEO & Founder at Look.ir

    • #37701
      This reply has been marked as private.

      Rahim Vaziri
      CEO & Founder at Look.ir

    • #37705

      Hi Rahim,

      The border add by plugin author.

      1. Please add below code to change color

      .digits_login_form .dig_ma-box span.bgdark {
      	background-color: #ccc;
      }

      2. Please ask plugin author for support

      I see you can by plugin so please renew your support at https://themeforest.net/item/claue-clean-minimal-woocommerce-theme/18929281

      Thanks

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #37706
      This reply has been marked as private.

      Rahim Vaziri
      CEO & Founder at Look.ir

    • #37707

      Hi Harry,

      Can you please help me on adding the digits-login-modal on this button: https://prnt.sc/tmltr8

      I really tried on my own, but I was not successful to solve it. 🙁

      If you help me with this, I am done with Digits and it will be finished.

      Thank you so much.

      Regards.

      Rahim Vaziri
      CEO & Founder at Look.ir

    • #37708
      This reply has been marked as private.

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 8 reply threads

You must be logged in to reply to this topic.