Author Topic: Load a joomla module {loadposition 'abc'} on Vm frontpage  (Read 4929 times)

darengr

  • Beginner
  • *
  • Posts: 44
Load a joomla module {loadposition 'abc'} on Vm frontpage
« on: September 22, 2010, 15:01:02 pm »
good day,
I want to display a module (for example the vm featured products) first on the VM home frontpage where the categories are normally shown (top within my main body). I tried using {loadposition 'abc'} in store information description, but it is not getting parsed, to load my module.
I found, the page is build up in /common/shopindex.tpl.php. If there is no 'proper' way, can I put a call to loadmodule function in there? what is the syntax?
any hints, please for this issue?
darengr

Phanis

  • Beginner
  • *
  • Posts: 2
Re: Load a joomla module {loadposition 'abc'} on Vm frontpage
« Reply #1 on: September 28, 2010, 11:41:52 am »
To enable Joomla plugins in store description go to root/components/com_virtuemart/themes/default/templates/common/shopIndex.tpl.php

find the code:   echo $vendor_store_desc."<br />";

and replace with : echo $vendor_store_desc = vmCommonHTML::ParseContentByPlugins( $vendor_store_desc )."<br />";

darengr

  • Beginner
  • *
  • Posts: 44
Re: Load a joomla module {loadposition 'abc'} on Vm frontpage
« Reply #2 on: December 22, 2010, 15:14:51 pm »
Phanis, many thanks, I just saw this reply, it works fine!
best regards,
darengr (Dimitris)

jankoo

  • Beginner
  • *
  • Posts: 27
Re: Load a joomla module {loadposition 'abc'} on Vm frontpage
« Reply #3 on: August 09, 2015, 12:15:02 pm »
hi,

i got the same isssue with latest VM3.. it's still not solved?

your code don't work for me as it seems it's little different..

this is core code :

Code: [Select]
if (!empty($this->vendor->vendor_store_desc) and VmConfig::get('show_store_desc', 1)) {
echo $this->loadTemplate('description');

i try to modify for example to this, but it don't work..

Code: [Select]
if (!empty($this->vendor->vendor_store_desc) and VmConfig::get('show_store_desc', 1)) {
echo $this->loadTemplate('description') = vmCommonHTML::ParseContentByPlugins( $this->loadTemplate('description') )."<br />";

please i need a solve this

jankoo

  • Beginner
  • *
  • Posts: 27
Re: Load a joomla module {loadposition 'abc'} on Vm frontpage
« Reply #4 on: August 09, 2015, 13:25:45 pm »
ok.. i found the plugin setting in vm config..