Skip to content

Instantly share code, notes, and snippets.

View St0iK's full-sized avatar
☘️
🇬🇷

Dimitris Stoikidis St0iK

☘️
🇬🇷
View GitHub Profile
<?php
/**
* Implementation of hook_views_pre_render()
*
* @param view $view
*/
function vw_product_listing_sort_views_pre_render(&$view) {
ORDER SUMMARY
SHIPPING ADDRESS
[message:message-commerce-order:commerce-customer-shipping:commerce-customer-address:name_line]
[message:message-commerce-order:commerce-customer-shipping:commerce_customer_address]
ORDER ID ORER DATE ORDER STATUS
[message:message-commerce-order:order-id] [message:message-commerce-order:created] [message:message-commerce-order:status-title]
$view = new view();
$view->name = 'email_order_summary';
$view->description = 'Cart line item summary displayed during checkout.';
$view->tag = 'commerce';
$view->base_table = 'commerce_order';
$view->human_name = 'Email Order summary';
$view->core = 0;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
@St0iK
St0iK / sublime-text-3-setup.md
Last active September 12, 2015 16:15 — forked from ijy/sublime-text-3-setup.md
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
<?php
/**
* Implementation of hook_views_post_execute()
*
* @param view $view
*/
function vw_product_listing_sort_views_post_execute(&$view) {
// Check that we are on the correct View
<?php
class Creode_Nothimport_Model_Converter extends Mage_Core_Model_Abstract
{
/** Defintion Data */
private $_definitionConfigurableSku;
private $_definitionProductAttributes;
private $_definitionCustomOptions;
private $_definitionAdditionalProducts;
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
@St0iK
St0iK / head.php
Created September 22, 2015 10:46
Securing Magmi UI access
function authenticate($username=”“,$password=”“){
require "../../app/Mage.php";
Mage::app('default');
$user = Mage::getModel('admin/user');
$user->login($username,$password);
$result = $user->getId();
return $result ? true : false;
}
if (!isset($_SERVER[‘PHP_AUTH_USER’])) {
"AccountNumber","AccountName","CountryCode","TransactionEmail","AddressLine1","AddressLine2","City","Country","PostCode","ContactFirstName","ContactLastName","ContactTelephoneSubscriberNumber","ContactEmailAddress"
"WEB58156","Dimitris Stoikidis","GB","dimitris.stoikidis+10@creode.co.uk","14 Westpoint","","Leeds","United Kingdom","LS14JJ","Dimitris","Stoikidis","555555","dimitris.stoikidis+10@creode.co.uk"
"WEB96157","Test test","GB","asdasdasd@as.com","12312312","","Leeds","United Kingdom","123","Test","test","123","asdasdasd@as.com"
<?php
/**
* @file
* Custom views handler definition.
*
* Place this code in
* /sites/all/[custom_module_name]/includes/views_handler_total_discounted_field.inc
*/