evaldash
Forum Replies Created
-
Update: I noticed that when an order gets deleted, the data doesn’t dissapear either. I modified the code a bit, here’s the updated version:
// Anonymize additional fields added by the plugin "Woocommerce checkout manager" when order gets anonymized add_action('woocommerce_privacy_remove_order_personal_data', 'anonymize_additional_data'); function anonymize_additional_data($order){ $order_id = $order->get_id(); if (get_post_meta( $order_id, '_billing_wooccm9', true ) == "Yes"){ update_post_meta( $order_id, "_billing_wooccm9", '(i?trinta)'); update_post_meta( $order_id, "_billing_wooccm10", '(i?trinta)'); update_post_meta( $order_id, "_billing_wooccm11", '(i?trinta)'); update_post_meta( $order_id, "_billing_wooccm12", '(i?trinta)' ); update_post_meta( $order_id, "_billing_wooccm13", '(i?trinta)'); } } // Delete additional fields added by the plugin "Woocommerce checkout manager" when order gets deleted add_action('woocommerce_delete_order', 'delete_additional_data'); function delete_additional_data($order){ $order_id = $order->get_id(); delete_post_meta( $order_id, "_billing_wooccm9"); delete_post_meta( $order_id, "_billing_wooccm10"); delete_post_meta( $order_id, "_billing_wooccm11"); delete_post_meta( $order_id, "_billing_wooccm12" ); delete_post_meta( $order_id, "_billing_wooccm13"); }
I managed to find a solution, here it is:
add_action('woocommerce_privacy_remove_order_personal_data', 'delete_additional_data'); function delete_additional_data($order){ $order_id = $order->get_id(); if (get_post_meta( $order_id, '_billing_wooccm9', true ) == "Yes"){ update_post_meta( $order_id, "_billing_wooccm9", '(i?trinta)'); update_post_meta( $order_id, "_billing_wooccm10", '(i?trinta)'); update_post_meta( $order_id, "_billing_wooccm11", '(i?trinta)'); update_post_meta( $order_id, "_billing_wooccm12", '(i?trinta)' ); update_post_meta( $order_id, "_billing_wooccm13", '(i?trinta)'); } }
It would be great if it were implemented into the plugin one day, since there are 90 000+ installations, and I’m sure that many people don’t know of this issue and are violating GDPR unknowingly.
Forum: Plugins
In reply to: [White Label CMS] Client can’t view Woocommerce statisticsThank you for the mention and quick support! ??
They changed the classes. I had to update mine too. Here’s my updated Paysera mobile CSS for reference, maybe you’ll find the cause why your CSS breaks:
/* Paysera mobile CSS */ #paysera_country{ display: none; } @media only screen and (max-width: 768px){ .paysera-payment-method-label{ display: inline-flex !important; align-items: center; text-align: left; } div.paysera-payments.grid span.paysera-text{ display: initial !important; } .paysera-payment-method{ min-width: 100%; } .paysera-image{ margin-left: auto; } ul.payment_methods li img{ margin: 0 0 0 0 !important; padding: 0 0 0 10px !important; } .payment{ min-width: 100%; border: none !important; padding-bottom: 0px !important; padding-top: 5px !important; margin-bottom: 0px !important; } }
It’s a bit annoying that they changed the CSS without any notice.
Forum: Plugins
In reply to: [White Label CMS] Client can’t view Woocommerce statisticsI found the bug. Once you disable the Woocommerce home menu, you can’t access Woocommerce analytics. It seems that this bug was introduced with the recent update, which addressed the Woocommerce Home hiding issue.
I can see that the recent update addressed this. Thank you! ??
Forum: Plugins
In reply to: [In Stock Mailer for WooCommerce] Is the plugin abandoned?–
Forum: Plugins
In reply to: [In Stock Mailer for WooCommerce] Is the plugin abandoned?Woocommerce order details get deleted automatically after a specified time period, in my case after a month. Every field gets changed to (deleted), so no extra unneeded data is kept, following GDPR. This doesn’t seem to work with fields added by this plugin, the details are kept (for example, I’m using this plugin to add fields relating to company data), which isn’t good.
Order anonymization can also be triggered by marking the order, and selecting “Remove personal data”.
Here’s an example of an anonymized order, the extra fields added by this plugin are kept: https://imgur.com/apjLXiX
- This reply was modified 3 years, 3 months ago by evaldash.
Here’s CSS that I use:
.select2-results img{ max-height: 40px; } .redNaoSubmitButton{ color: white !important; float: right; } .redNaoSubmitButton:hover{ background-color: #B22222 !important; } .repeaterAddButton{ float: left; } .popover{ display: none !important; } textarea.form-control.redNaoTextAreaInput{ background: white !important; border: none; resize: none; }
I managed to find a workaround. Rather than setting the options programatically, I exported the products with WP all export, with the fields “Label”, “Amount”, and “Image Url”. Then I imported the options within the Smart Forms plugin. I guess I’ll just update the options whenever I add a new product or remove an existing one, since there doesn’t seem to be an easy way to set the options programatically.
I also had a simmiliar issue. I wanted to change the state field into a select, but was unable to, it kept being overriden. When I asked about this in the support section of the plugin, I was told that it’s not possible to modify it, since it’s a core field. A bit dissapointed that it wasn’t even considered as a feature in a future update, and I’m considering switching to another plugin.
Forum: Plugins
In reply to: [Smart Forms - when you need more than just a contact form] How to Hide FieldHi, I believe you should be able to accomplish this by doing this:
Conditional logic -> Add conditional logic -> Show fields depending on condition -> Select the field -> Select any field and make the value equal to something that would never happen, such as a number field being zzzzzzz.
Hi, I found out how you can do it, just apply this CSS:
.redNaoFirstNameDiv{ padding-right: 5px; } .form-inline > .col-sm-3{ padding-right: 5px; }
I can’t guarantee that this won’t affect the other fields, though. Put this into the customiser, play arround with the values to make sure it only affects the ones you need it to.
- This reply was modified 3 years, 5 months ago by evaldash.
Atsigavo. Matyt ka?kas buvo negerai i? LP pus?s.