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
INSERT INTO review VALUES(640,'2015-03-24 19:52:37',1,125,1); | |
SELECT * FROM reviews; | |
SELECT * FROM review_detail WHERE review_id = 640; |
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
git reset --hard 387a190 | |
git push origin master -f | |
(-f = forced) |
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
<reference name="head"> | |
<block type="core/text" name="google.font.muli"> | |
<action method="setText"> | |
<text> | |
<![CDATA[<link href='//fonts.googleapis.com/css?family=Muli' rel='stylesheet' type='text/css'>]]> | |
</text> | |
</action> | |
</block> | |
</reference> |
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
use my_database; | |
select * from core_config_data where path like '%base%url%'; | |
update core_config_data set value = 'http://domainname/' where path = 'web/unsecure/base_url'; | |
update core_config_data set value = 'http://domainname/' where path = 'web/secure/base_url'; |
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
<reference name="footer"> | |
<block type="core/text" name="facebook.widget"> | |
<action method="setText"> | |
<text> | |
<![CDATA[<div class='fb-page' data-href='https://www.facebook.com/lovelly.se' data-width='280' data-height='240' data-hide-cover='false' data-show-facepile='true' data-show-posts='false'><div class='fb-xfbml-parse-ignore'><blockquote cite='https://www.facebook.com/lovelly.se'><a href='https://www.facebook.com/lovelly.se'>LOVeLLY</a></blockquote></div></div>]]> | |
</text> | |
</action> | |
</block> | |
</reference> |
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
#goes back to old commit and remove files from new commit | |
git reset --hard hte_hash | |
git push origin master --force |
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
git status | grep deleted | awk '{print $3}' | |
Now that we have our complete list of deleted files, we can 'git rm' them: | |
git rm `git status | grep deleted | awk '{print $3}'` |
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 | |
$baseCurrencyCode = Mage::app()->getStore()->getBaseCurrencyCode(); | |
$currentCurrencyCode = Mage::app()->getStore()->getCurrentCurrencyCode(); | |
$currencySpecificAmount = Mage::helper('directory')->currencyConvert($baseAmount, $currentCurrencyCode, $baseCurrencyCode); |
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
$theId = Mage::getModel('catalog/product_type_configurable')->getConfigurableAttributeCollection($product)->getColumnValues('attribute_id'); | |
//$childProducts = Mage::getModel('catalog/product_type_configurable')->getUsedProducts(null, $product); //$attributeIds instead of null | |
//$childProducts = $product->getTypeInstance()->getUsedProducts(); |
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 | |
$installer = $this; | |
$installer->startSetup(); | |
$cdonFeedTable = $installer->getTable('nwtcdon/feed'); | |
// Table 'nwtcdon/feed' | |
if (!$installer->getConnection()->isTableExists($cdonFeedTable)) { |