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 | 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 =...
by Shashi Dhar Kumar | Aug 1, 2015 | Open-Source, Programming, Woo-commerce, WordPress
To use WooCommerce’s price in your custom theme template open the template file and use the following code and see the magic. Example <?php global $post, $product; ?> <span itemprop=”price” class=”price”><?php echo...
by Shashi Dhar Kumar | Jul 20, 2015 | Open-Source, Programming, Woo-commerce, WordPress
What are hooks? Hooks are helpful in WordPress which allow you to manipulate code without editing core files. It is used extensively used throughout WordPress and WooCommerce by developers. Two types of hook: actions and filters. Action Hooks allow you to insert...