negapo
Forum Replies Created
-
Forum: Plugins
In reply to: [Moloni] Opção Ignorar Encomendas com valor zero na Integração automáticaOlá Ricardo, suponho que um exemplo prático aplicável ao seu problema fosse uma melhor resposta por isso aqui vai:
// Esta Linha de código faz com que a função 'filtrar_documentos' seja chamada antes do Moloni criar um documento e permite-nos, por exemplo, cancelar a sua criação add_filter( 'moloni_before_insert_document' , 'filtrar_documentos' ); // Esta função vê o valor total do documento e se for menor ou igual 0€ cancela a sua criação. function filtrar_documentos( $documento ) { if ($documento->documentTotal < 0.01) { $documento->stopProcess = true; } return $documento; }Este código deve ser inserido no ficheiro “functions.php” que pode encontrar quando edita o seu tema em “Editor de Ficheiros de Tema”.
Eu não testei o código e tenho ideia que ele neste momento aplica-se a todo o tipo de documentos, sejam guias de transportes, faturas, faturas-recibo, etc. Provavelmente só quererá aplicar a algum tipo de documentos mas talvez a equipa do Moloni possa ajudar.
Great, thanks for the detailed answer.
Or using the product ID dor example.
Thanks Pavel, great answer and idea. Any way i can only purge the cache for individual products (or product URL). Does the function take any arguments?
ThanksSame here, users cannot log in with 2FA after the update. Nothing fancy on my setup, a single site of WP + Woo hosted on siteground with the SG Optimize and Security Plug-in.
Do i have to reset the 2FA cods on everybody?Thanks a lot.
I’m sorry, i barked at the wrong tree.
It’s obviously from that other dreadful plug-in from Facebook, so bad that you cannot call it competition.I saw the progress your plug-in made in terms of database cleanup of meta fields, yuor only using one meta key in the free version and that amazing (_woosea_exclude_product). I just have one small problem, why autoload in WP Options the following values:
woosea_allow_update
woosea_count_activation
woosea_extra_attributes
woosea_facebook_pixel_id
woosea_first_activation
woosea_review_interactionI know its not a lot of stuff, but every plug-in developer thinks the same way and we get our databases filled with this type of problems. Do you really need to autoload this data? Thanks
Hi @ihereira
Thanks for the reply.
I think i didn’t explain myself fully, we want to only accept cards that have 3D Authentication. The reason is this:“Payments that have been successfully authenticated using 3D Secure are covered by a liability shift. Should a 3D Secure payment be disputed as fraudulent by the cardholder, the liability shifts from you to the card issuer.”
We want to reject payments made by cards without 3D Secure.
There is a card_not_enrolled in the payment_method_details.card.three_d_secure.result_reason in the charge object, dont know if this is the right way but surely there must be a way to reject non 3D Secure cards.
Thanks for any help.
Thanks, will open a ticket on git.
Forum: Plugins
In reply to: [Security Optimizer - The All-In-One Protection Plugin] 2FA – Add User RoleGreat, thanks @stoyangeorgiev.
Im having the same problem:
What’s the default message in WooCommerce for this use case? It seems that there is no message coming from Woo on the form validation and thats why the browser kicks in.
I tried to override it with oninvalid=”Error message” but it didnt work, any help?
Thanks
Forum: Plugins
In reply to: [Security Optimizer - The All-In-One Protection Plugin] 2FA – Add User RoleLine 27 at sg-security/core/Sg_2fa/Sg_2fa.php defines the user roles, you can add a user role in there and then toggle off and on the 2FA options at the plug-in options.
It’s not advisable to change core plug-in files, it would be great to create a filter so we can change it (add and remove).
Forum: Plugins
In reply to: [Moloni] Icon na listagem das encomendas no WoocommerceEste código adiciona a coluna:
add_filter('manage_edit-shop_order_columns', 'add_order_custom_column_header', 20); function add_order_custom_column_header($columns) { $new_columns = array(); foreach ( $columns as $column_name => $column_info ) { $new_columns[ $column_name ] = $column_info; if ( 'order_status' === $column_name ) { $new_columns['MoloniInvoice'] = __( 'Fatura', 'my-textdomain' ); } } return $new_columns; }Este preenche com o link nas encomendas que estão concluidas:
add_action( 'manage_shop_order_posts_custom_column', 'add_order_costum_column_content' ); function add_order_costum_column_content( $column ) { global $post; $order = wc_get_order($post->ID); $order_status = $order->get_status(); // Status in array if ( in_array( $order_status, array( 'completed', 'outro_estado' ) ) ) { if ($column === 'MoloniInvoice') { $value = get_post_meta( $order->id, 'LinkMoloni', true ); echo '<a href="' . $value . '" target="_blank">Fatura</a>'; } } }Só há um problema, estou a assumir que o plug-in da moloni inseria o link nos meta tags da encomenda com o nome “LinkMoloni”. O plug-in da moloni infelizmente não insere muita informação nos meta tags o que dificulta muito fazer este tipo de melhorias ou mesmo auditar a emissão de faturas.
Just tried to test disabling our cache plug-in (SG Optimizer) and bypassing cache at CloudFlare and then manually refreshing the product feed but it still doesn’t show new products. Could it be anything else? Thanks
Sorry, didn’t saw your reply before i posted, i knew the caching would come up, we have excluded from the cache the feed folder but i also cleared all caches just to see if the new products would be on the feed but they were not.
The “Private” to “Public” was just my guess but it may be something else.
If we duplicate the feed the new products always come up.