VirtueMart Forum

VirtueMart 2 + 3 => General Questions => Topic started by: joomdev2 on August 16, 2018, 20:46:32 pm

Title: Virtuemart overriding Registry object - Default Joomla template.
Post by: joomdev2 on August 16, 2018, 20:46:32 pm
Hello,

On our virtuemart install, our template params are not reflecting/available on the frontend, this is probably because our template is also using JRegistry to register and access params on the frontend.

I found the fix.
In the file:
components\com_virtuemart\helpers\vmtemplate.php
line 212
Code: [Select]
if($app->isSite()) $app->setTemplate($template,$registry);
Commenting this code fixes the issue. I understand this is only for virtuemart templates but it seems to be overriding the core template params.

Also, this is only applicable to the Frontpage (Depreciated) layout and the category and other layouts seems to be working fine.

My question:

1. Can we ignore this and assume that this would be fine working forward (as it is already with the category layout and other menu items).
2. Is there a bigger issue that would need to be fixed on the template level by the developer.

The template framework in question is astroid (astroidframework.com).

Thanks,
Chetan
Title: Re: Virtuemart overriding Registry object - Default Joomla template.
Post by: GJC Web Design on August 16, 2018, 20:53:34 pm
Quote
Also, this is only applicable to the Frontpage (Depreciated) layout and the category and other layouts seems to be working fine.

then switch to the correct setup  of the home page ( if VM) is a menu to the root VM cat
Title: Re: Virtuemart overriding Registry object - Default Joomla template.
Post by: joomdev2 on August 16, 2018, 21:47:26 pm
Thank You for your reply.