Forums Forums Search & Filter Pro Add existing parameters of query to shortcode

Viewing 10 posts - 1 through 10 (of 16 total)
  • Ross Moderator
    #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:

    http://www.designsandcode.com/documentation/search-filter-pro/2-0-upgrade-notes/#No_more_pre_get_posts

    I’m hoping this will do what you need ๐Ÿ™‚

    Thanks

    Anonymous
    #26518

    But 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} or tag={$this->tag} from template, not statically predefined filter.

    Ross Moderator
    #26651

    Hey 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
    #26679

    Sorry, 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
    #26865

    I’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

    Anonymous
    #26890

    No, I want to use vitrine shortcode with overwritten behavior to display search form with results instead of vitrine default view, but results must be belong to this vitrine.

    Ross Moderator
    #27194

    Hey 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
    #27573

    Let’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?

    Anonymous
    #28132

    Hello, Ross.

    If you don’t want to implement my feature request, then this plugin completely unusable to me ๐Ÿ™

    I want moneyback then ๐Ÿ™ Or you can implement this little feature for me ^^

    Thanks.

    Ross Moderator
    #28162

    Hi 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:

    http://www.designsandcode.com/documentation/search-filter-pro/getting-started/creating-your-first-search-form/

    Thanks

Viewing 10 posts - 1 through 10 (of 16 total)