This file contains hidden or 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 | |
require_once '../app/Mage.php'; | |
umask(); Mage::app('default'); | |
$_manufacturers = file('import.txt'); | |
$_attribute = Mage::getModel('eav/entity_attribute')->loadByCode('catalog_product','manufacturer'); | |
$manufacturers = array('value'=> array(),'order'=> array(),'delete'=> array()); | |
$i = 0; |
This file contains hidden or 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 | |
ini_set('error_reporting', E_ALL); | |
// Location of Mage.php relative to current script | |
include_once 'app/Mage.php'; | |
Mage::app(); | |
// Location of CSV relative to file system root | |
$updates_file="/magento/var/import/sku2sku.csv"; |
This file contains hidden or 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
<section class="testimonial1 angle-bigarrow"> | |
<div class="row"> | |
<div class="small-12 column"> | |
<ul class="grid-1 wow fadeInUp"> | |
{% for block in section.blocks %} | |
<li {{ block.shopify_attributes }}> | |
<div class="testimonial-inner"> | |
<img src="{{ block.settings.image | img_url: '150x150' }}" alt="slider" /> | |
<h5>{{ block.settings.testimonial_author }}</h5> | |
<p>{{ block.settings.testimonial_desc }}</p> |
This file contains hidden or 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
<div class="medium-6 columns"> | |
<div class="content-wrap"> | |
<h3><span class="subheading">Learn 'How to' with our</span>{{ section.settings.video_title }}</h3> | |
<p>{{ section.settings.video_sub }}</p> | |
<a data-fancybox href="https://www.youtube.com/watch?v={{ section.settings.video_code }}" class="button">View Video</a> | |
</div> | |
</div> | |
<div class="medium-6 columns"> | |
<a data-fancybox class="image-wrap" href="https://www.youtube.com/watch?v={{ section.settings.video_code }}"> | |
<img class="play-button" src="//cdn.shopify.com/s/files/1/2602/4064/t/2/assets/play-button.png"> |
This file contains hidden or 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
{ | |
"name": "Video & Testimonial", | |
"max_blocks": 5, | |
"settings": [ | |
{ | |
"id": "video_title", | |
"type": "text", | |
"label": "Heading", | |
"default": "Learn 'How to' with our video" | |
}, |
This file contains hidden or 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
{% comment %}{% for option in product.options %} | |
{% if option == 'Weight' %} | |
{% assign index = forloop.index0 %} | |
{% for variant in product.variants %} | |
{{ variant.options[index] }} | |
{% endfor %} | |
{% endif %} | |
{% endfor %}{% endcomment %} |
This file contains hidden or 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
{% for post in site.posts limit:1 %} | |
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2> | |
{{ post.content | strip_html | truncatehtml | truncatewords: 40 }} | |
{% endfor %} | |
{% for post in site.posts offset:1 limit:4 %} | |
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3> |
This file contains hidden or 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 | |
use Magento\Framework\App\Bootstrap; | |
include('app/bootstrap.php'); // Update as required, this line will work if placed in the Magento Root Directory | |
$bootstrap = Bootstrap::create(BP, $_SERVER); | |
$objectManager = $bootstrap->getObjectManager(); | |
?><div style='top:45%; position:absolute; width:75%; text-align:center; color:#666; font-weight:bold; font-size:1.8em; '><?php | |
try{ |
This file contains hidden or 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 | |
use Magento\Framework\App\Bootstrap; | |
include('app/bootstrap.php'); // Update as required, this line will work if placed in the Magento Root Directory | |
$bootstrap = Bootstrap::create(BP, $_SERVER); | |
$objectManager = $bootstrap->getObjectManager(); | |
$params = $_SERVER; | |
$bootstrap = Bootstrap::create(BP, $params); |
This file contains hidden or 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
# Various IDE & OS files that should never be committed | |
.DS_Store | |
*.swp | |
*.lock | |
__MACOSX | |
.idea | |
/nbproject/* | |
.project | |
.buildpath | |
.thumbs |