Skip to content

Instantly share code, notes, and snippets.

<?php
$json = file_get_contents( dirname(__FILE__) . DIRECTORY_SEPARATOR ."prdmd.json");
$json = preg_replace('/[^(\x20-\x7F)]*/','', $json);
$jsonToArray = json_decode($json, true);
scanProducts($jsonToArray);
function writeProduct( $title, $id, $product_short, $product_full, $product_price, $product_weight, $dir){
$productTemplate =