juanjobt
Forum Replies Created
-
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Suppport to Consent Mode for 7.0Hello again and thank you for your response. I’ve done exactly what you suggested without any results. Google Ads still doesn’t seem to indicate that it has active consent mode.
I’m not quite sure where the error lies. I believe I’ve done everything correctly, but it’s giving me trouble. Since I have the premium plugin, I’ve sent an email from https://complianz.io/support/, but they haven’t responded. I’ll try again.
Forum: Plugins
In reply to: [Order Splitter for WooCommerce] Prevent copying of meta_keys on clone/splitYes, I send you a screenshot of my general configuration. Maybe it will help you. I am on a test site, but the problem can be reproduced the same as on my main site.
https://paste.pics/1a60c6e1e2344576f6a1b5acd8c424ca
I don’t know exactly how those meta_keys are being assigned to the original order, the package “PDF Invoices & Packing Slips” does it internally. If the original order already had an invoice generated, the cloned order will have the same invoice as the original. For this reason, being able to control which meta_keys are duplicated.
********
Hi @richiewatson. Thanks for the attention.Forum: Plugins
In reply to: [WooCommerce Redsys Gateway Light] Obligatoriedad de cumplir con SCAGracias por tu pronta respuesta
Una duda más al respecto ?Sabes cual será la mínima versión requerida de WordPress y PHP para la actualización del plugin?
Gracias de nuevo.
Hi, i am testing with this code in my functions.php. It seems to work well. But I want the author to check it and confirm if it is correct.
function update_order_prices_on_admin_ajax( $item_id, $item, $order ){ foreach ( $order->get_items() as $order_item_id => $order_item_data ) { if ( $order_item_id == $item_id ) { $newRegularPrice = false; $rolePrices = $order_item_data->get_product()->get_meta('_role_based_price' ); $userRoles = $order->get_user()->roles; if(in_array('administrator', $userRoles)){ if (isset($rolePrices['administrator']['regular_price'])){ $newRegularPrice = $rolePrices['administrator']['regular_price']; } }elseif(in_array('editor', $userRoles)){ if (isset($rolePrices['editor']['regular_price'])){ $newRegularPrice = $rolePrices['editor']['regular_price']; } } if($newRegularPrice){ $order_item_data->set_subtotal($newRegularPrice); $order_item_data->set_total($newRegularPrice*$order_item_data->get_quantity()); $order_item_data->calculate_taxes(); $order_item_data->apply_changes(); $order_item_data->save(); } } } // Runs this after making a change to $order_item_data $order->calculate_totals(); $order->apply_changes(); $order->save(); } add_action( 'woocommerce_ajax_add_order_item_meta', 'update_order_prices_on_admin_ajax', 99, 3 );
Thanks
Forum: Plugins
In reply to: [Role Based Price For WooCommerce] Bug with price cacheHello, it also happens to me.
In my case I use the product importer to update the prices based on role. And I have to go product by product clearing the cache. Is there a way to clear all product cache?
Thanks
Forum: Plugins
In reply to: [Plugin Organizer] Conflict with Contact form 7Hi, I have a similar problem, but with a response of “500 (Internal Server Error)”
POST https://www.enuk.es/wp-json/contact-form-7/v1/contact-forms/2061/feedback 500 (Internal Server Error) send @ jquery.js?ver=1.12.4:4 ajax @ jquery.js?ver=1.12.4:4 wpcf7.submit @ scripts.js?ver=5.0.1:344 (anonymous) @ scripts.js?ver=5.0.1:53 dispatch @ jquery.js?ver=1.12.4:3 r.handle @ jquery.js?ver=1.12.4:3
Page test: https://www.enuk.es/test
I have not understood very well how you have solved it. You could explain to me in more detail the process to fix it. Thank you very much.