Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • marlene4us

    (@marlene4us)

    “powerrs”, na listagem de sua transação lá no Bcash, clique para ver os detalhes da transação, abrirá uma janela pop-up com os detalhes e lá em baixo na tela tem “Retorno automático dos Dados”, verifique qual o “Status Enviado” se bate com o que aparece na sua loja ( primeiro faça esta verificação ).

    Thread Starter marlene4us

    (@marlene4us)

    Funcionou, Obrigada!

    Thread Starter marlene4us

    (@marlene4us)

    O campo CEP do simulador de frete da página do produto é:

    <input type="text" size="9" class="input-text text" placeholder="00000-000" id="zipcode" name="zipcode" />

    Encontrei um código na internet para criar a máscara do CEP:

    <script src="jquery.js" type="text/javascript"></script>
    <script src="jquery.maskedinput.js" type="text/javascript"></script>
    
    $(document).ready(function(){
        $("#zipcode").mask("99999-999");
    });

    Como faço para que este código funcione no woocommerce? Poderia me ajudar?

    Thread Starter marlene4us

    (@marlene4us)

    Perfeito! Seu código produziu o efeito desejado. Obrigada.

    Thread Starter marlene4us

    (@marlene4us)

    Poderia me ajudar e indicar os arquivos do seu plugin onde eu poderia editar e incluir a máscara no campo CEP?

    Thread Starter marlene4us

    (@marlene4us)

    I saw other questions about Mystile theme being answered in this forum, so I did. Thank you for guidance.

    Thread Starter marlene4us

    (@marlene4us)

    resolved, my contribution:

    <?php
    global $wpdb;
    
    $pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1;
    $limit = 50;
    $offset = ( $pagenum - 1 ) * $limit;
    
    $results = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix."mytable ORDER BY date_added DESC LIMIT $offset, $limit" );
    $total = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."mytable" );
    
    $num_of_pages = ceil( $total / $limit );
    $page_links = paginate_links( array(
    	'base' => add_query_arg( 'pagenum', '%#%' ),
    	'format' => '',
    	'prev_text' => __( '«', 'aag' ),
    	'next_text' => __( '»', 'aag' ),
    	'total' => $num_of_pages,
    	'current' => $pagenum
    ) );
    
    ?>
    <div class="wrap">
    
    	<table class="widefat">
    		<thead>
    			<th>#</th>
    			<th>User</th>
    			<th>IP</th>
    		</thead>
    		<tbody>
    		<?php
    		$id = $offset + 1;
    		foreach ( $results as $result ) : ?>
    			<tr>
    				<td style="padding:5px;"><?php echo $id; ?></td>
    				<td style="padding:5px;"><?php echo $result->user; ?></td>
    				<td style="padding:5px;"><?php echo $result->ip; ?></td>
    			</tr>
    		<?php endforeach;?>
    		</tbody>
    		<tfoot>
    			<tr>
    				<th>#</th>
    				<th>User</th>
    				<th>IP</th>
    			</tr>
    			<tr>
    				<th colspan='3'><?php if ( $page_links ) { echo $page_links; }?></th>
    			</tr>
    		</tfoot>
    	</table>
      </form>
    </div>
    <?php
    }
    ?>
    Thread Starter marlene4us

    (@marlene4us)

    resolved, my contribution:

    <?php
    global $wpdb;
    
    $pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1;
    $limit = 50;
    $offset = ( $pagenum - 1 ) * $limit;
    
    $results = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix."mytable ORDER BY date_added DESC LIMIT $offset, $limit" );
    $total = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."mytable" );
    
    $num_of_pages = ceil( $total / $limit );
    $page_links = paginate_links( array(
    	'base' => add_query_arg( 'pagenum', '%#%' ),
    	'format' => '',
    	'prev_text' => __( '«', 'aag' ),
    	'next_text' => __( '»', 'aag' ),
    	'total' => $num_of_pages,
    	'current' => $pagenum
    ) );
    
    ?>
    <div class="wrap">
    
    	<table class="widefat">
    		<thead>
    			<th>#</th>
    			<th>User</th>
    			<th>IP</th>
    		</thead>
    		<tbody>
    		<?php
    		$id = $offset + 1;
    		foreach ( $results as $result ) : ?>
    			<tr>
    				<td style="padding:5px;"><?php echo $id; ?></td>
    				<td style="padding:5px;"><?php echo $result->user; ?></td>
    				<td style="padding:5px;"><?php echo $result->ip; ?></td>
    			</tr>
    		<?php endforeach;?>
    		</tbody>
    		<tfoot>
    			<tr>
    				<th>#</th>
    				<th>User</th>
    				<th>IP</th>
    			</tr>
    			<tr>
    				<th colspan='3'><?php if ( $page_links ) { echo $page_links; }?></th>
    			</tr>
    		</tfoot>
    	</table>
      </form>
    </div>
    <?php
    }
    ?>
    Thread Starter marlene4us

    (@marlene4us)

    Thank you for your clear and helpful explanation.

    I created a function:

    function iso8601_without_dashes($iso) {
    	$year = substr($iso, 0, 4);
    	$month = substr($iso, 5, 2);
    	$day = substr($iso, 8, 2);
    	$hour = substr($iso, 11, 2);
    	$minute = substr($iso, 14, 2);
    	$second = substr($iso, 17, 2);
    	$timezone = substr($iso, 19);
    	return  $year.$month.$day.'T'.$hour.':'.$minute.':'.$second.$timezone;
    }
    Thread Starter marlene4us

    (@marlene4us)

    I do not understand why removing the dashes in the date. Why the original form of date does not work? ( Could you indicate the documentation for me to study? ).

    Thread Starter marlene4us

    (@marlene4us)

    I tested it and it worked … thank you!
    Why? How does it work?
    Is there any function for this??

Viewing 11 replies - 1 through 11 (of 11 total)