Hi ggppdk,
I've been silently reading the forum threads for several days and I must appreciate your technical knowledge and support for resolving issue asap.
I am considering the following microdata on product details page:
Code:
<div itemscope itemtype="http://schema.org/Product">
<span itemprop="name"><b>Product Name</b></span>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<u>Rated:</u> <span itemprop="ratingValue">4</span> / 5 based on <span itemprop="reviewCount">50</span> customer reviews </div>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<span itemprop="price">$50</span>
<link itemprop="availability" href="http://www.products.com" />In stock
</div>
<u>Product description:</u> <span itemprop="description">This is the description of the product.</span>
</div>
I don't know if it is necessary to put all the required info like product name, price, URL, description, aggregate rating
in one place, as mentioned above.
I am thinking to fetch (if you can tell me a way to pull them from my custom fields, selectively from DB) product name, price, URL, description, etc. from my custom fields.
Aggregate rating figures from flexicontent_items_extravote table and reviews from JComments table, as I am using Jcomments for reviews.
I think now you have a fair idea of what I want to achieve.
Regarding what I've integrated is not a significant task, I am just using the following code in the file "modular.php" to fetch total No. of comments, which can then be used as review count, using the following snippet:
Code:
$reviews = JComments::getCommentsCount($item->id, 'com_flexicontent');
- in current category view (with filtering)
- in current category view (regardless of filtering)
- in current page only (e.g. current page has 20 items)
I guess, I would like to use the second option, i.e. "in current category view (regardless of filtering)" and on item detail page.
Thanks for posting the list of api code. Is there an easy way of calling field data on pages by just using variable names, as I used to do in AdsManager.