Skip to content

Instantly share code, notes, and snippets.

View andyhoman's full-sized avatar

Andy Homan andyhoman

View GitHub Profile
array(3) {
["EmailAddress"]=>
string(17) "pmtest11@test.com"
["Name"]=>
string(10) "Test PM 11"
["CustomFields"]=>
array(7) {
[0]=>
object(stdClass)#34 (2) {
array(3) { ["EmailAddress"]=> string(17) "pmtest11@test.com" ["Name"]=> string(10) "Test PM 11" ["CustomFields"]=> array(7) { [0]=> object(stdClass)#34 (2) { ["Key"]=> string(11) "DateCreated" ["Value"]=> string(10) "2014/11/01" } [1]=> object(stdClass)#55 (2) { ["Key"]=> string(6) "Mobile" ["Value"]=> string(10) "0412851698" } [2]=> object(stdClass)#56 (2) { ["Key"]=> string(12) "Interestedin" ["Value"]=> string(17) "Studio||Workshops" } [3]=> object(stdClass)#57 (2) { ["Key"]=> string(7) "Address" ["Value"]=> string(13) "87 Goodlet St" } [4]=> object(stdClass)#58 (2) { ["Key"]=> string(6) "Suburb" ["Value"]=> string(11) "Surry Hills" } [5]=> object(stdClass)#59 (2) { ["Key"]=> string(5) "State" ["Value"]=> string(3) "NSW" } [6]=> object(stdClass)#60 (2) { ["Key"]=> string(8) "Postcode" ["Value"]=> string(4) "2010" } } }
{% comment %}
Source: https://gist.github.com/carolineschnapp/9122054
If you are not on a collection page, do define which collection to use in the order form.
Use the following assign statement, replace 'your-collection-handle-here' with your collection handle.
{% assign collection = collections.your-collection-handle-here %}
Use the assign statement outside of this comment block at the top of your template.
{% endcomment %}
{% paginate collection.products by 100 %}
<?php
/**
* Custom configuration bootsrtap file for ExpressionEngine
*
* Place config.php in your site root
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/config.php
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/database.php
* If you have moved your site root you'll need to update the require_once path
*
@andyhoman
andyhoman / Email Boilerplate
Last active December 13, 2015 22:29
My HTML email boilerplate. Generated by combining the following boilerplates: http://www.emailology.org/ and http://htmlemailboilerplate.com/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Your Message Subject or Title</title>
<style type="text/css">
#outlook a {padding:0;}
body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}
body, #body_style {
@andyhoman
andyhoman / auto-populate-matrix
Created January 28, 2013 13:50
Automatically populate a matrix field by injecting jQuery into the fields instructions.
<script>
$(function() {
// Make sure that this is the publish form
if (!EE.publish)
return;
// Only proceed when creating a new entry
var entryId = $('#publishForm').find('input[name="entry_id"]').val();
if (entryId != 0)