-
AuthorPosts
-
May 30, 2017 at 6:05 pm #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!
AaronMo0nlight Moderator
Mo0nlight
- Join date:
- September 2014
- Posts:
- 707
- Downloads:
- 38
- Uploads:
- 107
- Thanked:
- 99 times in 97 posts
May 31, 2017 at 3:44 am #1038305Hi.
All the data defined in the file :
/plugins/jamegafilter/content/helper.phpIf 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….
May 31, 2017 at 5:05 am #1038317Perfect, thanks so much! I was getting close but how to reference the attribs was throwing me. 🙂
Mo0nlight Moderator
Mo0nlight
- Join date:
- September 2014
- Posts:
- 707
- Downloads:
- 38
- Uploads:
- 107
- Thanked:
- 99 times in 97 posts
May 31, 2017 at 9:56 am #1038403Hi,
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 user says Thank You to Mo0nlight for this useful post
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 3 replies, has 2 voices, and was last updated by
Mo0nlight 7 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Need to add custom content to product-item.php
Viewing 4 posts - 1 through 4 (of 4 total)