xbhy
Forum Replies Created
-
Thank you very much, changing the shortcode fixed the issue. (Not sure why I had the one for the commercial version on the page before.) Thanks again, Petr
Forum: Themes and Templates
In reply to: [Illustratr] Figure in entry-content not displayedUPDATE: After adding an image gallery under the video, the video displays correctly. So I guess the problem occurs only when the video block is alone on the page. The issue is solved for me now, but I think it still may be worth investigating the cause.
Forum: Plugins
In reply to: [Gutenberg] Can’t manage to set 80 % width of Group of ParagraphsThank you very much, @jordesign
In the meantime, my client said that my design looks unprofessional, so we are probably switching to a commercial theme. However, I will definitely try this in the future, there is a lot ahead of me, learning to do the things the new way.
Hello @anastas10s,
thank you for your reply. The reason it works now is that I switched to a different Mini Cart block in the meantime. For some reason there are two distinct Mini Cart blocks available when WooCommerce is used in conjunction with Gutenberg (which is a little confusing). The first one has a purple rhombus icon (and a Czech translation), that’s the one that didn’t work for me (not sure if it’s even intended to be used in the header). The second one has a black cart icon (and no Czech translation) and that’s the one I’m using now. My customer likes the side bar floating cart design, so I am going to stick to it now.
Thank you again
Petr
Update 1: I created the file functions.php in the theme’s directory with the code from the above links:
<?php function enqueue_wc_cart_fragments() { wp_enqueue_script( 'wc-cart-fragments' ); } add_action( 'wp_enqueue_scripts', 'enqueue_wc_cart_fragments' );
This didn’t change anything, so I suspect that I am facing a different problem with Gutenberg than Elementor users are with their widget.
Update 2: The products in the mini cart are visible in the editor.
Update 3: As you can see, both divs with
classesdata-block-name (what is that?) woocommerce/filled-mini-cart-contents-block and woocommerce/empty-mini-cart-contents-block are in loaded, but the divs within the first ones are empty.I solved it with jQuery:
jQuery("#content-form-b1e59dc").find("button").addClass("submit-button-event");
Hello, thank you very much!
It works perfectly now.
Have a nice day.
PetrUpdate: I just tried temporarily disabling the child theme and enabling the standard Divi theme, and the error persists, so it’s not in the child theme, I think. Just to be clear: the shortcode does display past auctions, too, right? So I don’t need an active auction to test if it works?
Hello and thank you.
I followed the exact steps as in the video, plus I checked that my account is an administrator account and it is. The child theme is very simple:
functions.php:
<?php function my_theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); /** * @snippet Galio - Display "Sold Out" on Loop Pages - WooCommerce * @how-to Get CustomizeWoo.com FREE * @author Rodolfo Melogli * @testedwith WooCommerce 4.6 * @donate $9 https://businessbloomer.com/bloomer-armada/ */ add_action( 'woocommerce_before_shop_loop_item_title', 'bbloomer_display_sold_out_loop_woocommerce' ); function bbloomer_display_sold_out_loop_woocommerce() { global $product; if ( ! $product->is_in_stock() ) { echo '<span class="soldout">Sold Out</span>'; } }
style.css
/* Theme Name: Divi Child - galio.cz Theme URI: https://www.elegantthemes.com/gallery/divi/ Description: Divi Child Theme Author: Elegant Themes Author URI: https://www.elegantthemes.com Template: Divi Version: 1.0.0 */ /* =Theme customization starts here ------------------------------------------------------- */ /* CSS */ .soldout { padding: 3px 8px; text-align: center; background: #222; color: white; font-weight: bold; position: absolute; top: 6px; right: 6px; font-size: 12px; }
Could the problem be with the function in functions.php? Thank you.
Hello Nitesh,
some screenshots:
the WooCommerce System Report is below:### WordPress Environment ###WordPress address (URL): https://bonerepublic.euSite address (URL): https://bonerepublic.euWC Version: 7.2.2REST API Version: ?</img> 7.2.2WC Blocks Version: ?</img> 8.9.2Action Scheduler Version: ?</img> 3.5.2Log Directory Writable: ?</img>WP Version: 6.1.1WP Multisite: –WP Memory Limit: 256 MBWP Debug Mode: –WP Cron: ?</img>Language: en_USExternal object cache: –### Server Environment ###Server Info: ApachePHP Version: 7.4.30PHP Post Max Size: 256 MBPHP Time Limit: 30PHP Max Input Vars: 5000cURL Version: 7.85.0OpenSSL/1.1.1qSUHOSIN Installed: –MySQL Version: 5.5.5-10.5.18-MariaDB-logMax Upload Size: 256 MBDefault Timezone is UTC: ?</img>fsockopen/cURL: ?</img>SoapClient: ?</img>DOMDocument: ?</img>GZip: ?</img>Multibyte String: ?</img>Remote Post: ?</img>Remote Get: ?</img>### Database ###WC Database Version: 7.2.2WC Database Prefix: wp_Total Database Size: 61.86MBDatabase Data Size: 51.98MBDatabase Index Size: 9.88MBwp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDBwp_woocommerce_order_items: Data: 0.06MB + Index: 0.02MB + Engine InnoDBwp_woocommerce_order_itemmeta: Data: 0.30MB + Index: 0.25MB + Engine InnoDBwp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDBwp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_actionscheduler_actions: Data: 0.14MB + Index: 0.16MB + Engine InnoDBwp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_actionscheduler_logs: Data: 0.13MB + Index: 0.09MB + Engine InnoDBwp_aelia_dismissed_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_aelia_exchange_rates_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_comments: Data: 0.13MB + Index: 0.09MB + Engine InnoDBwp_duplicator_packages: Data: 0.05MB + Index: 0.02MB + Engine InnoDBwp_ee_products_sync_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_ee_product_sync_call: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_ee_product_sync_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_gla_budget_recommendations: Data: 0.20MB + Index: 0.11MB + Engine InnoDBwp_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_gla_shipping_rates: Data: 0.02MB + Index: 0.05MB + Engine InnoDBwp_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_gopay_inline_log: Data: 2.52MB + Index: 0.00MB + Engine InnoDBwp_iqblock_logging: Data: 0.09MB + Index: 0.05MB + Engine InnoDBwp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_automations: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_mailpoet_automation_runs: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_automation_run_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_automation_triggers: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_mailpoet_automation_versions: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_newsletters: Data: 0.06MB + Index: 0.03MB + Engine InnoDBwp_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDBwp_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDBwp_mailpoet_scheduled_tasks: Data: 0.14MB + Index: 0.11MB + Engine InnoDBwp_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDBwp_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDBwp_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDBwp_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDBwp_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_mailpoet_subscribers: Data: 0.02MB + Index: 0.13MB + Engine InnoDBwp_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_mailpoet_subscriber_tag: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_mailpoet_tags: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_options: Data: 8.23MB + Index: 2.20MB + Engine InnoDBwp_postmeta: Data: 12.52MB + Index: 2.02MB + Engine InnoDBwp_posts: Data: 1.52MB + Index: 0.44MB + Engine InnoDBwp_redirection_404: Data: 0.06MB + Index: 0.05MB + Engine InnoDBwp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDBwp_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDBwp_simple_auction_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_sm_advanced_search_temp: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_term_relationships: Data: 0.06MB + Index: 0.05MB + Engine InnoDBwp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_usermeta: Data: 0.27MB + Index: 0.14MB + Engine InnoDBwp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDBwp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_wcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDBwp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDBwp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_wc_order_product_lookup: Data: 0.06MB + Index: 0.06MB + Engine InnoDBwp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDBwp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_wc_product_meta_lookup: Data: 0.13MB + Index: 0.20MB + Engine InnoDBwp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDBwp_wfconfig: Data: 1.31MB + Index: 0.00MB + Engine InnoDBwp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_wffilemods: Data: 10.52MB + Index: 0.00MB + Engine InnoDBwp_wfhits: Data: 0.16MB + Index: 0.05MB + Engine InnoDBwp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDBwp_wfknownfilelist: Data: 5.52MB + Index: 0.00MB + Engine InnoDBwp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_wflogins: Data: 0.16MB + Index: 0.06MB + Engine InnoDBwp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_wfnotifications: Data: 0.05MB + Index: 0.00MB + Engine InnoDBwp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDBwp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDBwp_wfstatus: Data: 0.13MB + Index: 0.11MB + Engine InnoDBwp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_woo_ua_auction_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_wpf_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDBwp_wpf_meta_keys: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_wpf_meta_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_wpf_meta_values_bk: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_yoast_indexable: Data: 2.52MB + Index: 0.89MB + Engine InnoDBwp_yoast_indexable_hierarchy: Data: 0.05MB + Index: 0.05MB + Engine InnoDBwp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDBwp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDBwp_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB### Post Type Counts ###attachment: 2937cookielawinfo: 6custom_css: 2customize_changeset: 6et_body_layout: 4et_pb_layout: 11et_template: 10et_theme_builder: 1mailpoet_page: 1nav_menu_item: 5page: 14post: 3product: 331revision: 23shop_order: 111wp_global_styles: 1### Security ###Secure connection (HTTPS): ?</img>Hide errors from visitors: ?</img>### Active Plugins (20) ###Classic Editor: by WordPress Contributors – 1.6.2CookieYes | GDPR Cookie Consent: by CookieYes – 3.0.8Custom Shipping Methods for WooCommerce: by Imaginate Solutions – 1.8.0Duplicate Page: by mndpsingh287 – 4.5Duplicator: by Snap Creek – 1.5.1iQ Block Country: by Pascal – 1.2.19Jetpack: by Automattic – 11.6MailPoet: by MailPoet – 4.3.1Maintenance: by WebFactory Ltd – 4.07Redirection: by John Godley – 5.3.6Smart Manager - WooCommerce Advanced Bulk Edit, Inventory Management & more...: by StoreApps – 7.4.0Ultimate Auction For WooCommerce: by Nitesh Singh – 2.2.8WP Sheet Editor - WooCommerce Products: by WP Sheet Editor – 1.8.0Woo GoPay Inline: by wordpress-moduly.cz – 1.7.0PDF Invoices & Packing Slips for WooCommerce: by WP Overnight – 3.2.6WooCommerce: by Automattic – 7.2.2Wordfence Security: by Wordfence – 7.8.2Yoast SEO: by Team Yoast – 19.13WP-Optimize - Clean, Compress, Cache: by David AndersonRuhani RabinTeam Updraft – 3.2.10YITH WooCommerce EU VAT, OSS & IOSS Premium: by YITH – 2.16.1### Inactive Plugins (1) ###WP Fastest Cache: by Emre Vona – 1.0.9### Settings ###API Enabled: –Force SSL: –Currency: EUR (€)Currency Position: right_spaceThousand Separator: Decimal Separator: ,Number of Decimals: 2Taxonomies: Product Types: auction (auction)external (external)grouped (grouped)simple (simple)variable (variable)Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)exclude-from-search (exclude-from-search)featured (featured)outofstock (outofstock)rated-1 (rated-1)rated-2 (rated-2)rated-3 (rated-3)rated-4 (rated-4)rated-5 (rated-5)Connected to WooCommerce.com: –Enforce Approved Product Download Directories: –Order datastore: WC_Order_Data_Store_CPT### WC Pages ###Shop base: #49 - /shop/Cart: ?</img> Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block.Checkout: ?</img> Page does not contain the [woocommerce_checkout] shortcode or the woocommerce/checkout block.My account: #52 - /my-account/Terms and conditions: ?</img> Page not set### Theme ###Name: Divi Child - galio.czVersion: 1.0.0Author URL: https://www.elegantthemes.comChild Theme: ?</img>Parent Theme Name: DiviParent Theme Version: 4.19.4Parent Theme Author URL: https://www.elegantthemes.comWooCommerce Support: ?</img>### Templates ###Overrides: –### Admin ###Enabled Features: activity-panelsanalyticscouponscustomer-effort-score-tracksexperimental-products-taskexperimental-import-products-taskexperimental-fashion-sample-productsshipping-smart-defaultsshipping-setting-tourhomescreenmarketingmultichannel-marketingmobile-app-bannernavigationonboardingonboarding-tasksremote-inbox-notificationsremote-free-extensionspayment-gateway-suggestionsshipping-label-bannersubscriptionsstore-alertstransient-noticeswoo-mobile-welcomewc-pay-promotionwc-pay-welcome-pageDisabled Features: minified-jsnew-product-management-experiencesettingsDaily Cron: ?</img> Next scheduled: 2023-01-06 20:18:51 +01:00Options: ?</img>Notes: 94Onboarding: completed### Action Scheduler ###Complete: 319Oldest: 2022-12-06 20:00:24 +0100Newest: 2023-01-06 12:03:15 +0100Failed: 8Oldest: 2022-11-01 21:16:15 +0100Newest: 2022-12-22 07:50:07 +0100Pending: 2Oldest: 2023-01-06 14:12:01 +0100Newest: 2023-01-07 12:03:15 +0100### Status report information ###Generated at: 2023-01-06 14:12:12 +01:00
Forum: Plugins
In reply to: [WordPress Books Gallery] Image when no book cover is availableHello @mhmrajib,
wow, thank you very much! Your customer support is excellent.Forum: Plugins
In reply to: [Open Currency Converter] Shortcode output formatting in GutenbergOkay, I got it:) instead of using the shortcode block, I simply use the paragraph block. This allows to format the shortcode output in a WYSIWYG way.
Update: I just found a plugin that does what I need:
https://www.ads-software.com/plugins/artiss-currency-converter/Would be possible to combine this with TranslatePress? Such as having the Open Currency Converter shortcodes as part of the translations in the Translation Editor? That would be absolutely great.
Petr
Forum: Plugins
In reply to: [Calculated Fields Form] redirectToURL doesn’t seem to workThank you, it works great.
Forum: Plugins
In reply to: [Calculated Fields Form] redirectToURL doesn’t seem to workThank you, it works great. However, I had to replace your abstraction with key/value pairs with my original string-based approach. Because with the key/value pairs, the library selection didn’t work for some reason, the result was for all the libraries every time.
Now I have it like this:
window.open(generateURL('https://svobodnaknihovna.cz/cgi-bin/koha/opac-search.pl?idx'+fieldname2+'&q='+fieldname1+'&limit'+fieldname3+'&weight_search=1'), '_blank');
and it works perfectly.