rptr
Forum Replies Created
-
Hello, thank you for your reply. Now it works. For other people: be careful at line 2. It should looks like this:
$csv_file_path = 'https://xyz.com/path/to/your/file.csv'
- This reply was modified 11 months, 2 weeks ago by rptr.
Forum: Plugins
In reply to: [LiteSpeed Cache] Show the page only when the whole page is loadedIt works now! Thank you for your help. Have a nice day ??
Hello @realmag777, thank you for your reply. I am tried to add this function to my child themes functions.php file but with no changes. Can you check it please?
function update_product_slugs_from_csv() { $csv_file_path = ABSPATH . 'https://foxym.sk/wp-content/uploads/2024/03/ro-slug.csv'; $file_handle = fopen($csv_file_path, 'r'); if ($file_handle !== FALSE) { global $wpdb; fgetcsv($file_handle); while (($data = fgetcsv($file_handle, 1000, ",")) !== FALSE) { $product_id = intval($data[0]); $new_slug = sanitize_title($data[1]); $slug_exists = $wpdb->get_var($wpdb->prepare("SELECT post_name FROM {$wpdb->posts} WHERE post_name = %s AND ID != %d", $new_slug, $product_id)); if (!$slug_exists) { $wpdb->update( $wpdb->posts, ['post_name' => $new_slug], ['ID' => $product_id] ); echo "Slug for product ID $product_id updated to $new_slug.\n"; } else { echo "Slug $new_slug for product ID $product_id is not unique and was not updated.\n"; } } fclose($file_handle); } else { echo "Failed to open the CSV file.\n"; } }
Forum: Plugins
In reply to: [LiteSpeed Cache] Show the page only when the whole page is loadedHello, report number QFMNCTUH
Hello, thank you for your reply.
This is log from spam bot with admin rights: https://pastebin.com/wCsA3FqR
This is log from classic spam bot: https://pastebin.com/6QJZ52te
- This reply was modified 12 months ago by rptr.
Forum: Plugins
In reply to: [WooCommerce] Cant change default payment methodHi @ckadenge, thank you for your reply. I am tried it but it didnt solve my problem. Do you have any other idea?
Forum: Plugins
In reply to: [LiteSpeed Cache] First load of page looks badThanks for the advice on speeding up the site, but I didn’t get an answer to my question. Is it possible to set LiteSpeed to display the page only after the CSS is fully loaded?
Thank you very much for you help. Problem is solved.
Forum: Reviews
In reply to: [CTX Feed – WooCommerce Product Feed Manager] Annoying messageMessage at top of page about review. There was choices something like – add review, I already did, I dont want add review, close notice. I click many times all choices but it dont close. I need to click dismiss and then it is hide for few days but it will again show later. I did it many times for last months.
Ja som to vyrie?il ?al?ím pluginom. Funguje pekne aj s Kybernautom. ?koda, ?e Kybernaut nemá túto funkciu zabudovanú v sebe. Bolo by to super. Link na plugin: https://platobnebrany.sk/produkt/ic-dph-kontrola-vies/
3. Dlhé odosielanie objednávky sp?sobovalo dvojité overovanie DI? – cez Kybernaut a aj WooCommerce EU VAT ID Check.
Hello, I am sending you export of my settings:
https://easyupload.io/hj9i6w
I have from the begining turned off DNS Prefetch here: “LiteSpeed Cache / Page Optimization / DNS Prefetch Control”. Do you have any other idea?
Thank you very much for your response. How can I re-configure theme to only send such sources that are only needed? I need to change something in LiteSpeed settings or?
Forum: Plugins
In reply to: [LiteSpeed Cache] Disable cache on login pageThank you for you reply. I am solved it another way. I am cleared list from “LiteSpeed Cache / Cache / Cache / Force Cache URIs”