by Shashi Dhar Kumar | Nov 27, 2020 | Magento, Programming
yourdomain.com/sales/guest/form/ – change yourdomain.com with your domain name Customer can get their order information after providing the following details according to the specific order: 1) Order ID2) Billing Last Name3) Find Order By (Dropdown Value as...
by Shashi Dhar Kumar | Aug 6, 2018 | CodeIgniter, HTACCESS, Magento, Open-Source, PHP, Programming, WordPress
How to group group Security for web application using htaccess? Group Security Headers htaccess X-XSS-Protection sets the configuration for the cross-site scripting filters built into most browsers. The best configuration is “X-XSS-Protection: 1;...
by Shashi Dhar Kumar | Oct 3, 2017 | Magento, Open-Source, PHP, Programming
Remove decimal value product price Magento Price of product is : 135.00USD => 135USD How to remove decimal value from product price in magento? In order to remove decimal digits in price of product magento, we need to custom some code :Go to this file :...
by Shashi Dhar Kumar | Sep 3, 2017 | CakePHP, PHP, Programming
How to redirect from non-www to www in CakePHP? Put the following code into .htaccess in main directory RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} !^www\..+$ [NC] RewriteCond %{HTTP_HOST} !=localhost [NC] RewriteCond %{HTTP_HOST} !=127.0.0.1 RewriteRule ^...
by Shashi Dhar Kumar | Aug 3, 2017 | Magento, Open-Source, Programming
As a working consultant on Magento Project I come across that different product type to have different product attributes. This means that every product will have more than 20 options and sometimes all option don’t apply to certain products. For instance a projector...
by Shashi Dhar Kumar | Aug 10, 2015 | Magento, Open-Source, PHP, Programming
Here is the example code by which you can get last order details into mangento of using email id. $_customer = Mage::getModel(‘customer/customer’); $_customer->loadByEmail(‘demo@demo.com’); $orders =...