Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/
./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent
<?php | |
/* | |
* Create New Admin User | |
* @author Ivan Weiler, Inchoo <web@inchoo.net> | |
*/ | |
//define USERNAME, EMAIL and PASSWORD and uncomment(#) this 3 lines | |
#define('USERNAME','inchoo'); | |
#define('EMAIL','xyz@inchoo.net'); | |
#define('PASSWORD','inchoo555'); |
cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git |
<?php | |
require_once('app/Mage.php'); //Path to Magento | |
error_reporting(E_ALL); | |
ini_set("display_errors", 1); | |
umask(0); | |
Mage::app(); |
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`; |
If you wish to show product discount percent next to product price or somewhere on a product page, here’s how you do it. | |
Open app/design/frontend/yourpackage/yourtheme/template/catalog/product/price.phtml | |
Find: | |
<?php endif; /* if ($_finalPrice == $_price): */ ?> | |
Past above it: |
jQuery(document).ready(function() {; | |
if (getCookie('popup') == "") { | |
beginNewsletterForm(); | |
} | |
}); | |
function getCookie(cname) { | |
var name = cname + "="; | |
var ca = document.cookie.split(';'); | |
for(var i=0; i<ca.length; i++) { |
Iniciando: | |
TERMINAL SERVIDOR: | |
ssh root@10.1.1.202 | |
cd /var/www/html/sites/2015/projeto/ | |
git init | |
TERMINAL HOSPEDAGEM: | |
ssh projeto@projeto.com.br | |
mkdir projeto.git |
// insira o codigo abaixo para colocar os produtos sem estoque por ultimo na listagem de produtos do magento | |
// depois de | |
if ($attribute == 'price' && $storeId != 0) { | |
//no arquivo app/code/core/Mage/Catalog/Model/Resource/Product/Collection.php se a versão do Magento 1.7.0.0 + | |
//alteração | |
$this->getSelect()->joinLeft( | |
array('_inventory_table'=>$this->getTable('cataloginventory/stock_item')), |