Labels in product module
Posted: 16 Sep 2025, 08:49
Ahoj, prosim je mozne dostat stitky alebo tagy ku produktom v module? Su v nejakom objekte, ktory sa moze v module pouzit? Diky
Code: Select all
$tagslabels = PhocacartTag::getTagsRendered((int)$v->id, 3);
if (!empty($tagslabels)) { echo '<div class="ph-label-box">' . $tagslabels . '</div>';}
Code: Select all
$labels = PhocacartTag::getTagsRendered((int)$v->id, 2);
if (!empty($labels)) { echo '<div class="ph-label-box">' . $labels . '</div>';}
Code: Select all
$tags = PhocacartTag::getTagsRendered((int)$v->id, 1, ', ');
if (!empty($tags)) { echo '<div class="ph-tag-box">' . '<span class="ph-tag-box-header">'.Joomla\CMS\Language\Text::_('COM_PHOCACART_TAGS'). '</span>: ' . $tags . '</div>';}