Magento 1.9.2.2 cannot create account and login on frontend - magento

I'm using Firefox and I started to have a problem. I can't create new user in a Magento 1.9.2.2 in the frontend and also I can't login with a register user. In the backend I can create the user without problems.
This was not happening some time ago.
I tried these solutions and didn't work:
Add <?php echo $this->getBlockHtml('formkey') ?> to some files of my template.
Delete var/cache and var/session.
Change life cycle of the cookies.
Change domain name of the cookies.
Any idea? :(

If you cannot create a customer or login after applying patch SUPEE-6788 or upgrading to Magento 1.9.2.2 or later, this might be caused by missing form keys.
Make sure to add form keys to all of your (custom) template files:
In app/design/frontend/[package]/[theme]/template/customer/form/register.phtml and app/design/frontend/[package]/[theme]/template/persistent/customer/form/register.phtml
Add
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
after
<input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />

Related

Magento - Change the transactional email template used by a block in the CMS

I'm trying to add an additional contact form on my Magento website on a new CMS page. I'd like it to be different to the main contact form. I need it to use a different transactional email template. Here's what I've got so far, I just need to tell it to use a different template (probably in the {{block}} code in the CMS page.
On the CMS page I've added {{block type="core/template" name="contactForm" form_action="/contacts/index/post/" template="contacts/test.phtml"}} to call a template block.
I've created the contact/test.phtml template file and copied my existing contact form template. I've manually added a field, it looks like this:
<li class="fields">
<div class="field">
<label for="armadillo"><?php echo Mage::helper('contacts')->__('armadillo') ?></label>
<div class="input-box">
<input name="armadillo" id="armadillo" title="<?php echo Mage::helper('contacts')->__('armadillo') ?>" value="" class="input-text" type="text" />
</div>
</div>
</li>
I've gone to the System -> Transactional Emails menu and created a new template based on the Contact Us template (called armadilloTest). The template content looks like this:
Name: {{var data.name}}
E-mail: {{var data.email}}
Telephone: {{var data.telephone}}
Armadillo: {{var data.armadillo}}
Comment: {{var data.comment}}
If I send an email from both forms now, they use the same transactional email template, and I don't get the armadillo field. It works, but I'd like one form to use the new template.
If I go to System -> Configuration -> Contacts I can change which email template my contact forms uses. I can set it to my new armadillo template, but again this is applied to both forms and my old contact form starts sending me emails with a blank armadillo field.
There must be a way of setting the transactional email template in the {{block}} line in the CMS, but I can't find out what it is! Can you help please?

In Magento site ,My checkout button is broken

not sure why my magento site
all links broken, My check out button link showing me like this error
<form "="" getformkey="" varnishcache="" www.alphacateringequipment.com.au="" https:="" action="https://www.alphacateringequipment.com.au/checkout/cart/add/uenc/aHR0cHM6Ly93d3cuYWxwaGFjYXRlcmluZ2VxdWlwbWVudC5jb20uYXUvYmV2ZXJhZ2UvYWNjZXNzb3JpZXM,/product/3704/form_key/<esi:include src=">/" method="post" id="product_addtocart_form_3704">
<button onclick="productAddToCartForm_3704.submit()" class="form-button listing_cart-btn">ADD TO Cart</button>
</form>
and also my site drop down menu not working more
if any one know this
Please help me out.
thank you
Try below code.
<form name="text" getformkey="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" varnishcache="" www.alphacateringequipment.com.au="" https:="" action="https://www.alphacateringequipment.com.au/checkout/cart/add/uenc/aHR0cHM6Ly93d3cuYWxwaGFjYXRlcmluZ2VxdWlwbWVudC5jb20uYXUvYmV2ZXJhZ2UvYWNjZXNzb3JpZXM,/product/3704/form_key/<esi:include src=">/" method="post" id="product_addtocart_form_3704">
<button onclick="productAddToCartForm_3704.submit()" class="form-button listing_cart-btn">ADD TO Cart</button>
</form>
It will broken due to form key not passed by In Version of Magento.

Magento 1.91 CE - Customers Cant login

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

Magento multisite form submittin get cleared in end point action

I have a magento site with following domains.
http://www.site.eu/
http://www.site.it/
http://www.site.es/
http://www.site.fr/
http://www.site.de/
http://www.site.co.uk/
http://www.site.com/
I am trying to submit the email address for newsletter subscription. (Magento has this).
Following is showing newsletter subscription form's code
<form action="<?php echo $this->getFormActionUrl() ?>" method="post" id="newsletter-validate-detail">
<div class="form-subscribe">
<div class="input-box">
<input type="text" name="email" id="newsletter" title="<?php echo $this->__('Sign up for our newsletter') ?>" class="input-text required-entry validate-email" />
</div>
<button type="submit" title="<?php echo $this->__('Go') ?>" class="button"><span> <span><?php echo $this->__('Go') ?></span></span></button>
</div>
</form>
echo $this->getFormActionUrl() generate the action url with the https on it.
example:
following sites will have URL called https://www.site.eu/newsletter/subscriber/new/ Because Configuration I set base secure url as https://www.site.eu/
http://www.site.it/
http://www.site.es/
http://www.site.fr/
http://www.site.de/
Other sites will redirect to https with their own domain. These will work properly
http://www.site.com/ Redirect to https://www.site.com/
http://www.site.co.uk/ Redirect to https://www.site.co.uk/
If user click submit button within any of above site then the site will navigate to https://www.site.eu/newsletter/subscriber/new/ but without having any post data. So according to the situation I cannot access POST variables (email)
I believe I have explained the the problem properly. Please advice why is this happening? Any solutions come to your mind?
i think the problem is, you cannot post data from http to https? or on backend try use both secure & unsecure url with https

Add related products in Mobile Shoppe Magento theme

I try to add more products on the product page. but it seem like the theme I have chosen called "Mobile shoppe" does not support that feature. Is it any more like andvänt this theme that can direct me how to do.
In html code it says how it can give no clue to someone who is good at magento code.
<div class="no-display">
<input type="hidden" name="product" value="1"
<input type="hidden" name="related_product" id="related-products-field"
value="">
</div>
If I try to make it visible to display only one ID.

Resources