Price notation and height of navigation field

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Price notation and height of navigation field

This topic contains 35 replies, has 2 voices, and was last updated by  Ernest Marcinko 3 years, 6 months ago.

Viewing 15 posts - 1 through 15 (of 36 total)
  • Author
    Posts
  • #4204

    promusicstore
    Participant

    Prices are shown as USD xx.xx we need them to be xx,xx

    We like to change the height of the Isotopic Navigation Field to the exact same height of the input field, is this possible?

    #4205

    promusicstore
    Participant

    See attachment

    Attachments:
    You must be logged in to view attached files.
    #4207

    Ernest Marcinko
    Keymaster

    Hi!

    Since the price is parsed from the database (I assume as a custom field), the best option in this case is to find and replace the dot “.” with a comma “,” that's between 2 digits.
    To do that, you will need to create a filter function. Based on this knowledge base article: https://wp-dreams.com/knowledge-base/numbering-the-results/

    I would add the following code to my themes functions.php file:

    add_filter( 'asp_results', 'asp_fix_comma_results', 1, 1 );
     
    function asp_fix_comma_results( $results ) {
      foreach ($results as $k=>$v) {
        $results[$k]->title  = preg_replace('/(\d)(\.)(\d)/', '$1,$3', $results[$k]->title);
      }
      return $results;
    }
    

    If the price is in the title field, this should solve that.

    As for the second request: Yes it is possible, by adding a few lines of custom CSS code. You can add custom css code on the search options Theme Options -> Custom CSS panel:

    .isotopic nav.asp_navigation ul li span {
      line-height: 28px !important;
    }
    
    .isotopic nav.asp_navigation ul li {
      height: 28px !important;
    }
    
    .isotopic nav.asp_navigation a.asp_prev, 
    .isotopic nav.asp_navigation a.asp_next {
      height: 28px !important;
    }
    

    As you can see, this will change the navigation height to 28 pixels, so don't forget to change the number accordingly in all 3 cases to match the search height.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #4221

    promusicstore
    Participant

    We are excluding a single woo product category, but inside the results there are still products from this categoy. How to fix this?

    #4222

    Ernest Marcinko
    Keymaster

    Are you excluding it on the advanced options panel?

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #4223

    promusicstore
    Participant

    Yes, via advanced options panel

    #4226

    Ernest Marcinko
    Keymaster

    Interesting. I might have found a bug, but I can't confirm yet. Could you please open up the wp-content/plugins/ajax-search-pro/includes/search_content.class.php file and go to line 302, where you should see this code:

    CONCAT('–', GROUP_CONCAT(DISTINCT $wpdb->terms.term_id SEPARATOR '—-'), '–') as ttid,

    Replace that line with this:

    (SELECT DISTINCT CONCAT('–', GROUP_CONCAT( $wpdb->term_taxonomy.term_id SEPARATOR '—-' ), '–') FROM $wpdb->term_taxonomy
                    LEFT JOIN $wpdb->term_relationships ON $wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id
                    WHERE ($wpdb->term_relationships.object_id = $wpdb->posts.ID) ) as ttid,

    That will possibly solve this issue, at least I hope so.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #4229

    promusicstore
    Participant

    Just tested that. The products from excluded category still show up in the results.

    #4230

    Ernest Marcinko
    Keymaster

    That's very weird. Is the category/term logic set to “AND” on the General options -> Category/Term logic panel? https://i.imgur.com/IPdFBKK.png If it's set to OR, then if the product is in multiple categories, then it will show up unless all the container categories are excluded.

    If that option is set to AND, then this must be an unknown issue yet. I'm unable to replicate it on my test servers unfortunately.

    Can you provide temporary admin and ftp access to your site? I would like to do some debugging on the search code to find out why that product still shows up.

    Could you also tell me what to look for, and which product should not show up?

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #4231

    promusicstore
    Participant

    keyword logic = AND
    category/term logic = AND
    excluded category = UIT ASSORTIMENT

    We want to send you further (log-in) details by direct e-mail.
    Please send us your e-mail adress to [email protected]

    #4243

    promusicstore
    Participant

    Did you send an e-mail to us with your e-mail address?

    #4245

    Ernest Marcinko
    Keymaster

    Not yet, I just got to your ticket. You can use the email address you get the notifications for replies. It's forwarded to my mailbox. You can also edit your first post to add the details, or upload a txt file. Attachements are private in threads, only visible for the ticket owner and administrator.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #4246

    promusicstore
    Participant

    See attachment.

    Attachments:
    You must be logged in to view attached files.
    #4249

    promusicstore
    Participant

    search target:
    fender (= brand)
    combo (= type of guitar amplifier)

    results:
    Not only fender but all kind of brands.
    Not only combo's but different products like in this example guitars.

    Regarding behaviour settings, what is wrong in our settings?

    Attachments:
    You must be logged in to view attached files.
    #4267

    Ernest Marcinko
    Keymaster

    I suppose that some of the fields might contain both the “fender” and the “combo” keywords (or parts of it), I'm suspecting the description.

    I will however check your configuration just in case. I've uploaded my current IP address in text document, but it changes everytime if my connection stops, unfortunately it's not static.

    Attachments:
    You must be logged in to view attached files.
    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 15 posts - 1 through 15 (of 36 total)

You must be logged in to reply to this topic.