This file contains 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
CREATE TABLE IF NOT EXISTS `log_visitor` ( | |
`visitor_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Visitor ID', | |
`session_id` varchar(64) DEFAULT NULL COMMENT 'Session ID', | |
`first_visit_at` timestamp NULL DEFAULT NULL COMMENT 'First Visit Time', | |
`last_visit_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Last Visit Time', | |
`last_url_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Last URL ID', | |
`store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID', | |
PRIMARY KEY (`visitor_id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Log Visitors Table' AUTO_INCREMENT=1 ; |
This file contains 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
'validate-no-html-tags' => 'HTML tags are not allowed' | |
'validate-select' => 'Please select an option.' | |
'required-entry' => 'This is a required field.' | |
'validate-number' => 'Please enter a valid number in this field.' | |
'validate-number-range' => 'The value is not within the specified range.' | |
'validate-digits' => 'Please use numbers only in this field. Please avoid spaces or other characters such as dots or commas.' | |
'validate-digits-range' => 'The value is not within the specified range.' | |
'validate-alpha' => 'Please use letters only (a-z or A-Z) in this field.' | |
'validate-code' => 'Please use only letters (a-z), numbers (0-9) or underscore(_) in this field, first character should be a letter.' | |
'validate-alphanum' => 'Please use only letters (a-z or A-Z) or numbers (0-9) only in this field. No spaces or other characters are allowed.' |
This file contains 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 | |
$user_agent = getenv("HTTP_USER_AGENT"); | |
/*** Après on fait ce qu'on souhaite de l'information : | |
* affichage, stockage dans une base de données ... | |
**/ | |
echo $user_agent; |
This file contains 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
Element.show('loading-mask'); | |
Element.hide('loading-mask'); |
This file contains 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
subversion > Copy > Copy to | |
remote folder X | |
skip selected folder X | |
browse | |
magento/tags créa tu tag | |
description + button copy |
This file contains 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
Here you have a list with options you can use, with examples: | |
Equals: eq | |
$_products->addAttributeToFilter('status', array('eq' => 1)); | |
Not Equals – neq | |
$_products->addAttributeToFilter('sku', array('neq' => 'spiderman')); | |
Contains – Like – like |
This file contains 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 | |
error_reporting(E_ALL | E_STRICT); | |
define('MAGENTO_ROOT', getcwd()); | |
$mageFilename = MAGENTO_ROOT . '/app/Mage.php'; | |
require_once $mageFilename; | |
ini_set('display_errors', 1); | |
define('STORE_ID', 3); |
This file contains 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 | |
error_reporting(E_ALL | E_STRICT); | |
define('MAGENTO_ROOT', getcwd()); | |
$mageFilename = MAGENTO_ROOT . '/app/Mage.php'; | |
require_once $mageFilename; | |
ini_set('display_errors', 1); | |
define('STORE_ID', 3); | |
Mage::app()->setCurrentStore(3); |
This file contains 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 | |
error_reporting(E_ALL | E_STRICT); | |
define('MAGENTO_ROOT', getcwd()); | |
$mageFilename = MAGENTO_ROOT . '/app/Mage.php'; | |
require_once $mageFilename; | |
ini_set('display_errors', 1); | |
define('STORE_ID', 3); | |
Mage::app()->setCurrentStore(3); |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 2. in line 1.
This file contains 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
sku;special_price;special_from_date;special_to_date | |
BALA-0007;14,9;2016-06-22;2016-08-02 |