sudo apt-get update && sudo apt-get install -y git wget unzip
git clone https://github.com/OpenMage/magento-mirror.git ./ ;
tar -xf compressed-magento-sample-data-1.9.1.0.tgz ;
cp -rv magento-sample-data-1.9.1.0/* ./ ;
| <?php | |
| /* | |
| Excel e export edilmiş configurable ürünlerden simple ürünler oluşturup beden özelliğine göre atayan kod parçası | |
| Excel Formatı: | |
| Conf ID | Beden 36 | Beden 38 ..... | Beden 54 | Renk Conf 1 | Renk Conf 2 | Renk Conf 3 | |
| */ | |
| ini_set('display_errors', '1'); | |
| error_reporting(E_ALL); | |
| include "app/Mage.php"; |
| <?php | |
| ini_set('memory_limit','4000M'); | |
| ini_set('max_execution_time','999999999'); | |
| $mageFilename = dirname(realpath(__FILE__)).'/app/Mage.php'; | |
| require_once $mageFilename; |
| /** | |
| * WordPress snippet | |
| * Admin page redirection | |
| * Put this inside theme setup function | |
| */ | |
| global $pagenow; | |
| if ( is_admin() && 'themes.php' == $pagenow && isset( $_GET['activated'] ) ) { |
sudo apt-get update && sudo apt-get install -y git wget unzip
git clone https://github.com/OpenMage/magento-mirror.git ./ ;
tar -xf compressed-magento-sample-data-1.9.1.0.tgz ;
cp -rv magento-sample-data-1.9.1.0/* ./ ;
| <?php | |
| //yontem 1 dropdown olarak getirir | |
| $args = array( | |
| 'show_option_all' => '', | |
| 'show_option_none' => '', | |
| 'option_none_value' => '-1', | |
| 'orderby' => 'ID', | |
| 'order' => 'ASC', | |
| 'show_count' => 0, | |
| 'hide_empty' => 1, |
| <?php | |
| /** | |
| * Create Shopping Cart Sales Rule with Specific Coupon Code Programmatically | |
| */ | |
| // All customer group ids | |
| $customerGroupIds = Mage::getModel('customer/group')->getCollection()->getAllIds(); | |
| // SalesRule Rule model | |
| $rule = Mage::getModel('salesrule/rule'); |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Yurtdışı Mağazalarımız</title> | |
| <link href='//fonts.googleapis.com/css?family=PT Sans:400,300,500,600,700' rel='stylesheet' type='text/css'> | |
| <link href="//fonts.googleapis.com/css?family=Playfair Display:200,200italic,300,300italic,400,400italic,500,500italic,600italic,600italic,700,700italic,800,800italic,900,900italic&subset=latin,cyrillic-ext,cyrillic,greek-ext,greek,vietnamese,latin-ext" rel="stylesheet" type="text/css" /> | |
| <script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCvJBm85qq8-jueHszBS4_9TdtgrHnO4yE" | |
| type="text/javascript"></script> |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
| <title>Google Maps</title> | |
| <script src="https://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize&key=AIzaSyCvJBm85qq8-jueHszBS4_9TdtgrHnO4yE"></script> | |
| </head> |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "io/ioutil" | |
| ) | |
| func main() { |
| package main | |
| import ( | |
| "database/sql" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "strconv" | |
| "sync" | |
| "time" |