Magento: Mini Login Form in header section

Let’s open app/design/frontend/your_package/your_theme/layout/customer.xml  and just add the following line after Like: Now open app/design/frontend/your_package/Your_theme/template/page/html/header.phtml and add the following lines where yoy want to display login button: And, lastly, open app/design/frontend/your_package/your_theme/template/customer/form/mini.login.phtml and modify the file according the following file: Note: In the customer.xml I am using core/template block instead of customer/form_login. Read more…

Magento: Delete all orders

Run the below Sql Script to your database for delete all orders For Particular orders From  Admin=>Sales=>Orders Note down your test orders ids for example 100000001,100000002,100000003 Now create a custom php file in magento root directory and name it: remove_orders.php Copy and paste the following code in that file. Note: Read more…

Magento: Scroll To Top functionality

Scroll To Top functionality in Magento Open your header.phtml file and write below code.. ——— Extra Code ——— Note the use of window.onload (when images are loaded…which occupy height) rather than document.ready To be technically correct, you need to subtract the window’s height, but the above works: To scroll to Read more…