Hello
Recently I faced problems while upgrade magento 1.9.3.1 to 1.9.3.3 community Edition.
I saw that missing formkey in every page. So it create problems. You have to simply put this one line code . Add in all of your custom checkout templates in forms next line
Recently I faced problems while upgrade magento 1.9.3.1 to 1.9.3.3 community Edition.
I saw that missing formkey in every page. So it create problems. You have to simply put this one line code . Add in all of your custom checkout templates in forms next line
<?php echo $this->getBlockHtml('formkey') ?>
You have to check these pages :
Shipping cart form:
app/design/frontend/<package>/<theme>/template/checkout/cart/shipping.phtml
Multishipping billing checkout form:
app/design/frontend/<package>/<theme>/template/checkout/multishipping/billing.phtml
Multishipping shipping checkout form:
app/design/frontend/<package>/<theme>/template/checkout/multishipping/shipping.phtml
Billing checkout form:
app/design/frontend/<package>/<theme>/template/checkout/onepage/billing.phtml
Shipping checkout form:
app/design/frontend/<package>/<theme>/template/checkout/onepage/shipping.phtml
Payment checkout form:
app/design/frontend/<package>/<theme>/template/checkout/onepage/payment.phtml
Shipping method checkout form:
app/design/frontend/<package>/<theme>/template/checkout/onepage/shipping_method.phtml
Persistent Billing checkout form:
app/design/frontend/<package>/<theme>/template/persistent/checkout/onepage/billing.phtml
Also do this for "base" folder.
On top of that the following JS files have been updated to be compatible with that change:
js/varien/payment.js
skin/frontend/base/default/js/opcheckout.js
You have to do:
If you're using with custom versions of those templates you'll have to update them by adding the following code into them:
<?php echo $this->getBlockHtml('formkey') ?>
If you're using a 3rd party checkout module, you'll have to get in touch with them so they can provide an updated version of their module.
Also if you have custom versions of the previously listed JS files, you'll have to update them too.
IMPORTANT NOTE : the checkout formkey validation can be changed in the backend via a new config field under System > Configuration > Admin > Security > Enable Form Key Validation On Checkout . THIS IS NOT ENABLED BY DEFAULT so you'll have to enable it to benefit from this security feature!!! Note that you'll get a notice in the backend if it's not enabled.
No comments:
Post a Comment