Author Topic: Virtuemart overriding Registry object - Default Joomla template.  (Read 413 times)

joomdev2

  • 3rd party VirtueMart Developer
  • Beginner
  • *
  • Posts: 6
  • A beginner
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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8891
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Virtuemart overriding Registry object - Default Joomla template.
« Reply #1 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

joomdev2

  • 3rd party VirtueMart Developer
  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: Virtuemart overriding Registry object - Default Joomla template.
« Reply #2 on: August 16, 2018, 21:47:26 pm »
Thank You for your reply.