Home / Forums / WoodMart support forum / enter my links in the “Popular requests” field
Home › Forums › WoodMart support forum › enter my links in the “Popular requests” field
enter my links in the “Popular requests” field
- This topic has 14 replies, 2 voices, and was last updated 3 years, 8 months ago by
Elise Noromit.
-
AuthorPosts
-
October 15, 2022 at 12:02 am #413904
loraloraParticipantHello
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:
Can I enter my links in the “Popular requests” field?
eg:
SS22?
October 15, 2022 at 1:11 pm #413988
loraloraParticipantSorry, 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″>
SS22</a>`Maybe there is a way to turn off the find function for the labels that are in the field “Popular requests”?
October 16, 2022 at 4:52 am #414108
Elise NoromitMemberHello,
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
October 16, 2022 at 2:47 pm #414146
loraloraParticipantmy 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: ChristmasAnd 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/October 17, 2022 at 5:50 am #414242
Elise NoromitMemberHello,
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
October 17, 2022 at 1:28 pm #414367
loraloraParticipantElisas thanks for the information, but please tell me if there is a solution to my problem?
thanks for your support
October 17, 2022 at 1:31 pm #414369
loraloraParticipantCan 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.October 18, 2022 at 6:27 pm #414796
Elise NoromitMemberHello,
Unfortunately, there is no hook. You can copy the functions
woodmart_search_formto 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
October 18, 2022 at 6:53 pm #414801
loraloraParticipantCould 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?
October 18, 2022 at 6:58 pm #414802
loraloraParticipantAs 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?
October 19, 2022 at 12:22 pm #414935
Elise NoromitMemberHello,
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
October 22, 2022 at 8:36 pm #415887
loraloraParticipantdid I understand correctly, I have to copy the code from line 63 to line 396?
October 24, 2022 at 6:50 am #416021
Elise NoromitMemberHello,
You need to take lines 63-288
If you have any questions please feel free to contact us.
Best Regards
October 24, 2022 at 6:51 pm #416212
loraloraParticipantThanks my issue is resolved.
October 25, 2022 at 3:24 am #416263
Elise NoromitMemberYou are welcome! We are here to help.
Wish you a wonderful day!
-
AuthorPosts
The topic ‘enter my links in the “Popular requests” field’ is closed to new replies.
- You must be logged in to create new topics. Login / Register