Skip to content

Instantly share code, notes, and snippets.

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

Dimitris Stoikidis St0iK

☘️
🇬🇷
View GitHub Profile
#! /bin/sh
### BEGIN INIT INFO
# Provides: mailcatcher
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@St0iK
St0iK / gist:a832434a1f9e07d2436801daa670277c
Created July 12, 2016 22:06
How to Create a Template Block in Magento 2
https://mageinferno.com/blog/how-create-template-block-magento-2
@St0iK
St0iK / gist:bfd4c0644725b341fe974cbc1d3241c5
Created July 12, 2016 22:04
Magento2: How to load product by id [duplicate]
http://magento.stackexchange.com/questions/94851/magento2-how-to-load-product-by-id/94853
http://magento.stackexchange.com/questions/91997/how-to-retrieve-product-information-in-magento-2/113038#113038
echo $this->getLayout()->createBlock("Magento\Cms\Block\Widget\Page\Link")->setAnchorText("new_products")->setTitle("5")->setTemplate("widget/link/link_block.phtml")->setPageId("3")->toHtml();
$feeds_importer = new stdClass();
$feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */
$feeds_importer->api_version = 1;
$feeds_importer->id = 'price_updater_';
$feeds_importer->config = array(
'name' => 'Price Updater ',
'description' => '',
'fetcher' => array(
'plugin_key' => 'FeedsFileFetcher',
'config' => array(
/**
* metricSuffix
*
* Formats a javascript number with a Metric Prefix like 1.5K, 1M, 1G
*/
App.metricSuffix = {
ranges: [
{ divider: 1e18 , suffix: 'P' },
{ divider: 1e15 , suffix: 'E' },
{ divider: 1e12 , suffix: 'T' },
Shopping Bag ([vw:cart_items]) {"url":"menutoken\/56f0117304277","expanded":true,"options":{"attributes":{"class":["shopping-bag-link"]},"menu_token_link_path":"cart","menu_token_data":[],"menu_token_options":{"clear":0},"alter":true},"weight":"-50"}
-Shopping Cart {"url":"<block>","options":{"attributes":{"class":["shopping-bag-link"]},"alter":true,"unaltered_hidden":0,"block":"commerce_cart-cart"},"weight":"-50"}
<?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
app/design/frontend/default/blank/template/bundle/catalog/product/view/type/bundle/option/select.phtml
{
"auto_complete": true,
"auto_indent": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/facebook-color-scheme-master/Facebook.tmTheme",
"default_encoding": "UTF-8",
"detect_indentation": true,
"draw_indent_guides": true,
"draw_white_space": true,