VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: notanothernumber on January 25, 2012, 02:32:02 AM

Title: Display virtuemart latest product module using {loadposition} on home page
Post by: notanothernumber on January 25, 2012, 02:32:02 AM
I'm having a problem with loading the virtuemart latest product module using the {loadposition xx} funtionality on the home page of www.costumeglitz.com.au. Really frying my brain as the space gets set up for the module but for some strange reason it just doesn't get loaded in? If I create a custom html module and use the loadposition for that (in the same area on the homepage) it works fine?? My gut feeling is the home page is not loading in the relevant code for it to run but I'm not 100% sure? Any help/advice appreciated.

Cheers
Martin
Title: Re: Display virtuemart latest product module using {loadposition} on home page
Post by: karuppiah on February 06, 2012, 17:01:19 PM
<?php $menu = &JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {
<jdoc:include type="modules" name="right" style="xhtml" />
?>
The name indicates the position of module..
Title: Re: Display virtuemart latest product module using {loadposition} on home page
Post by: notanothernumber on February 06, 2012, 22:58:02 PM
Thanks for your response but can you explain in more detail. Where would I put this code? Would I still be using the {loadposition} in the article?
Title: Re: Display virtuemart latest product module using {loadposition} on home page
Post by: karuppiah on February 07, 2012, 06:23:17 AM
do u need to insert module inside a article??
Title: Re: Display virtuemart latest product module using {loadposition} on home page
Post by: notanothernumber on February 07, 2012, 06:42:23 AM
yep and been using {loadposition} but not working
Title: Re: Display virtuemart latest product module using {loadposition} on home page
Post by: karuppiah on February 07, 2012, 07:21:15 AM
Install this plugin,

http://extensions.joomla.org/extensions/core-enhancements/embed-a-include/6958

It will be helpful for inserting module into a article....
Title: Re: Display virtuemart latest product module using {loadposition} on home page
Post by: notanothernumber on February 07, 2012, 08:31:45 AM
Thanks karuppiah got this working BUT the latest product module seems to be loading in the oldest products that were entered and not the latest. Have you or anyone else any idea where the setting for this is controlled??
Title: Re: Display virtuemart latest product module using {loadposition} on home page
Post by: karuppiah on February 07, 2012, 08:44:16 AM
check the options inside the module to display particular category..
Title: Re: Display virtuemart latest product module using {loadposition} on home page
Post by: notanothernumber on February 07, 2012, 10:01:43 AM
presently set-up like attachment which seems logical to me? I also have a featured products module running on the same page but can't be conflicting as when i turn off the same products stay in the latest products module (www.costume glitz.com.au)

[attachment cleanup by admin]