test melih
 melih
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • elude Friend
    #1093765

    Hello,

    One year ago, I worked with JA K2 Filter search and as I need to display a k2 plugin on k2 category view . Thanks to your team, I got the solution (https://www.joomlart.com/forums/topic/ja-k2-filter-and-ja-social-ii-template/page/2/?bbp_reply_to=1012783&_wpnonce=a16cc48e2f#new-post)

    However I would like to have the same plugin working with Mega Filter. Do you think it’s possible to display k2 plugin on k2 item in Mega Filter ?

    I tried to modify the plugin as I have made for JA K2 Filter search but it doesn’t work. Here is the code I tried :

    1. if ($application->isSite() && ($option == 'com_k2' || $option == 'com_jak2filter' || $option == 'com_jamegafilter'))
    2. {
    3. // Category view
    4. if ($context == 'com_k2.itemlist')
    5. {
    6. // Check for category inclusion
    7. $categoryIsIncluded = $this->checkCategoryInclusion($item->catid);
    8. if ($this->params->get('enable_in_category') && $this->params->get('position_in_category') == '1' && $categoryIsIncluded)
    9. {
    10. $output = $this->renderFavoritesButton($item->id, $item->title);
    11. }
    12. else
    13. {
    14. $output = '';
    15. }
    16. }
    17.  
    18. // Category view
    19. if ($context == 'com_jak2filter.itemlist' && isset($item->extra_fields) && $item->extra_fields != '[]')
    20. {
    21. // Check for category inclusion
    22. $categoryIsIncluded = $this->checkCategoryInclusion($item->catid);
    23. if ($this->params->get('enable_in_category') && $this->params->get('position_in_category') == '1' && $categoryIsIncluded)
    24. {
    25. $output = $this->renderFavoritesButton($item->id, $item->title);
    26. }
    27. else
    28. {
    29. $output = '';
    30. }
    31. }
    32.  
    33. // Category view
    34. if ($context == 'com_jamegafilter.layout-default' && isset($item->extra_fields) && $item->extra_fields != '[]')
    35. {
    36. // Check for category inclusion
    37. $categoryIsIncluded = $this->checkCategoryInclusion($item->catid);
    38. if ($this->params->get('enable_in_category') && $this->params->get('position_in_category') == '1' && $categoryIsIncluded)
    39. {
    40. $output = $this->renderFavoritesButton($item->id, $item->title);
    41. }
    42. else
    43. {
    44. $output = '';
    45. }
    46. }

    Did I commit a mistake ? Is there any way to make a k2 plugin work with Mega Filter ? I bought again a licence just to have an answer about this sot thanks you very much for your help.

    Regards,

    Elude

    Saguaros Moderator
    #1093877

    Hi,

    As our dev replied in that topic, that plugin is working with com_k2 only and it seems that you’ve already hired a dev to implement it, is that correct?

    elude Friend
    #1093934

    Hello,

    Thanks for your answer.

    No I just made the customization following the advice given. But when I want to do the same for Megafilter it doesn’t work. That’s why I need an advice to make it work. If you thing it’s not possible at all to make it work, no problem, I would just ask a refund.

    Elude

    Saguaros Moderator
    #1094117

    Hi Elude,

    You can share the package of that plugin and the FTP account of your site, I will take a look if it can be done.

    Regards

    elude Friend
    #1112101
    This reply has been marked as private.
    Saguaros Moderator
    #1112261

    Hi Elude,

    I will share with the developer of this extension for further checking if it can be done.

    Regards

    elude Friend
    #1112639

    Hello,

    Sorry to ask but have you any news about this ?

    Many thanks,

    Elude

    Saguaros Moderator
    #1112689

    Hi Elude,

    This is quite complicated, give us more time on this.

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

This topic contains 7 replies, has 2 voices, and was last updated by  Saguaros 6 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum