marlene4us
Forum Replies Created
-
Forum: Plugins
In reply to: [Claudio Sanches - Bcash for WooCommerce] URL Retorno Bcash“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 ).
Forum: Plugins
In reply to: [Claudio Sanches - Bcash for WooCommerce] redirecionamento muito rápidoFuncionou, Obrigada!
Forum: Plugins
In reply to: [Claudio Sanches - Correios for WooCommerce] máscara no CEPO 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?
Perfeito! Seu código produziu o efeito desejado. Obrigada.
Forum: Plugins
In reply to: [Claudio Sanches - Correios for WooCommerce] máscara no CEPPoderia me ajudar e indicar os arquivos do seu plugin onde eu poderia editar e incluir a máscara no campo CEP?
I saw other questions about Mystile theme being answered in this forum, so I did. Thank you for guidance.
Forum: Plugins
In reply to: I have a query that returns a large list, how make the paging this it?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 } ?>Forum: Hacks
In reply to: I have a query that returns a large list, how make the paging this it?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 } ?>Forum: Plugins
In reply to: I am having issues with iso8601_to_datetime Function, help meThank 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; }Forum: Plugins
In reply to: I am having issues with iso8601_to_datetime Function, help meI 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? ).
Forum: Plugins
In reply to: I am having issues with iso8601_to_datetime Function, help meI tested it and it worked … thank you!
Why? How does it work?
Is there any function for this??