This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 3,211 through 3,225 (of 18,427 total)
  • Author
    Posts
  • in reply to: Multible lines and API data in search… #45926
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    I’m afraid that type of setup (mutliple search fields on single search) is not possible. You could however use taxonomy and custom field filters. The “Dropdown/select with search” filter type is very close to what you may want.

    in reply to: Big issu with the plugin because of live link #45925
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Finding Woocommerce product variations not working #45918
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Well, it is not the most secure, but it will do.

    Please make sure to have a full site back-up so you can revert back in case anything goes wrong during the file editing. Let me know if you have one and I will try via that plugin.

    in reply to: Finding Woocommerce product variations not working #45916
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you for the details!

    If the regular results page shows the variation and the WooCoomerce results page does not, then it is very likely that it still does not allow it or somewhere along the way the plugins conflict, that is also possible.

    I have tried to log-in with the details, but the username/password is not accepted, can you please check that?

    Can you also please add temporary FTP details? I will try to figure out where the product variation parameter goes missing via editing the code.

    in reply to: Filter and navigation #45915
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Run AjaxSeachPro On An Independent Server for App Access #45908
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I’m not a python coder myself, but I found this tutorial, which is exactly what you need. That seems to explain how to fetch data via python from a web service.

    in reply to: Formatting Multi Select and Search #45907
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Filter Search Results with ASP #45906
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    1. It depends on how or where this is setup exactly. If you are referencing the results page or an archive page here, then I suggest trying the results page live loading feature.

    2. I’m afraid it is not documented, but you can get them very easily via the developer tools on your browser. Just in case, here is a screenshot of how exactly it is constructed. The actual checkbox is not visible (because it is not possible to style), but there is an overlaying element, which is displayed based on the checkbox state:

    .asp_option_checkbox:after {
        opacity: 0;
    }

    and

    .asp_option_inner input[type=checkbox]:checked~div:after {
        opacity: 1;
    }
    in reply to: Big issu with the plugin because of live link #45905
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Big issu with the plugin because of live link #45902
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Big issu with the plugin because of live link #45895
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: WPML and Products are not displaying #45893
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Try to open the admin dashboard in “All languages”: https://i.imgur.com/hZT0s5K.png
    With that I think WPML should allow excluding categories from other languages as well.

    in reply to: 3 questions: author field, layout organization, and more! #45886
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I’m afraid that is not possible at the moment. This was however requested a few times, so I have added it to the issue tracker. Sooner or later we will figure out something for this. The main issue is that the results suggestions itself need to run a request to the back-end, and doing another one could lead to potential major performance issues on low-end servers, but I think I can resolve that too.

    in reply to: WPML and Products are not displaying #45885
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Sure – if you turn it on, then it will automatically filter items which do not belong to the current language. That will not affect the code itself, it will still convert the URLs if not the default site language is detected.

    in reply to: WPML and Products are not displaying #45883
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thanks!

    I think I have a solution for you. I have placed the following custom code to the functions.php file in the avada-child theme directory:

    add_filter( 'asp_results', 'asp_change_lang_on_wpml', 10, 4 );
    function asp_change_lang_on_wpml( $results, $search_id, $is_ajax, $args ) {
    	global $sitepress;
    	// Let us get the default site language if possible
    	if ( is_object($sitepress) && method_exists($sitepress, 'get_default_language') ) {
    		$site_lang_selected = $sitepress->get_default_language() == $args['_wpml_lang'];
    	}
    	$lang = $args['_wpml_lang'];
    	var_dump($site_lang_selected);
    	if ( !$site_lang_selected ) {
    		foreach ($results as $k=>&$r) {
    			if ( isset($r->post_type) && $r->post_type == $post_type ) {
    				//$r->link = str_replace("/product/", "/product/".$lang."/", $r->link);
    				$r->link = apply_filters('wpml_permalink', $r->link, $args['_wpml_lang'], true);
    			}
    		}
    	}
    
        return $results;
    }

    So right now when I test on the english, I only get english or the ones that should show on both, with english URL. For the german, I turned off the compatibility (search ID=2) and now shows everything, and the URLS are corrected via the code.

Viewing 15 posts - 3,211 through 3,225 (of 18,427 total)