Getting rid of modules under product

  • Posts: 12
  • Thank you received: 0
13 years 7 months ago #12096

Hi there,

Ive tried to change this but keep coming up against a brick wall. I have created a menu of artists, which are sub categories of the 'view by artist' menu link. Then have modules that link to each artist. So for each artist they have a 'originals' and a 'printed' module. like here:

www.astburygreen.co.uk/index.php?option=...blog&id=37&Itemid=63

But when you click through to a product these modules appear underneath the 'related products' section Ive added. Like here:

www.astburygreen.co.uk/index.php?option=...3&category_pathway=0



How can I take the modules off the products page?

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12100

You apparently added these modules as normal joomla modules in the position "content-bottom-a"
That means that these modules will always be displayed under the content area.
The easiest solution will be to select a "menu" in the hikashop options of your modules. and then set these modules to display on all the pages except that menu you selected (you can do that in the normal joomla options of your modules).

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 0
13 years 7 months ago #12104

It doesnt seem to be working, it seems that unless I give it a position in the joomla module options it wont display at all - ive tried a new module in hikashop, still nothing until i give it a position.

I maybe reading your instructions wrong though, might need to break it down a bit more

Thanks for your help

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12105

Yes, you need to set it to a position of your template, but you also need to restrict the display of the module to all the pages but one (via the menu assignment option docs.joomla.org/Screen.modules.edit.15 ).
Then, in the hikashop options of the module set the option "menu" to that specific menu that you didn't select and voilà.

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 0
13 years 7 months ago #12107

Thanks for getting back to me.

Right well I've done what you said but I don't think your understanding what I'm needing.

All this is doing is adding the 'originals' to the bottom of all my pages but the one it needs to be on:
www.astburygreen.co.uk/index.php?option=...blog&id=37&Itemid=63

This is the one page it needs to be on and not on any others but at the same time not appearing at the bottom of the product page when clicking on a product???

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12109

Then, instead of selecting all but one menu in the menu assignment option of your module, just select that menu.

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 0
13 years 7 months ago #12111

Right that makes sense, but that ends me up where I started.

This page is now correct displaying both originals and printed:
www.astburygreen.co.uk/index.php?option=...blog&id=37&Itemid=63

But when you click on one of the products both these sections appear at the bottom of the product underneath 'related products' this is what I want to get rid of.

www.astburygreen.co.uk/index.php?option=...3&category_pathway=0

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12112

That's why I'm saygin that in the "menu" option (not the menu assignment option of the joomla option screen) of the hikashop options screen of your module you should set another menu than this one.

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 0
13 years 7 months ago #12113

Thats great and worked a treat, thanks very much.

One problem, its now been replaced with a 'featured original' module and a 'featured printed' module which has been set to the front page. Is there a php file I can edit just to stop anything sitting underneath my product page?!!

Its behaving strangely, there seems to be no reason for them to be there?!!!

Thanks for your help so far, great support

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12114

Well, you can tweak your template index.php file for that. You could add something like that:

if(JRequest::getVar('option')!='com_hikashop'||JRequest::getVar('ctrl')!='product'||JRequest::getVar('task')!='show'){
//display of the bottom modules
}

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 0
13 years 7 months ago #12142

Thanks for this - where would I put that in the templates index.php?

Also, if you look at the site, its funny that when you click through to the products you get the front page 'featured artists' and the has the home page link is active, as if its actually redirecting to the front page?!!!

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12143

I can't say. Each template has a different index.php
You should ask your template provider.

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 0
13 years 7 months ago #12418

You've been really helpful, thanks for speedy responses - however the template provider has not been!

sooooo, this is the php effecting the bottom where the modules are appearing. How can I make sure they dont appear under the products?

code from index.php template referring to the bottom holder of modules:

<?php /** Begin Main Bottom **/ if ($gantry->countModules('mainbottom')) : ?>
<div id="rt-mainbottom">
<?php echo $gantry->displayModules('mainbottom','standard','standard'); ?>
<div class="clear"></div>
</div>
<?php /** End Main Bottom **/ endif; ?>

Any help would be great
Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 0
13 years 7 months ago #12420

Alternatively is there a way for each products name to be the product page's body class?

That may be simpler, perhaps?!!!

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12443

Instead of:
<?php echo $gantry->displayModules('mainbottom','standard','standard'); ?>
you can write:
<?php if(JRequest::getVar('option')!='com_hikashop'||JRequest::getVar('ctrl')!='product'||JRequest::getVar('task')!='show'){ echo $gantry->displayModules('mainbottom','standard','standard'); } ?>

Please Log in or Create an account to join the conversation.

Time to create page: 0.076 seconds
Powered by Kunena Forum