Using product tags structured like data-{key}:{value}. This allows easy splitting and manipulation within liquid templates.
"data--apt:APT"
"data--color:Light Blue"
"data--color:Purple"
"data--sub-category:Decorative Pillows"
| { | |
| "assets": [ | |
| ], | |
| "content": { | |
| "description": { | |
| "value": "Sweat through the season in technical tees, shorts, and sweats for any activity." | |
| }, | |
| "name": { | |
| "value": "Shop Men" |
| <-- | |
| You need to add a select tag everywhere you loop through variants | |
| Basically, there has to be an option on the page for every variant | |
| You could loop through all of them at once and have one select tag but that might not work with the tabs / markup | |
| --> | |
| . | |
| . | |
| . | |
| {% if has_men_sizes > 0 %} |
| /* | |
| * AjaxChimp Lite | |
| * =================== | |
| * | |
| * Example Usage: | |
| * | |
| * var opts = { | |
| * onInit: function(){ console.log('I'm initialized!'); } | |
| * }; | |
| * |
| <!-- | |
| Strip the last embedded iframe from a Shopify product description using liquid. | |
| This is helpful if a store wants to use a custom video per product (without the img alt tag hack) | |
| Just use the 'embed video' button on the WYSIWYG editor and this code will take care of the rest. | |
| Place code in product.liquid | |
| This snippet will turn this - | |
| <p>Here's my description</p> | |
| <p><iframe src="https://youtube.com..." /></p> |
| // Option 1 | |
| $(body).on('click', function(){ | |
| console.log(this); // body | |
| }); | |
| // Option 2 | |
| function onClick(){ | |
| console.log(this); | |
| } |
git checkout -b myfeature-int
git rebase -i master myfeature-int
| var Thing = function(){ | |
| var _this = this; | |
| this.checkContext = function(){ | |
| console.group() | |
| console.log('Checking context.....'); | |
| console.log('this', this); // Outputs - Thing | |
| $(window).on('check-context', function(){ | |
| console.log('inside window listener callback without context binding'); |
This is a checklist and guideline to get you through the setup and of a magento (1.9.x) install on ec2. This guide is meant to be general, but was made while setting up Magento 1.9.1 on an EC2 instance running Ubuntu 14.04.2.
You'll need to make 2 different security groups, one for the EC2 instance and one for the RDS instance. Make sure to name them accordingly so you can remember which to apply to which instance.