Skip to content

Instantly share code, notes, and snippets.

View ProxiBlue's full-sized avatar
🏠
Working from home

Lucas van Staden ProxiBlue

🏠
Working from home
View GitHub Profile
@ProxiBlue
ProxiBlue / gist:fdf28f9bf8b678e9aa30c475d681f974
Created January 27, 2018 09:11
ReCaptcha Email a friend template changes diff
diff --git a/app/design/frontend/default/theme567/template/sendfriend/send.phtml b/app/design/frontend/default/theme567/template/sendfriend/send.phtml
index 14432118..be6096dc 100644
--- a/app/design/frontend/default/theme567/template/sendfriend/send.phtml
+++ b/app/design/frontend/default/theme567/template/sendfriend/send.phtml
@@ -32,8 +32,13 @@
?>
<script type="text/javascript">
//<![CDATA[
- i=0;
- var recipCount = 1;
@ProxiBlue
ProxiBlue / gist:bff88b184c9c0e44997ff6ae05468b01
Created January 27, 2018 09:10
ReCaptcha Email to a friend template with changes
<?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
@ProxiBlue
ProxiBlue / gist:dfc74f35721b57e96b560d898cb6bfeb
Last active May 5, 2017 13:41
a script i run on any db to make it local dev ready
#!/bin/bash
n98-magerun --scope-id=0 config:set web/unsecure/base_url {{base_url}}
n98-magerun --scope-id=0 config:set web/secure/base_url {{base_url}}
n98-magerun --scope-id=1 --scope="stores" config:set web/unsecure/base_url {{base_url}}
n98-magerun --scope-id=1 --scope="stores" config:set web/secure/base_url {{base_url}}
n98-magerun --scope-id=1 --scope="stores" config:set web/unsecure/base_skin_url {{base_url}}/skin
n98-magerun --scope-id=1 --scope="stores" config:set web/secure/base_skin_url {{base_url}}/skin
n98-magerun --scope-id=0 config:set web/unsecure/base_skin_url {{base_url}}/skin
n98-magerun --scope-id=0 config:set web/secure/base_skin_url {{base_url}}/skin
@ProxiBlue
ProxiBlue / varstosession
Created July 5, 2016 14:48
inject vars to session
protected $_paramsToTrack = array("offer_followup");
/**
* Capture any listened for parameters, and inject them into the session
* under a variable called : ProductOfferUrlParams
*
* You must clear this variable with a call to
*
* Mage::getSingleton('customer/session')->unsProductOfferUrlParams();
*
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Run with: vagrant up --provider=docker
# to get a dns entry for the docker machines use DNSGUARD
# docker run -d -v /var/run/docker.sock:/var/run/docker.sock --restart always --name dnsdockmain -p 172.17.42.1:53:53/udp tonistiigi/dnsdock -domain=".local.com" -nameserver="192.168.50.20:53"
#
# common usage: vagrant --name=magento up --provider=docker
require 'getoptlong'
@ProxiBlue
ProxiBlue / findAllBundlesWithSimple.php
Created May 20, 2016 03:28
Magento 1: Find All bundles that contain a simple
<?php
/*
* http://magento.stackexchange.com/questions/1354/how-to-find-all-bundle-products-that-contain-a-simple
*
*/
require_once '../shell/abstract.php';
class Mage_Shell_findProducts extends Mage_Shell_Abstract {
@ProxiBlue
ProxiBlue / convertQuoteToOrder.php
Created May 20, 2016 03:27
Magento 1: Convert Quote to Order
<?php
/**
* Convert a quote to an order object
* Note Bundle items selections do not show
*
* @author Lucas van Staden
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*/
@ProxiBlue
ProxiBlue / fix-url-keys.php
Last active February 19, 2016 15:33 — forked from Vinai/fix-url-keys.php
This fixes the duplicate url_key issue in a Magento 1.8 / 1.13 installation.
<?php
/**
* Drop this into the shell directory in the Magento root and run with -h to see all options.
*/
require_once 'abstract.php';
/**
* Fix duplicate url keys for categories and products to work with the 1.8 alpha1 CE url key constraints.
Verifying that +proxiblue is my blockchain ID. https://onename.com/proxiblue
/**
* This code is part of ProxiBlue Free Gift Promotions
* It may be used/edited, freely, but this notice must remian intact.
*
/**
(function (a) {
function b() {
}
for (var c = "assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","), d; !!(d = c.pop());) {