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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>Remove Magento's orphan images web console</title> | |
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'> | |
<link href='https://fonts.googleapis.com/css?family=Inconsolata:400,700&subset=latin,latin-ext' rel='stylesheet' | |
type='text/css'> | |
<style type="text/css"> |
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
#LIMPIANDO DATETIME | |
#borramos los valores de atributo de la tienda 1 (o la que comparta valores con el admin / default) | |
#porque los valores seran los de por defecto. y los atributos cuyo valor sea NULL | |
DELETE FROM catalog_product_entity_datetime WHERE store_id = 1 OR `value` IS NULL; | |
DELETE otherStores | |
FROM catalog_product_entity_datetime as defaultStore | |
INNER JOIN catalog_product_entity_datetime as otherStores ON (defaultStore.attribute_id = otherStores.attribute_id AND defaultStore.entity_id = otherStores.entity_id) | |
WHERE | |
defaultStore.store_id = 0 |
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
#Por ejemplo para importar a Apple Numbers | |
SELECT * | |
FROM orders | |
INTO OUTFILE '/tmp/orders.csv' | |
FIELDS TERMINATED BY ',' | |
ENCLOSED BY '"' | |
LINES TERMINATED BY '\n' |
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
#SELECT que nos da las labels de productos configurables que no estan usando el valor por defecto (traducciones) establecido para este atributo / store view en el admin. | |
SELECT * FROM catalog_product_super_attribute_label as sal | |
LEFT JOIN catalog_product_super_attribute as sa USING (product_super_attribute_id) | |
LEFT JOIN eav_attribute_label as al ON (sal.store_id = al.store_id AND sa.attribute_id = al.attribute_id) | |
WHERE sal.store_id != 0 | |
AND sal.value != al.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
#SQL para obtener los productos que hay en stock en cada website: | |
SELECT w.name as site, count(`product_id`) as productos_en_stock FROM cataloginventory_stock_status AS s LEFT JOIN core_website as w USING(website_id) WHERE stock_status = 1 GROUP BY website_id |
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
tell application "OmniFocus" | |
try | |
set dialogReply to (display dialog ¬ | |
"A quien delegas?" with title ¬ | |
"Nombred del contacto a quien delegas..." default answer ¬ | |
"Contacto en mi AddressBook" buttons {"Preparar Mail", "Delegar"} default button 2) | |
set delegateTo to text returned of dialogReply |
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 | |
/** | |
* todas las categorías de nivel 4 las ponemos a anchor | |
* por ejemplo para que tengan "filtros" (layered nav) | |
*/ | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
// Load Up Magento Core | |
define('MAGENTO', realpath('')); |
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 @storeId = 10; | |
(SELECT subscriber_email as email FROM newsletter_subscriber WHERE store_id = @storeId) | |
UNION DISTINCT | |
(SELECT customer_email FROM sales_flat_order WHERE store_id = @storeId); |
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
#SELECT special_from_date and special_to_date 77 y 78 | |
SELECT * FROM eav_attribute WHERE attribute_code LIKE 'special%date' AND entity_type_id=4; | |
#SELECT el atributo special_price | |
SELECT attribute_id FROM eav_attribute WHERE attribute_code = 'special_price' AND entity_type_id=4; |
NewerOlder