test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • vaaish Friend
    #1038174

    Hi,

    I recently purchased jamegafilter and I’m using it with the joomla content component. So far the plugin works great, but I need to have the search result items display customized content.

    I’m seeing {desc} and others in the product-item.php file, but I don’t know where or how those are defined or how I’d go about pulling in other values.
    What I’d like to do is pull in the values for each of the custom fields I’m using in Joomla and for the attribs column in the database.

    I didn’t see any info on doing this in the documentation, can you help?

    Thanks!
    Aaron

    Mo0nlight Moderator
    #1038305

    Hi.

    All the data defined in the file :
    /plugins/jamegafilter/content/helper.php

    If you want to show attribs column
    Add this code.

    $item->attribs = $baseItem->attribs;

    Under the line : 133

    $item->width_rating = $item->rating * 20;

    And Edit the file :
    plugins/jamegafilter/content/layouts/default/product-item.php
    add this code.

    {attribs.show_title}

    show_title : change this to another value of attribs column.
    ex : show_hit , show_readmore ….

    Add this.

    {attr.ct1.value}

    ct1 : Change to the id number of custom field of Joomla you want. ex: ct2, ct3….

    vaaish Friend
    #1038317

    Perfect, thanks so much! I was getting close but how to reference the attribs was throwing me. 🙂

    Mo0nlight Moderator
    #1038403

    Hi,

    After indexing, you could find the json data file at location: media/com_jamegafilter/en_gb/1.json

    en_gb : your language.
    1: the id number of megafilter.

    search for some json viewer online and you can see all the data there.


    1. Screen-Shot-2017-05-31-at-4.55.37-PM
Viewing 4 posts - 1 through 4 (of 4 total)

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

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