Skip to main content

Posts

Showing posts from April, 2018

Magento 1.9: Login / Registration form not working

I know that you already inserted the formkey, but I had the same problem and I discovered that I was using the formkey in the wrong way. 1 - Make sure that you use this code to insert the formkey: <? php echo $this -> getBlockHtml ( 'formkey' ); ?>   2 - The code should be right after the line: <form action=" <? php echo $this -> getPostActionUrl () ?> " method="post" id="login-form"> 3 - Make the change in the right files: app / design / frontend / base / default / template / customer / form / login . phtml app / design / frontend / base / default / template / customer / form / register . phtml   or, if you are using a custom theme: app / design / frontend / COMPANY / THEME / template / customer / form / login . phtml app / design / frontend / COMPANY / THEME / template / customer / form / register . phtml   Good luck :)

Magento 2: Adding new category attributes in Magento 2

 Text attribute in category To create new module in Magento 2 we need the following files: app/code/Atwix/CategoryAttribute/etc/ module . xml app/code/Atwix/CategoryAttribute/registration.php app/code/Atwix/CategoryAttribute/composer.json <? xml version= "1.0" ?> <!-- file: app/code/Atwix/CategoryAttribute/etc/module.xml --> < config xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation = "urn:magento:framework:Module/etc/module.xsd" > < module name = "Atwix_CategoryAttribute" setup_version = "1.0.0" /> </ config > <?php /* file: app/code/Atwix/CategoryAttribute/registration.php */ \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Atwix_CategoryAttribute' , __DIR__ ); { "name" : "atwix/categoryattribute" , "description" : ...

Magento2: How to install custom theme in magento 2

magento2 | _ app | _ design | _ frontend | _ Custom | _theme | _Magento_Theme | _templates | _root . phtml - Copy of Luma | _registration . php | _theme . xml     Your path for registration.php is app\design\frontend\Custom\theme\registration.php   <? php \Magento\Framework\Component\ComponentRegistrar :: register ( \Magento\Framework\Component\ComponentRegistrar :: THEME , 'frontend/Custom/theme' , __DIR__ );       app\design\frontend\Custom\theme\theme . xml   <theme xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation = "urn:magento:framework:Config/etc/theme.xsd" > <title> Custom Theme </title> <parent> Magento/luma </parent> <media> <preview_image> media/preview.jpg </preview_image> </media...