I'm currently working on making a login form in home page.
but after each invalid attempt the messages are not showing in proper place
i.e
The "invalid email and password " message showing in account dashboard and forgotpassword page.
This means that you have forgot to call group messages block in your template
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
I added the following line in my template and it works:
<?php $message1=Mage::app()->getLayout()->getMessagesBlock()
->setMessages(Mage::getSingleton('customer/session')
->getMessages(true))->getGroupedHtml() ; ?>
thanks for the help.
This means that you have forgot to call messages block in your template. add this code , its work for me
<?php echo $this->getMessagesBlock()->toHtml() ?>
Related
I've got Onepage and Goodcheckout enabled
I've copied the success.phtml to my active theme folder but it's showing blank success page content. I can see the header but the rest of the page is blank
I activated debug but no errors showing, why would the succcess.phtml not show correctly while using this extension?
You can test by going here -https://www.premiumpetfoodonline.com.au/catalogsearch/result/?cat=0&q=test1-2kg
Checkout and you'll see the success page
This piece of code at the top of the success.phtml had been altered, I removed the title call and block request as it isn't needed as header is already set
<?php echo $this->getMessagesBlock()->toHtml() ?>
<h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2>
I am using Joomla 2.5 inbuilt User registration form. I wanted to add registration,log-in,log-out menu to my page and i got the link of registration and Log-in by selecting user manager in menu item type. But how to get Log-out link ? to add my menu Please help me .Thanks in Advance .
You can always try to do that with the standard Joomla! module for login/logout.
To make this module, go to: Module Manager => New => Select type Login.
The code below worked for me in Joomla version 2.5
Log Out
The code below will work for Joomla 3.x
Logout
This should work for you in your template index.php
<?php if(JFactory::getUser()->guest): ?>
...do something...
<?php else: ?>
...do something...
<?php endif; ?>
Hi all our website is Caged.eu and we have customised a Template from pre 1.9. Magento allows customer to register but when they try to sign in using that login details login page doesnt respond, this also happens when they ask to resend password it send reset details but still doesnt work.
Oddly the click facebook link to sign up login does work which is another extension we are ready to release but after getting it this well done would hate to have to change template.
Im sure its something stupid but would really appreciate your help guys
In Magento 1.9 the forms are unable to store the data as formkey missing. Try to add the key then you can be able to sign in. Add <?php echo $this->getBlockHtml('formkey'); ?> this at line no 41 below <form> tag in app/design/frontend/[your theme package]/[your theme]/template/persistent/customer/form/login.phtml
And check whether you can update product quantity in cart, there also formkey is missing.
Copy base/default/template/customer and base/default/template/persistent to your theme/template
After you had added the line <?php echo $this->getBlockHtml('formkey'); ?>
Perhaps you need to to flush magneto cache from magento admin (System->Cache management), then you can try the frontend customer login again.
As already replied in magento.stackexchange you should edit
/app/design/frontend/default/template-name/template/persistent/customer/form/login.phtml
and inside the "login form" form, after the
<ul class="form-list">
you should insert
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
and this will solve your problem, as it did with mine.
Hope this helps
so be it - manemoi
Theodore
I am new in magento.I want to change footer part.
my footer file path: D:\wamp\www\magento\app\design\frontend\base\default\template\page\html\footer.phtml.
<div class="footer-container">
<div class="footer">
<?php echo $this->getChildHtml() ?>
<p class="bugs"><?php echo $this->__('Help Us to Keep Magento Healthy') ?> - <strong><?php echo $this->__('Report All Bugs') ?></strong> <?php echo $this->__('(ver. %s)', Mage::getVersion()) ?></p>
<address><?php echo $this->getCopyright() ?></address>
</div>
Now I want to remove Help us to keep sentence.
please tell me how to remove this
I have deleted fulll then also it is shown in frontend.
Go to admin section System>Configuration>Advanced>Developer>Debug Then enable Template path hints. After this refresh your site frontend.
You will get the correct information from which theme your file is being loaded.
Then change the correct footer.phtml file.
This message will go.
I think you are new to magento.
For better knowledge read Design Packages
This is a cache issue.
Navigate to your site's cache:
public_html/var/cache //Or where ever the route of your Magento cart is.
Then Delete all the things in the var directory!
Refresh your site and your changes should appear.
i added advanced search option on my home page by placing this code in
/app/design/frontend/default/hellowired/template/page/2columns-right.phtml
<div>
<?php echo
$this->getLayout()->createBlock('catalogsearch/advanced_form')->setTemplate('catalogsearch/advanced/form.phtml')->toHtml()
?>
</div>
when press submit button then it giving me nothing. so result are not showing... please help
Check if you are getting the post url of the form as {{base-url}}/catalogsearch/advanced/result/