Magento 1.91 CE - Customers Cant login - magento

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

Related

My magento login not working

I have tried many options but still not working please any body who can fix it. my username and password both are correct please. my back end is working fine but the front end login is not working.
I tried editing and commenting code in varien.php. i tried http as no in configurations setting
still not working and giving invalid username password error. but the credentials are correct.
Looks like an issue with form-key
Go to app/design/frontend/[Your-package]/[Your-theme]/template/customer/form/login.phtml and template/persistent/customer/form/login.phtml and under
Find: <ul class=”form-list”>
And paste this right after the code above the following:
<input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
Repeat above for app/design/frontend/Your-package]/[Your-theme]/template/persistent/customer/form/login.phtml
Try this solution.
Login to admin.
Navigate to Admin-> System-> Configuration-> Customer-> Customer
Configuration-> Share Customer Accounts
Set Share Customer Accounts To Global
Make sure to take backup if you are working with production server.
Hope this helps you!

After upgrading to to 1.9 from 1.7, new order not saving

After upgrading to to 1.9.1 from 1.7, new order not saving at all. Few customer told they have paid through sage pay but in magento admin we can't see any customer or sale in graph.
Also onepage checkout was not working but after we reselect different paypal method(express method) then it is at least redirecting to paypal but omitting step 6. It seems there is something in step 6(which does not let redirect to paypal).
Because nothing has been saved about order we have a big issue, as we don't know for what item they have paid for? Also customer or we not receiving any email after order placement.
Anyone experiencing same problem?
For your payment issues:
I assume you can see every payment in your sage panel thus you know if the order is payed for or not? But Magento should first save the order to the DB and then process payment, if the order isn't saved payment wont process.
For the order not saving and no emails issues:
1.9 uses formkeys a lot throughout the template where 1.7 doesn't. Formkeys are unique numbers added to hidden fields in forms. Here is some info about what formkeys are and why they should be used: http://code.tutsplus.com/tutorials/secure-your-forms-with-form-keys--net-4753
For instance, a lot of controllers are now starting with this
if (!$this->_validateFormKey()) {
$this->_redirect('*/*');
return;
}
This is where most migrations from 1.7 to 1.9 go wrong.
My suggestion, put the default 1.9 RWD template on and see if the problem still persist. It it doesn't you are probabbly missing some formkeys somewhere in your template.
You can get these keys by the follow 2 methods:
Proper way trough layout and block injecting
Add this to layout xml
<layout version="0.1.0">
<default>
<block name="formkey" type="core/template" template="core/formkey.phtml" />
</default>
</layout>
add this in the forms where you need the key
<?php echo $this->getBlockHtml('formkey') ?>
Quick and dirty way
<input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />

How to add logout button to my page in Joomla

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; ?>

How to create link to go to shopping cart

I have the following href on a page /example/index.php that I want to take me to my magento shopping cart:
href="/example/catalog/index.php/checkout/cart/"
However, it always redirects to /example/catalog/
When I am on /example/catalog/ and I trigger the same href it goes to the correct page but not from my main page.
Can someone please explain how to fix this?
Is your Magento installation inside /example/catalog/?
If yes, then you can
href="<?php echo $this->getUrl('checkout/cart') ?>"

How to edit footer part in magento framework?

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.

Resources