-
AuthorPosts
-
reders Friend
reders
- Join date:
- December 2007
- Posts:
- 127
- Downloads:
- 3
- Uploads:
- 13
- Thanks:
- 9
- Thanked:
- 4 times in 1 posts
April 13, 2010 at 3:30 pm #150336Please help,
We are using this template and have set Virtuemart to be the homepage of the website so that the categories show on the home page.The problem we are having is when a user clicks on any products or categories, the modules in the ‘mass-top’ position are still showing when you get to the main products details page.
We want the modules to disappear.
We have only select the homepage for the modules to appear on in the modules admin settings, but they still appear on all pages.
You can view our test site at:
http://www.s285981493.websitehome.co.uk/Proofs/smak.co.uk/Please tell us how to stop this?
Regards,
RedersSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 14, 2010 at 7:27 am #340310Dear reders!
Please check the links of categories and products, they have not the ItemId parameter. The ItemId is the id of menu item. The Joomla ‘ll display modules following menu item, meaning follow the value of menu ID. If the link has not the ItemId parameter, so the joomla ‘ll understand that you are staying at the “Home Page” menu ( as default menu). To fix this issue , Please kindly create the “Shop” menu having the menu type to be the “Vitual mark” Component
Good luck
reders Friendreders
- Join date:
- December 2007
- Posts:
- 127
- Downloads:
- 3
- Uploads:
- 13
- Thanks:
- 9
- Thanked:
- 4 times in 1 posts
April 14, 2010 at 11:18 am #340333Hi There,
Thanks for the help, but this has not worked.
I have had this problem before. We want to have Virtuemart as the home page and not create a button called shop.We have also created a button called shop, but we still have the issue.
Please help.
Regards,
RedersSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 14, 2010 at 2:27 pm #340358Dear reders!
Can you please give me the administrator account via PM, i would like to check this issue in detail
Thanks
reders Friendreders
- Join date:
- December 2007
- Posts:
- 127
- Downloads:
- 3
- Uploads:
- 13
- Thanks:
- 9
- Thanked:
- 4 times in 1 posts
April 15, 2010 at 2:40 pm #340477Hi all,
We have managed to sort this issue.
If you set Virtuemart as your Default Hompage, Joomla automatically assigns the same item id to all the product categories on your website, so the modules do not know which page to show or not.The hack we found arround this is to open the file:
administrator/components/com_virtuemart/classes/ps_session.phpAround line 548 you need to change:
$Itemid = “&Itemid=” . ($tmp_Itemid ? $tmp_Itemid : $this->getShopItemid());to
$Itemid = “&Itemid=2” . ($tmp_Itemid ? $tmp_Itemid : $this->getShopItemid());
Basically all we have done is put the number 2 into the itme id, this way it tricks Joomla into thinking it is a different item.
Regards,
Redersreders Friendreders
- Join date:
- December 2007
- Posts:
- 127
- Downloads:
- 3
- Uploads:
- 13
- Thanks:
- 9
- Thanked:
- 4 times in 1 posts
July 12, 2010 at 11:43 am #349675Hi Tien,
I have just sent you through a PM with all the details.
Regards,
Sean R.reders Friendreders
- Join date:
- December 2007
- Posts:
- 127
- Downloads:
- 3
- Uploads:
- 13
- Thanks:
- 9
- Thanked:
- 4 times in 1 posts
July 16, 2010 at 7:01 am #350046Hi Tien,
Please can you give me some help on this?
Regards,
RedersSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 20, 2010 at 5:05 am #350291Dear Reders!
I think that you controlled this issue, because everything working well with the home menu and products category links
Thanks
reders Friendreders
- Join date:
- December 2007
- Posts:
- 127
- Downloads:
- 3
- Uploads:
- 13
- Thanks:
- 9
- Thanked:
- 4 times in 1 posts
July 20, 2010 at 3:08 pm #350321Hi Tien,
Yes I have managed to control the modules when a user navigates the categories on the site, BUT
when you add products to the shopping basket and you view your cart and start going through the checkout process, the modules re-appear.
Please see the attached pic.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 23, 2010 at 6:53 am #350525Because the CheckOut Page, Cart page…. they are parts of the component which having one ItemId Value, so that you could not enable or disable anymodules on some pages of the virtuemart component,
You must to fix code: check and only displays the Joomla Tag (which includes modules ) if current page is not checkout page.
For example:
[PHP]
<?php if( JRequest::getVar(‘page’) != ‘shop.checkout’ ) : ?>
<jdoc:include type=”modules” name=”my-module” style=”JAxhtml” />
<?php endif; ?>
[/PHP]GOodluck
reders Friendreders
- Join date:
- December 2007
- Posts:
- 127
- Downloads:
- 3
- Uploads:
- 13
- Thanks:
- 9
- Thanked:
- 4 times in 1 posts
July 26, 2010 at 3:10 pm #350748Hi Tien,
I have tried putting the following code into the file :
/templates/ja_mesolite_ii/layouts/blocks/main.php<?php
$mass_top = $this->getPositionName ('content-mass-top');
if($this->countModules($mass_top)) ; if( JRequest::getVar('page') != 'shop.checkout' ) : ?>
<div class="ja-mass ja-mass-top clearfix">
<jdoc:include type="modules" name="mass-top" style="JAxhtml" />
</div>
<?php endif; ?>And it does not work?
Do you know if I am doing this correctly?Regards,
Sean R.Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
July 27, 2010 at 8:35 am #350866Hello Sean R,
Please retry using the following code
<blockquote><?php
$mass_top = $this->getPositionName (‘content-mass-top’);
if( $this->countModules($mass_top) && JRequest::getVar(‘page’) != ‘shop.checkout’ ) : ?>
<div class=”ja-mass ja-mass-top clearfix”>
<jdoc:include type=”modules” name=”mass-top” style=”JAxhtml” />
</div>
<?php endif; ?></blockquote>reders Friendreders
- Join date:
- December 2007
- Posts:
- 127
- Downloads:
- 3
- Uploads:
- 13
- Thanks:
- 9
- Thanked:
- 4 times in 1 posts
July 28, 2010 at 10:15 am #351038Hi Support Team,
This does not work, I have added the code the the main.php and it still shows the modules on the checkout.
Regards,
Sean R.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 3, 2010 at 11:32 pm #351633Hello Sean!
Sorry for my mistaken on my solution
and here is right solution:
[PHP]
<?php
$mass_top = $this->getPositionName (‘content-mass-top’);
if($this->countModules($mass_top)) ; if( JRequest::getVar(‘page’) != ‘checkout.index’ ) : ?>
<div class=”ja-mass ja-mass-top clearfix”>
<jdoc:include type=”modules” name=”mass-top” style=”JAxhtml” />
</div>
<?php endif; ?>
[/PHP]Goodluck
AuthorPostsViewing 14 posts - 1 through 14 (of 14 total)This topic contains 14 replies, has 3 voices, and was last updated by Saguaros 14 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Controling Modules on Home page
Viewing 14 posts - 1 through 14 (of 14 total)