Home Forums WoodMart support forum enter my links in the “Popular requests” field

enter my links in the “Popular requests” field

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

    loralora
    Participant

    Hello

    Can you please tell me if I can insert my links into the “Popular requests” field myself?

    I use free relevancy, and as far as I understand it only works for products. (shows products)

    Now if I want to add the SS22 collection to “Popular requests” – I do it like in the photo. SS22 appears, but the link to is this:


    SS22

    Can I enter my links in the “Popular requests” field?

    eg:
    SS22

    ?

    #413988

    loralora
    Participant

    Sorry, I formatted my question incorrectly:
    Now if I want to add the SS22 collection to “Popular requests” – I do it like in the photo. SS22 appears, but the link to is this:

    <a href="https://site.com/?s=SS22&post_type=product">
    SS22</a>

    Can I enter my links in the “Popular requests” field?

    eg: `<a href=”https://site.com/collection/ss22″&gt;
    SS22</a>`

    Maybe there is a way to turn off the find function for the labels that are in the field “Popular requests”?

    #414108

    Hello,

    Please provide the page URL and screen of what block you want to link. I will double-check and try to suggest a solution.

    If you have any questions please feel free to contact us.

    Best Regards

    #414146

    loralora
    Participant

    my problem is that i want to display some of my tags (archive page) and attributes (archive page or Search) . But free Relevanssi do not look for product attributes (Search), as far as I understand.

    Therefore, I ask you for advice – how can I manually add links to some popular archives attributes&

    Also, I’d like to be able to add links for products that are filtered out.
    eg: I am using Beroket’s Ajax filtering plugin.
    With it, I can create a filter using attributes:

    Category: Sweater
    Size: XXXL
    Style: Christmas

    And have a stable url link to this combination.

    And it would be great to be able to insert this url into Popular Search: “Christmas Sweaters Plus Size.”

    That’s what I’m talking about. Thank you for your help
    http://pappel.store/

    #414242

    Hello,

    You can create custom filters and insert on any page you wish. Find our documentation tutorial about this here: https://xtemos.com/docs-topic/how-to-create-filters-form/

    If you have any questions please feel free to contact us.

    Best Regards

    #414367

    loralora
    Participant

    Elisas thanks for the information, but please tell me if there is a solution to my problem?

    thanks for your support

    #414369

    loralora
    Participant

    Can you suggest a hook that will allow me to add my custom code (my links) to the field after the search queries? Please see photo

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

    Hello,

    Unfortunately, there is no hook. You can copy the functions woodmart_search_form to the functions.php of the child theme and edit it as per your needs.

    If you have any questions please feel free to contact us.

    Best Regards

    #414801

    loralora
    Participant

    Could you give me an example, or send me more details about the use use of functions woodmart_search_form?

    I can add my own links if I have a certain function (and from woocommerce hooks). But I didn’t quite understand what I need to do and what exactly to change and in which file?

    #414802

    loralora
    Participant

    As far as I understand I can paste my code in /wp-content/themes/woodmart/inc/classes/search.php (in child theme)

    Could you tell me where exactly to insert the code? What is the field number?

    #414935

    Hello,

    You need to take this file: inc/modules/search.php

    You can find functions woodmart_search_form on line 64 then copy to functions.php, you will find the div with this class: wd-search-requests, then insert there your links https://prnt.sc/A8mBoFpYaueX

    If you have any questions please feel free to contact us.

    Best Regards

    #415887

    loralora
    Participant

    did I understand correctly, I have to copy the code from line 63 to line 396?

    #416021

    Hello,

    You need to take lines 63-288

    If you have any questions please feel free to contact us.

    Best Regards

    #416212

    loralora
    Participant

    Thanks my issue is resolved.

    #416263

    You are welcome! We are here to help.

    Wish you a wonderful day!

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

The topic ‘enter my links in the “Popular requests” field’ is closed to new replies.