Lukáš Bachleda - LavaDESIGN
Forum Replies Created
-
Mate, this is absolutely what I was looking for! Thanks a million.
I am afraid of renumerating the existing orders. The paygate, the invoice system etc. I am afraid, something will be wrong.
I can do the backup and try to renumerate at night…
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Fatal error after updateHey guys. So I have downloaded the 5.6 version of Complianz to my PC, upload it to FTP, replace the 7.0 version files. Then I rename the Complianz folder back to normal, everything went ok. Then I was able to upgrade the Complianz to 7.0.1 with standard manner. Dashboard->upgrades. The version 7.0.1 was automatically offered. Thank you, everything works fine now.
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Fatal error after updateHi @jarnovos standardly yes, but I don’t know, why Complianz is self-reactivated, why change the name of folder back to normal 🙁
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Fatal error after updateThank you for a really quick help! However I don’t know, how to upgrade the complianz plugin. When I rename the folder in ftp back to “complianz-gdpr”, it is automatically activated and throw fatal error. So I am unable to upgrade the plugin with standard process (dashboard->upgrades). Thank you
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Proof of premiumHi mate, that’s absolutely what I need! Thank you
Hello, thanks for reply. However, meanwhile I have solved this issue with a help of AI. This is code, that works for me:
// custom discounts by user role function custom_role_based_price( $price, $product ) { $user = wp_get_current_user(); $user_role = $user->roles[0]; // Získání role prvního přiřazeného uživateli $apply_to_sale_price = false; // True, pokud se sleva aplikuje na slevovou cenu, False pro původní cenu // Kontrola, zda uživatel má specifickou roli if ( $user_role === 'voc2' ) { // Nahraďte 'role_slug' za slug požadované role if ( $apply_to_sale_price && $product->is_on_sale() ) { $price = $product->get_sale_price() * 0.65; // Sleva na slevovou cenu (10% sleva) } else { $price = $product->get_regular_price() * 0.65; // Sleva na původní cenu (10% sleva) } } if ( $user_role === 'voc1' ) { // Nahraďte 'role_slug' za slug požadované role if ( $apply_to_sale_price && $product->is_on_sale() ) { $price = $product->get_sale_price() * 0.75; // Sleva na slevovou cenu (10% sleva) } else { $price = $product->get_regular_price() * 0.75; // Sleva na původní cenu (10% sleva) } } return $price; } add_filter( 'woocommerce_product_get_price', 'custom_role_based_price', 10, 2 );My custom roles is named “voc1” and “voc2”.
Forum: Plugins
In reply to: [WooCommerce] Woo app doesn’t take all ordersHello, thanks for reply.
Here’re order from 13th Dec .in our shop: https://snipboard.io/pfWMG9.jpg
However in statistics, there are 2 orders only: https://snipboard.io/RHhZUN.jpg
I can’t find the “Get system report” – doesn’t see something like this in woocommerce->status
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] Filtering and ordering by ACFLol, I’ve got it. Thats a real rubber duck debugging 🙂
All I need to do is to add those two lines of codes 😀$query->set('orderby', 'datum_zaciatku'); // zoradíme podľa dátumu začiatku $query->set('order', 'ASC');Hello, I am sorry for late reply. This plugin is some extension to existing plugin?
Will it break our own pdf template? Thank youSure, you have absolutely catch a moment, while the site was down, according to my colleague error 😀 Sorry, plz, try it now
Hello. We are using the WP Bakery page builder and WPML for translations. There are two languages – Slovak and Czech. And also mutlicurrency: €->SK and CZK (česká koruna)->CZ.
Link to shop: http://www.esteri.sk and http://www.esteri.cz – please, check the SK version first.
There is your carousel, based on latest products, but I would say, products are selected randomly… ?
So you want see the problem everytime you open the page.
Here’s the screenshot:
https://snipboard.io/4DFytQ.jpg
The third product links to the correct SK URL of product, but the title of product is Czech (We have no symbol like ě and ů in slovak language)Forum: Plugins
In reply to: [Packeta] Packeta ruší ComgateĎakujem – dočasné riešenie z Comgate – nechať vypnuté všetky možnosti doručenia, tým zabezpečíme, že sa bude comgate zobrazovať vždy a všade
Forum: Plugins
In reply to: [Packeta] Zadanie colnej deklarácie?Ďakujem za odpoveď. O akom časovom horizonte sa cca bavíme, kedy môže človek očakávať novú verziu pluginu aj s danou funkcionalitou? Ďakujem
Forum: Plugins
In reply to: [Packeta] Packeta sa nespráva ako bežný shipping?Zdravím, super. Ja som si už ten filter spravil. Problém bol v priorite na danom hooku, trebalo nastaviť vyššiu + trošku prerobiť kód. V konečnom dôsledku mám toto a funguje
add_filter('woocommerce_package_rates', 'shipping_based_on_country_subtotal_and_free_available', 9999999999, 2); function shipping_based_on_country_subtotal_and_free_available($rates, $package) { $condition = false; foreach (WC()->cart->get_cart() as $cart_item) { $product_id = $cart_item['product_id']; if (has_term( 30, 'product_tag', $product_id)) { $condition = true; } } // Loop through shipping rates for current shipping package foreach ($rates as $rate_key => $rate) { if ($condition) { $targeted_rate_id = array( 'packetery_carrier_zpointcz', 'packetery_carrier_106', 'packetery_carrier_zpointsk' ); if(in_array($rate_key,$targeted_rate_id)) { unset($rates[$rate_key]); } } } return $rates; }