Skip to content

Instantly share code, notes, and snippets.

View cristianstan's full-sized avatar
🎯
Focusing

Cristian Stan cristianstan

🎯
Focusing
View GitHub Profile
@cristianstan
cristianstan / CSS: Fancy box-shadow
Created September 11, 2013 13:32
CSS: Fancy box-shadow (Slick effects with CSS3 box-shadow)
http://www.red-team-design.com/wp-content/uploads/2011/04/css3-box-shadow.html
http://www.paulund.co.uk/creating-different-css3-box-shadows-effects
@cristianstan
cristianstan / jQuery: Add class onClick jQuery
Created September 14, 2013 14:27
jQuery: Add class onClick jQuery
jQuery(".block.sidebar-nav-left.codnitiveSidenavLeft").click(function () {
jQuery('.block.sidebar-nav-left.codnitiveSidenavLeft').addClass("dropdownKategorie");
});
@cristianstan
cristianstan / Magento: Export Orders
Created November 20, 2013 21:41
Magento: Export Orders
http://www.magentocommerce.com/magento-connect/blue-jalappeno-order-export-7914.html
@cristianstan
cristianstan / Wamp: Maximum execution time of 300 seconds exceeded
Created December 6, 2013 10:00
Wamp: Maximum execution time of 300 seconds exceeded
Wamp: Maximum execution time of 300 seconds exceeded
Find:
post_max_size = 8M
upload_max_filesize = 2M
max_execution_time = 30
max_input_time = 60
memory_limit = 8M
@cristianstan
cristianstan / Magento:XML: Remove Footer links.xml
Created February 26, 2014 09:50
Magento:XML: Remove Footer links
@cristianstan
cristianstan / Magento: Limit number of products shown on homepage.php
Created February 26, 2014 12:07
Magento: Limit number of products shown on homepage
<?php //Magento: Limit number of products shown on homepage, list.phtml ?>
1) app\design\frontend\default\<your theme>\template\catalog\product
copy list.phtml and save as list_new.phtml
2) <?php //Now open list_new.phtml and search '' after ending the if loop insert this code ?>
<?php if($i<=4): // for 4 product?>
3) <?php //Now open list_new.phtml and search '' after ending the if loop insert this code ?>
<?php endif // for 4 product?>
@cristianstan
cristianstan / Wordpress: Get theme directory.php
Created February 28, 2014 08:49
Wordpress: Get theme directory
<?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" />
@cristianstan
cristianstan / MySql: Change mysql user password using ssh.sql
Created February 28, 2014 21:22
MySql: Change mysql user password using ssh
// 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
@cristianstan
cristianstan / Magento: Remove all products.sql
Created March 3, 2014 11:27
Magento: Remove all products
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`;
@cristianstan
cristianstan / Magento: Remove all categories.sql
Created March 3, 2014 11:28
Magento: Remove all categories
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE `catalog_category_entity`;
TRUNCATE TABLE `catalog_category_entity_datetime`;
TRUNCATE TABLE `catalog_category_entity_decimal`;
TRUNCATE TABLE `catalog_category_entity_int`;
TRUNCATE TABLE `catalog_category_entity_text`;
TRUNCATE TABLE `catalog_category_entity_varchar`;
TRUNCATE TABLE `catalog_category_product`;
TRUNCATE TABLE `catalog_category_product_index`;