Skip to content

Instantly share code, notes, and snippets.

View MagePsycho's full-sized avatar

magepsycho MagePsycho

View GitHub Profile
@MagePsycho
MagePsycho / mage-db-repair-tool.rb
Created July 10, 2015 14:47
Magento DB Repair Tool Using CLI - Ruby + Mechanize
#!/usr/bin/env ruby
#
# Magento DB Repair tool using CLI
# Uses Ruby's Mechanize gem
#
# @author Raj KB <magepsycho@gmail.com>
# @website http://www.magepsycho.com
#
# Tested on Mac OS-X 10.X
<?php
/**
* Magento version/edition helper for determining the Magento BASE version (regardless of edition) and adds functions to check if Enterprise, Professional or Community are being run.
* Adds isMageCommunity(), isMageProfessional() and isMageEnterprise()
*
* @category TBT
* @package TBT_Rewards
* @author WDCA Sweet Tooth Team <contact@sweettoothhq.com>
*/
class TBT_Rewards_Helper_Version extends Mage_Core_Helper_Abstract {
<?php
/**
* Generates data with ready-to-edit CSV for magento translation
*
* A handy tool that generates CSV data for magento theme translation
* You can set the $mode to:
* a) either write that data to translate.csv at path you specify,
* b) or just to dump that data in browser for you to copy and use (default).
* In the write mode it appends new data to translate.csv thus you dont
@MagePsycho
MagePsycho / local.xml
Created September 23, 2013 10:06
Translation is not working for Breadcrumbs injected via layout update file. Refer below XML code:
<checkout_cart_index>
<reference name="breadcrumbs">
<action method="addCrumb">
<crumbName>home</crumbName>
<crumbInfo>
<label>Home</label>
<title>Home</title>
<link>/</link>
</crumbInfo>
</action>

Magento Code Snippets

Download extension manually using mage

./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name