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...
by Shashi Dhar Kumar | Mar 13, 2015 | Programming, WordPress
The WordPress upgrade system is improved itself from last version. However, there are some steps you can take care to ensure that your upgrades doesn’t affect anything. First and foremost, upgrades and updates should be done during your off hours i.e for off...
by Shashi Dhar Kumar | Mar 7, 2015 | Magento, Programming
The easiest way to remove any link from the My Account panel in Magento is to first copy: app/design/frontend/base/default/template/customer/account/navigation.phtml to app/design/frontend/enterprise/YOURSITE/template/customer/account/navigation.phtml Open the file...
by Shashi Dhar Kumar | Dec 15, 2014 | Programming, WordPress
Copy and paste below and see the validation in working: <style type=”text/css”> .error { font-size: 12px; padding: 0 0 5px 0; color: #FF0000; } input.error, textarea.error { background: #FFD2D2; color:#000000; } </style> <?php function...
by Shashi Dhar Kumar | Dec 8, 2014 | Programming, WordPress
Copy and Paste following into your functions.php file and see the customized form <?php function po_custom_comment_fields($fields) { //define global variable global $post; //remove defaults fields here $fields[‘url’] = ”; //begin custom fields...