This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php //Wordpress: Get theme directory.php ?> | |
| <?php echo get_template_directory_uri(); ?> | |
| How to use: | |
| <link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/images/favicon.ico" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // That should start up mysql without the need for a root password. Once in, type | |
| use mysql | |
| UPDATE mysql.user SET password=PASSWORD('newpass') WHERE user='root'; | |
| FLUSH PRIVILEGES; | |
| exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SET FOREIGN_KEY_CHECKS = 0; | |
| TRUNCATE TABLE `catalog_product_bundle_option`; | |
| TRUNCATE TABLE `catalog_product_bundle_option_value`; | |
| TRUNCATE TABLE `catalog_product_bundle_selection`; | |
| TRUNCATE TABLE `catalog_product_entity_datetime`; | |
| TRUNCATE TABLE `catalog_product_entity_decimal`; | |
| TRUNCATE TABLE `catalog_product_entity_gallery`; | |
| TRUNCATE TABLE `catalog_product_entity_int`; | |
| TRUNCATE TABLE `catalog_product_entity_media_gallery`; | |
| TRUNCATE TABLE `catalog_product_entity_media_gallery_value`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| There is a requirement of my client to import bulk category, So to solve this we created this export import extension. | |
| To install this download extension from link below unzip files paste both app and skin folder to your magento folder its will ask for over writing click ok, clear your var/cache folder login to your admin panel on top you will see MageWorks category import/export options | |
| =========EXTENSION============= | |
| SOURCE: http://www.magentoworks.net/importexport-magento-category-extension |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ### Responsive Max_319px ### */ | |
| @media only screen and (max-width: 319px) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // add this within functions.php | |
| function comments_time_ago( $type = 'comment' ) { | |
| $d = 'comment' == $type ? 'get_comment_time' : 'get_post_time'; | |
| return human_time_diff($d('U'), current_time('timestamp')) . " " . __('ago'); | |
| } | |
| //to show comment time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SOURCE: http://wordpress.stackexchange.com/questions/9775/how-to-edit-a-user-profile-on-the-front-end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //Get number of items in cart | |
| $totalItemsInCart = Mage::helper('checkout/cart')->getItemsCount(); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $this->helper('customer')->isLoggedIn() | |
| ?> |
OlderNewer