Skip to content

Instantly share code, notes, and snippets.

View adpeate's full-sized avatar

Alan Peate adpeate

View GitHub Profile
@adpeate
adpeate / text2dropdown.php
Created June 4, 2019 15:18 — forked from scher200/text2dropdown.php
[Magento] Script that convert text attribute to dropdown attribute without losing values
<?php
//
// Magento Convert Attributes
// Author: Jeroen Schermer
// Original Author: Michele Marcucci
// Email: michele@simplicissimus.it
// Script to convert a old Magento text attribute to a new one in dropdown format (useful to be used in navigation layer)
//
// Modified by mechanicalgux:
// - automatic temporary attribute creation
@adpeate
adpeate / gw-gravity-forms-ajax-population.php
Last active April 28, 2017 09:39 — forked from spivurno/gw-gravity-forms-ajax-population.php
Gravity Wiz // Gravity Forms // AJAX Popluation
<?php
/**
* Gravity Wiz // Gravity Forms // AJAX Population
*
* Populate one or many fields from a remote data source (only .csv files are currently supported) based on the selected value of a field on the form.
*
* Example: You have multiple brands of lumber. The lumber comes in different sizes. You can store each lumber brand and its corresponding length, width, and height in a spreadsheet (csv format) and then populate this data into separate length, width and height fields on the form when a lumber brand is selectd from a drop down field on the form.
*
* @version 1.2
* @author David Smith <david@gravitywiz.com>. Modified by Alan Peate <alan@magerage.co.uk>