News:

Support the VirtueMart project and become a member

Main Menu

Call a plugin { } from short description

Started by Ferran, November 24, 2020, 13:20:14 PM

Previous topic - Next topic

Ferran

Hi guys;

I want to enable the plugins in the short description, I found in the forum a solution, including prepare.content but it doesn't work, do you see something wrong there?

Joomla 3.9.22 & Virtuemart 3.8.6

ORIGINAL CODE:

<p class="product_s_desc">
<?php // Product Short Description
if (!empty($product->product_s_desc)) {
echo shopFunctionsF::limitStringByWord ($product->product_s_desc, 600, ' ...') ?> <?php } ?> </p>

CODE WITH PREPARE CONTENT:

<p class="product_s_desc">
<?php // Product Short Description
if (!empty($product->product_s_desc)) {
echo JHTML::_('content.prepare',$product_name); ?>  <?php } ?> </p>



Thanks in advance


pinochico

#1
short description is not content

maybe right?:

echo JHTML::_('content.prepare',$product->product_name); ?>  <?php } ?> </p>
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

Ferran