Title: alfaex's Replies | WordPress.org

---

# alfaex

  [  ](https://wordpress.org/support/users/alfaex/)

 *   [Profile](https://wordpress.org/support/users/alfaex/)
 *   [Topics Started](https://wordpress.org/support/users/alfaex/topics/)
 *   [Replies Created](https://wordpress.org/support/users/alfaex/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/alfaex/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/alfaex/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/alfaex/engagements/)
 *   [Favorites](https://wordpress.org/support/users/alfaex/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] Help with object_types => options-page](https://wordpress.org/support/topic/help-with-object_types-options-page/)
 *  Thread Starter [alfaex](https://wordpress.org/support/users/alfaex/)
 * (@alfaex)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/help-with-object_types-options-page/#post-9157329)
 * Thanks for the fast response.
 * I’m using these examples, but I want to know how to use those specific options,
   if exists on the code, it’s to be used, i guess.
 * Why to use a whole new class if with 5 lines of code i can do the same?
 * At least is what i’m thinking.
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] disable ajax update_order_review](https://wordpress.org/support/topic/disable-ajax-update_order_review/)
 *  Thread Starter [alfaex](https://wordpress.org/support/users/alfaex/)
 * (@alfaex)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/disable-ajax-update_order_review/#post-7625042)
 * if you want to remove a field or make not required read this.
 * [Customizing checkout fields](https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/)
 * you can
 * `unset($fields['order']['order_comments']);`
 * or
 * `$address_fields['address_1']['required'] = false;`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] disable ajax update_order_review](https://wordpress.org/support/topic/disable-ajax-update_order_review/)
 *  Thread Starter [alfaex](https://wordpress.org/support/users/alfaex/)
 * (@alfaex)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/disable-ajax-update_order_review/#post-7624864)
 * thanks [@icaleb](https://wordpress.org/support/users/icaleb/)
 * I didn’t know about these .js files, so instead of remove the entire script, 
   i went to see when the event is created, and i found this.
 *     ```
       $( document.body ).bind( 'update_checkout', this.update_checkout );
       ```
   
 * After reading a little, i found that I will not be able to unbind because of 
   the namespace, so i hooked up on the `on` event and since i can’t prevent default
   i stoped the propagation of the event.
 * and these solved my problem.
 *     ```
       jQuery(document.body).on('update_checkout', function(e){
       	//e.preventDefault();
       	//e.stopPropagation();
       	e.stopImmediatePropagation();
       	//console.log(e);
       });
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cielo WooCommerce - Solução Webservice] Requisição inválida](https://wordpress.org/support/topic/requisicao-invalida/)
 *  [alfaex](https://wordpress.org/support/users/alfaex/)
 * (@alfaex)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/requisicao-invalida/page/3/#post-6471209)
 * como havia comentado, eu acho que o problema realmente esta na cielo.
 * como o claudio manda a url codificada e com cdata, alguma coisa do servidor deles
   esta zuado, e respondendo com o caractere a mais.
 * estava reunindo informações mas n deu tempo de terminar.
 * mas olhei nos logs do apache e a cielo bate no meu servidor, com a url já com
   o & a m p ;
 * vou terminar de reunir informações e entrar em contato com a cielo também.
 * vlw pela resposta ae.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cielo WooCommerce - Solução Webservice] Requisição inválida](https://wordpress.org/support/topic/requisicao-invalida/)
 *  [alfaex](https://wordpress.org/support/users/alfaex/)
 * (@alfaex)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/requisicao-invalida/page/2/#post-6471198)
 * Olá.
 * Ainda estou com problema mesmo com essa ultima atualização, e já pesquisei até
   meus antepassados no google e não achei nada.
 * Deve ser algo bem besta mas não estou conseguindo achar, provavelmente não estou
   pesquisando os itens certos.
 * Verifiquei o XML gerado para pelo plugin e ele gera esse link
    `<url-retorno>
   <![CDATA[http%3A%2F%2Fmeudominio.com.br%2Fwc-api%2FWC_Cielo_Debit_Gateway%2F%
   3Fkey%3Dwc_order_xxxxxxxxx%26order%3Dyyyyyy]]></url-retorno>`
 * Mas pelo jeito algo acontece quando a cielo retorna o link pro meu servidor, 
   pois se no xml eu disse para eles responderem para a url do xml acima, eles tem
   que responder para.
 *  [http://meudominio.com.br/wc-api/WC_Cielo_Debit_Gateway/?key=wc_order_xxxxxxxxx&order=yyyyyy](http://meudominio.com.br/wc-api/WC_Cielo_Debit_Gateway/?key=wc_order_xxxxxxxxx&order=yyyyyy)
 * mas no navegador aparece esse link com o **& a m p ;**
 *  [http://meudominio.com.br/wc-api/WC_Cielo_Debit_Gateway/?key=wc_order_xxxxxxxxx](http://meudominio.com.br/wc-api/WC_Cielo_Debit_Gateway/?key=wc_order_xxxxxxxxx)**&
   a m p ;**order=yyyyyy
 * Se é a cielo que esta respondendo o link com esse **& a m p ;** besta, tem como
   tratar isso no wp.
 * Mas ainda não consegui achar o hook ou função que recebe esse link e trata o 
   problema.
 * Se é problema no plugin ou no servidor eu não consegui identificar ainda, só 
   sei que ainda estou aprovando todos os pedidos manualmente, pois na cielo captura
   o valor, mas no plugin consta como pagamento pendente.
 * Uma sugestão legal para o plugin seria, ao lado do TID no pedido, ter um botãozinho
   pra validar ele junto com a cielo.
 * Caso alguem tenha alguma luz, deixa um salve ae.
 * vlw
 * ps: digitei & a m p ; pq o forum interpreta como &
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cielo WooCommerce - Solução Webservice] ERRO NO RETORNO](https://wordpress.org/support/topic/erro-no-retorno/)
 *  [alfaex](https://wordpress.org/support/users/alfaex/)
 * (@alfaex)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/erro-no-retorno/#post-6770637)
 * mesmo problema aqui.
    Em teste da tudo ok, em produção é feito a captura junto
   com a cielo, no woocommerce pedido fica como pendente.
 * Consulto o tid junto com a cielo pra ter certeza e a mesma realmente foi capturada,
   ae preciso realizar o resto dos processos manualmente.
 * Att.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cielo WooCommerce - Solução Webservice] template dos cartões](https://wordpress.org/support/topic/template-37/)
 *  Thread Starter [alfaex](https://wordpress.org/support/users/alfaex/)
 * (@alfaex)
 * [10 years ago](https://wordpress.org/support/topic/template-37/#post-6739603)
 * eu copiei para a pasta do meu template, mudei varias coisas, mas não é replicado
   no plug-in
 * Minha estrutura no momento é.
    Na minha pasta de template eu tenho uma pasta 
   chamada woocommerce, assim posso modificar tudo o que preciso sem me preocupar
   com os updates. dentro dessa pasta copiei as pastas ‘credit-card’ e ‘debit-card’
   mas nada acontece.
 * Obrigado pela atenção.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP WooCommerce Mailchimp] State Field (Select)](https://wordpress.org/support/topic/state-field-select/)
 *  [alfaex](https://wordpress.org/support/users/alfaex/)
 * (@alfaex)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/state-field-select/#post-6807027)
 * what kind of type i use on mailchimp? Text, number, drop down?
    default form 
   of woocommerce does some juggle with the form. it use some fancy js with div,
   but the select is there, hidden.
 *     ```
       <select name="billing_state" id="billing_state" class="state_select " placeholder="" tabindex="-1" title="Estado" style="display: none;">
       <option value="wh">wherever</option>
       <option value="wn">whenever</option>
       ...
       </select>
       ```
   
 * may i ask why not work the ‘billing_state’ using ‘drop down’ ?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cielo WooCommerce - Solução Webservice] template dos cartões](https://wordpress.org/support/topic/template-37/)
 *  Thread Starter [alfaex](https://wordpress.org/support/users/alfaex/)
 * (@alfaex)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/template-37/#post-6739506)
 * alguém?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] wc_get_order on function.php gerenate error](https://wordpress.org/support/topic/wc_get_order-on-functionphp-gerenate-error/)
 *  Thread Starter [alfaex](https://wordpress.org/support/users/alfaex/)
 * (@alfaex)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wc_get_order-on-functionphp-gerenate-error/#post-6746067)
 * i get the error when call wc_get_order(), not even run the get_items.
 * i realize that if i use wc_get_order inside the “woocommerce_payment_complete”
   works.
    something like that.
 *     ```
       add_action("woocommerce_payment_complete", "woodle_func",10);
       function woodle_func($orderId){
           $order = wc_get_order($orderId);
       }
       ```
   
 *     ```
       but i will use in some custom action.
       add_action("my_custom_action", "my_custom_func");
       function "my_custom_func($orderId){
           $order = wc_get_order($orderId);
       }
       ```
   
 * i get the error on the `$order = wc_get_order($orderId);`
 * thanks for the reply

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