News:

Support the VirtueMart project and become a member

Main Menu

total number of reviws and custom fields

Started by Thanasis, November 20, 2018, 17:58:57 PM

Previous topic - Next topic

Thanasis

Hi, i have joomla 3 with virtuemart 3 and a custom template, i have tabs on product details page for reviews and videos (the video is added from a custom field). What i want is a way to count the total number of reviews and total number tha custom fieled to diplay on tabs. For example:
Details | Reviews (2) | Videos (1)|

Thanks.

Studio 42

You need to find the PHP about review and your customfield in the position you have the videos.
See \components\com_virtuemart\views\productdetails\tmpl\default_reviews.php about reviews code
$this->product->customfieldsSorted['yourposition'] to get the video customfield.