Skip to content

Instantly share code, notes, and snippets.

public function getJsondata($product){
if(count($product['images']) == 0 ){
return null;
}
$json = array(
'options' => array(),
'variants' => array(),
);
foreach ($product['options'] as $option){
@clipvui2512
clipvui2512 / 0_reuse_code.js
Created August 26, 2016 21:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console