Hide Latest product modules in virtue mart page details - joomla

I am using Joomla 1.5 and virtuemart 1.1.9 i have included the latest module in virtuemart. It displays the module in product details also i want to show only in virtuemart front page only
How would i hide these modules in product details page
div id="mainBlock">
<jdoc:include type="modules" name="shopmodule" />
<jdoc:include type="component" />
</div>
Please help me to get out from this

Find out a parameter to identify this view, i.e. view = "product-detail", then
if (JRequest::getVar("view","")!=="product-details") {
?><jdoc:include type="modules" name="shopmodule" /> <?
}

Related

Joomla 4 Custom module in template head

I try to insert in Joomla 4 custom module in template head.
In old Joomla 2.5 I was able to do it like this:
<head> ... <jdoc:include type="modules" name="CustomTop" /> ... </head>
This method seems don't work any more in Cassiopeia index.php

Dropdown login form without extensions

First of all, I'm starting with Joomla 3. I have a main menu with a login item and I want to dropdown the login form when this item is clicked, something like login on dropbox site.
I try hot login extension but not working well for me.
UPDATE
I create a new postion in my XML file called 'login'
<positions>
<position>login</position>
And add this to the index.php
<div class="span7">
<jdoc:include type="modules" name="menu" style="none" />
<jdoc:include type="modules" name="login" style="none" />
</div>
Finally, in the panel, I set to the Login Form module the login postion.
Now, my DOM is look like this:
<div class="span7">
<ul class="nav menu">Menu itens...</ul>
<form id="login-form">...</form>
</div>
How can I set the login form to open when the user click in one of the menu items?
Depending on the template, there are different methods. For example with Yootheme templates, you need to open the Login module in the Module Manager and set the position to "menu". With Rockettheme, you can set a module or a module position to a specific menu item via the Menu Manager.
Have a look at he demo site for the template you download and read any documentation as it will help.

Magento is adding "&register" in the URL of Onepage checkout when you click "Register"

I always worked with magento 1.5. There, when I click on REGISTER in the first step of Onepage checkout, the page automatically open the form for registration without reload.
Now I'm working on a store on magento 1.7 and I realized that is not working well. When I go in Onepage checkout and click on REGISTER, Magento reload the page, loads the form and add "& register" in the URL, exemple: www.domain.com/checkout/onepage/&register.
I've tried several ways to disable the reload and this "& register" .. I want to keep this page like in magento 1.5 .. I also saw other stores in Magento 1.7 that do not have this problem. Can anyone help me?
It is cause of persistent module (since Magento 1.6)
Look at your template file:
app/design/frontend/[base/default]/[default/yourTheme]/template/persistent/checkout/onepage/login.phtml
This line of code:
<?php if ($this->getQuote()->isAllowedGuestCheckout()): ?>
<button id="onepage-guest-register-button" type="button" class="button" onclick="checkout.setMethod();"><span><span><?php echo $this->__('Continue') ?></span></span></button>
<?php else: ?>
<form action="<?php echo $this->getUrl('persistent/index/saveMethod'); ?>">
<button id="onepage-guest-register-button" type="submit" class="button"><span><span><?php echo $this->__('Register') ?></span></span></button>
</form>
<?php endif; ?>
See the form action -> it is what makes your page reloaded
How does it change the template?
app/design/frontend/[base/default]/[default/yourTheme]/layout/persistent.xml
This line of code:
<checkout_onepage_index>
<reference name="checkout.onepage.login">
<action method="setTemplate"><template>persistent/checkout/onepage/login.phtml</template></action>
<block type="persistent/form_remember" name="persistent.remember.me" template="persistent/remember_me.phtml" />
</reference>
<reference name="checkout.onepage.billing">
<action method="setTemplate"><template>persistent/checkout/onepage/billing.phtml</template></action>
<block type="persistent/form_remember" name="persistent.remember.me" template="persistent/remember_me.phtml" />
<block type="core/template" name="persistent.remember.me.tooltip" template="persistent/remember_me_tooltip.phtml" />
</reference>
</checkout_onepage_index>
If you're not using your persistent module, you can disable it by change app/etc/modules/Mage_Persistent.xml <active>false</active>
It looks like that module has been created neatly so it won't break anything if you disable it though I'm not really sure
Other way is to change the template, change that line of code into:
<button type="button" class="button" onclick="checkout.setMethod();"><span><span><?php echo ($this->getQuote()->isAllowedGuestCheckout() ? $this->__('Continue') : $this->__('Register')) ?></span></span></button>

Joomla 1.7: Order of modules on frontpage

I would like to configure my frontpage (default page). In Menu Manager I set Menu Item Type to "Featured articles". It's great. I have featured articles on my homepage. Now I want to show my special module only on my homepage. So I add new module in module manager and assign it to homepage. Yes, module is added. And this is problem. Module is added before Featured Articles.
I would like to change order of Featured Articles (Content Component) and Modules. Is it possible?
I think I can't change it in Joomla Back-end.
Thank you very much for reply
Oh, it's my mistake.
In my main template file index.php I have bad order of jos:include tags.
<jdoc:include type="component" />
<jdoc:include type="modules" name="left" style="mfPanel" headerLevel="2" />
First it must be component and then tag for modules.

Google Checkout View Cart Button

I'm trying to add a view cart button to my website that is using google checkout, does anyone know a trick to do this? I think I may need to use a special div with a class to create a button that will display the cart when clicked, I'm lost.
Thank you
The Google Checkout shopping cart has its own JavaScript and CSS APIs - you can use those to change the cart's appeareance and behavior to beter match yout website look and feel.
See this document for more info:
http://sites.google.com/site/checkoutshoppingcart/customising-cart-s-ui
<div class="product">
<input type="hidden" class="product-title" value="8x10 Product
<input type="hidden" class="product-price" value="19.95">
<a class="googlecart-add">Product Title</a>
</div>

Resources