Hi there Olivier.
Thanks for your response, which I've given a try.I've applied the additional code to the lview_sdesk.php override:
<?php
// No direct access
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
HTMLHelper::_('content.prepare', $this->product->product_short_desc);
?>
<?php if($this->params->get('item_show_sdesc', 1)): ?>
<div class="product-sdesc">
<?php echo $this->product->product_short_desc; ?>
</div>
<?php endif; ?>
Sadly the fields were not pulling through.
I did some research and found the following which might (or might not) be correct!
"The reason your custom fields aren't showing up is because content.prepare processes the text, but it doesn't automatically "inject" the fields unless the Fields Plugin is specifically told to do so.
In Joomla, custom fields assigned to an article are stored in a separate property (usually $item->jcfields).
Because you are working within a J2Store view, the $this->product object might contain the article ID, but it doesn't always load the fields automatically for performance reasons.
Here is the most reliable way to display those fields in Joomla 5/6:
Updated Code with Fields Support
<?php
/**
* @package J2Store
* @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org
* @license GNU GPL v3 or later
*
* Bootstrap 5 layout of product detail
*/
// No direct access
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
HTMLHelper::_('content.prepare', $this->product->product_short_desc);
?>
<?php if($this->params->get('item_show_sdesc', 1)): ?>
<div class="product-sdesc">
<?php echo $this->product->product_short_desc; ?>
<?php echo HTMLHelper::_('content.prepare', $this->product->product_short_desc);?>
</div>
<?php endif; ?>
But unfortunately, even this doesn't work!
Suggestions welcome!
Chris