back end display product in front end not

Home Forums Product Support Forums Ajax Search Pro for WordPress Support back end display product in front end not

This topic contains 4 replies, has 2 voices, and was last updated by stavroch stavroch 5 years, 3 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12478
    stavroch
    stavroch
    Participant

    I search for 040-7095 in back end and display the product with id 4829 but in front end doesn’t display that product.

    Why?

    #12491
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    I don’t see any results for that on the back-end: https://i.imgur.com/R8ukrq3.png

    Best,
    Ernest Marcinko

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


    #12494
    stavroch
    stavroch
    Participant

    040-7201 is the product sku
    040-7205 is the variation of the above product sku.

    I follow the instructions that you describe there https://wp-dreams.com/forums/topic/variation-search/

    can you check please the settings if it is as you describe?

    Also about the indexing do I have to make it daily or the indexing run one time?

    #12496
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    There is no variation with this exact SKU: “040-7205”, there is only: “01-040-7205-0”, which is a non-exact match for a relevant product.
    In fact, none of them will match, because you have the “Exact matches” enabled: https://i.imgur.com/fNEHbBh.png
    This means that the regular engine is used always, as it is explained below the option.

    If you turn off the Exact matches, the index table engine will be used, but it still will not match, because as I explained earlier, middle word matching is not possible with that engine.

    My suggested solution
    1. Try this configuration: https://i.imgur.com/pb2UMhX.png
    (turning off exact matches, choosing AND keyword logic)

    2. ..and also, use this code as well, in the functions.php file in your theme (copy from line 3):

    This will remove the dashes from input, and change them to space characters. For example, “040-7205” will become “040 7205”, and the search will:
    – Check for both “040” and “7205” for matches, and return only that match both keywords
    – Will return the original product, because the SKU is indexed for the variations as well.

    I hope this helps!

    Best,
    Ernest Marcinko

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


    #12504
    stavroch
    stavroch
    Participant

    it works
    thank you!!!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.