Forums › Forums › Search & Filter Pro › Add existing parameters of query to shortcode
Tagged: feature request
- This topic has 16 replies, 2 voices, and was last updated 9 years, 9 months ago by
Ross.
-
Ross Moderator(Private) October 5, 2015 at 9:23 am #26490
Hey Sergey
You can modify the query on the fly by modifying the parameters that are passed to Search & Filter queries – its not so well documented but mentioned here with example in the upgrade notes:
I’m hoping this will do what you need ๐
Thanks
Anonymous(Private) October 5, 2015 at 1:25 pm #26518But I want to use one Search & Filter form for different collections ๐
Collection = all posts with same category or same tag.
Algorythm of WP-Shop.
In post-category I put shortcode of “vitrine”. This shortcode puts all posts with price and same category (or tag).
I can modify template of “vitrine” and put shortcode of Search & Filter there.
But same template of “vitrine” works on different collections ๐ So I need to attach
cat={$this->category}
ortag={$this->tag}
from template, not statically predefined filter.Ross Moderator(Private) October 6, 2015 at 6:47 pm #26651Hey Sergey
I think we’re getting confused.
So, what you would like to do (as an example) is pass the category through to S&F, in the shortcode or something similar.
Well, this is not yet possible, but you can use the shortcode like you mention above, and then use the filter
sf_edit_query_args
in the link above to limit the tag/category to whatever you like.So in this way it is dynamic and according the cat/tag you supply via some custom php code.
Does that make sense?
Thanks
Anonymous(Private) October 7, 2015 at 8:57 am #26679Sorry, I can’t go by this way, because I can’t pass category or tag into
sf_edit_query_args
๐Category isn’t fixed, it get from post with vitrine shortcode. So different vitrines have different categories, but shortcodes in the posts can be same!
Ross Moderator(Private) October 8, 2015 at 4:06 pm #26865I’m not sure I follow what you are trying to do then.
Are you trying to use the vitrine shortcode to display your results?
I’m not familiar with WP Shop.
Thanks
Ross Moderator(Private) October 13, 2015 at 12:17 pm #27194Hey Sergey
As I’m not familiar with that plugin, it makes understanding what you are trying to achieve very confusing – I have no idea what the vitrine shortcode is or truly how it works.
If I find some time I’ll take a look to get a better understanding but for now I would say it sounds like the two plugins can not be used in that way together.
Thanks
Anonymous(Private) October 17, 2015 at 7:32 am #27573Let’s try one time more to explain you the problem.
Vitrine shortcode is:
For sample, I have page http://vkplitka.ru/zerkalnaya-plitka/
Vitrine shortcode is
[vitrina zerk-plitka 3 420 99 99]
where
zerk-plitka
is category or tag of goods.Plugin checking, is it category, or tag, then render “vitrina” template. Plugin already have interface for intercepting this call and render file “vitrina.php” from theme folder instead of plugin folder.
So I trying to implement in template “vitrina.php” in theme instead of vitrine “by default” search form and search results, but ONLY which belongs to this vitrine.
Because all categories and tags rendered by ONE template vitrina.php, then I should somehow to put this argument to search shortcode FROM file vitrina.php.
So I see this can be done, if I can put additional “boundary conditions” in your search shortcode.Are you understand my requests now? Maybe you need additional clarifying?
Ross Moderator(Private) October 25, 2015 at 4:21 pm #28162Hi Sergey
The issue is I have no idea how that plugin works – and unfortunately from you explanations I’m still not following.
With only 1000 active users’ its unlikely I’ll be changing the code of this plugin to accommodate that – why not use a more popular shop plugin, that you know we support – such as WooCommerce or Easy Digital Downloads?
Purchasing does does not allow you to demand features that do not exist – it is your job to check what a plugin does before purchasing.
S&F does exactly what it says it does, what is advertised on the product page and in the online demos.
It may be possible to get setup with that plugin, but I generally only look into compatibility with 3rd party plugins if they are at least popular and can benefit many of our users.
In regards to a refund – please read our policy which you have agreed to when signing up:
If you have problems getting plugins to work, we will be happy to provide a full refund within 30 days of the original purchase. After 30 days, no refunds will be given. Before a refund will be granted, you must allow us to try and help solve any problem you have by opening a support ticket. NOTE: refunds will not be granted if you simply decide not to use the purchased products. We stand behind our products and will assist you in solving any problem you have, but we also expect you to adequately understand what you are purchasing and why.
We do not provide refunds for features that do not exist – if you want to check that the plugin works, then follow the steps here, I’m sure there will be no issues:
Thanks
-
AuthorPosts