Skip to content

Instantly share code, notes, and snippets.

View sean-breeden's full-sized avatar
🏠
Working from home

Sean Breeden sean-breeden

🏠
Working from home
View GitHub Profile
@julienanquetil
julienanquetil / gist:7591c7a657ab33b1abf72c542cb14c1d
Created September 5, 2017 19:10
Magento 2 API add Video to product.
<?php
$adminUrl='http://magento2.dev/rest/V1/integration/admin/token';
$ch = curl_init();
$data = array("username" => "admin", "password" => "admin123");
$data_string = json_encode($data);
$ch = curl_init($adminUrl);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
@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)
*
*/