Install Package Control for easy package management.
- Open the console with
Ctrl+` - Paste in the following:
| <?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 */ |
| <?php | |
| $wrapper = entity_metadata_wrapper('commerce_order', $order); | |
| // if(isset($wrapper->commerce_customer_shipping->commerce_customer_address)){ | |
| $commerce_order_total->currency_code->value(); | |
| // order total object | |
| $order_total = $order_wrapper->commerce_order_total->value(); | |
| // subtotal without vat |
Install Package Control for easy package management.
Ctrl+`
| <?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; |
| 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’])) { |
| <?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 |
| "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" |