Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Art Project Group

    (@artprojectgroup)

    That’s generated by a javascript bug in your installation. Please review your debugger console.

    Kind regards.

    Thread Starter kumarangopi

    (@kumarangopi)

    Plugin Author Art Project Group

    (@artprojectgroup)

    Your installation has any problem with this javascript:

    <script type="text/javascript">
    jQuery( document ).ready( function( $ ) {
    	//Cambia los campos en función del proveedor de servicios SMS
    	$( '.servicio' ).on( 'change', function () { 
    		control( $( this ).val() ); 
    	} );
    	var control = function( capa ) {
    		if ( capa == '' ) {
    			capa = $( '.servicio option:selected' ).val();
    		}
    		var proveedores= new Array();
    		<?php 
    		foreach( $proveedores as $indice => $valor ) {
    			echo "proveedores['$indice'] = '$valor';" . PHP_EOL;
    		}
    		?>
    		
    		for ( var valor in proveedores ) {
        		if ( valor == capa ) {
    				$( '.' + capa ).show();
    			} else {
    				$( '.' + valor ).hide();
    			}
    		}
    	};
    	control( $( '.servicio' ).val() );
    
    	if ( typeof chosen !== 'undefined' && $.isFunction( chosen ) ) {
    		jQuery( "select.chosen_select" ).chosen();
    	}
    	
    	//Controla el campo de teléfono del formulario de envío
    	$( '.campo_envio' ).hide();
    	$( '.envio' ).on( 'change', function () { 
    		control_envio( '.envio' ); 
    	} );
    	var control_envio = function( capa ) {
    		if ( $( capa ).is(':checked') ){
    			$( '.campo_envio' ).show();
    		} else {
    			$( '.campo_envio' ).hide();
    		}
    	};
    	control_envio( '.envio' ); 
    	
    	//Controla el campo de correo electrónico del formulario de envío
    	$( '.campo_debug' ).hide();
    	$( '.debug' ).on( 'change', function () { 
    		control_debug( '.debug' ); 
    	} );
    	var control_debug = function( capa ) {
    		if ( $( capa ).is(':checked') ){
    			$( '.campo_debug' ).show();
    		} else {
    			$( '.campo_debug' ).hide();
    		}
    	};
    	control_debug( '.debug' ); 
    	
    <?php if ( class_exists( 'WC_SA' ) || function_exists( 'AppZab_woo_advance_order_status_init' ) || isset( $GLOBALS['advorder_lite_orderstatus'] ) ) : //Comprueba la existencia de los plugins de estado personalizado ?>	
    	$( '.estados_personalizados' ).on( 'change', function () { 
    		control_personalizados( $( this ).val() ); 
    	} );
    	var control_personalizados = function( capa ) {
    		var estados= new Array();
    		<?php 
    		foreach( $lista_de_estados as $valor ) {
    			echo "estados['$valor'] = '$valor';" . PHP_EOL; 
    		}
    		?>
    
    		for ( var valor in estados ) {
    			$( '.' + valor ).hide();
    			for ( var valor_capa in capa ) {
    				if ( valor == capa[valor_capa] ) {
    					$( '.' + valor ).show();
    				}
    			}
    		}
    	};
    
    	$( '.estados_personalizados' ).each( function( i, selected ) { 
    	  control_personalizados( $( selected ).val() );
    	} );
    <?php endif; ?>	
    } );
    </script> 

    Or your installation is generating any PHP warning/notice in the code or has any javascript error.

    Review this script on your source code and write it here, please.

    Kind regards.

    Hi,

    Yes you are right, we got the following console error during plugin installation “Uncaught Error: no XD object is available from this page”. And we are not clear about the script that you mentioned above. How can we fix this issue. Please provide solution as soon as possible.

    screen shared:
    console-error
    (or)
    error info

    Plugin Author Art Project Group

    (@artprojectgroup)

    That issue isn’t generated by our plugin, we don’t provide any kind of free support, sorry.

    Try to disable all plugins, but WooCommerce and WooCommerce – APG SMS Notifications, and search which one is generating that error.

    Kind regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Send SMS button not showing’ is closed to new replies.