wont replace

Search
Other Bug Reports questions
Forum

wont replace

chris worthen's Avatar chris worthen
Confidential information:
(hidden)
chris worthen's Avatar chris worthen
Confidential information:
(hidden)
chris worthen's Avatar chris worthen
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Not sure why you are placing everything in "confidential" tags.
These issues are not caused by Sourcerer or ReReplacer.

Hikashop doesn't pass the content through the Joomla plugins before creating the download.
Ask Hikashop support about this.
Please post a rating at the Joomla! Extensions Directory
chris worthen's Avatar chris worthen
So processing it with:

// Import the content plugins
JPluginHelper::importPlugin('content');

// Get the dispatcher
$dispatcher = JEventDispatcher::getInstance();

// Create a context for the product
$context = 'com_hikashop.product';
$params = new Joomla\Registry\Registry(); // Use appropriate parameters if needed

// Manually prepare the content
$dispatcher->trigger('onContentPrepare', array($context, &$product, &$params));

or

$product->product_description = JHTML::_('content.prepare', $product->product_description);


woudlnt suffice?
Peter van Westen's Avatar Peter van Westen ADMIN
You would also need to import the system plugins. Not just the content plugins.
And not sure if that will suffice. That is all down to what hikashop is doing with the content behind the scenes.
Again, something you need to ask them, not me.
Please post a rating at the Joomla! Extensions Directory
chris worthen's Avatar chris worthen
I was told by head dev at hikashop that this should handle importing the plugin: $product->product_description = JHTML::_('content.prepare', $product->product_description);

However, depending on how and when you do your replacing is what is causing it. If you are waiting to replace before content is rendered to the browser would be one reason because its not and its rendered into an XML file.

I recall that sourcer also didnt work on administrator side, but maybe that was before the paid version. I purchased your whole package with every one of your plugins, so maybe it did admin with the paid. But Ive tried extensivly to get it to work with both rereplacer and sourcer and can get it to work. If you can give me some direction it would be greatly appreciated. This is a very important piece for me and I cant get it to work.

Thank you
Peter van Westen's Avatar Peter van Westen ADMIN
Sourcerer will not work in admin urls.
ReReplacer will only work on admin urls if you switch that option on in the ReReplacer item.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in