init
This commit is contained in:
12
modules/EcmProducts/getProductResInfo.php
Normal file
12
modules/EcmProducts/getProductResInfo.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
if (!$_REQUEST['product_id'] || !$_REQUEST['product_id']) {echo 'error'; return;}
|
||||
|
||||
require_once('modules/EcmProducts/EcmProduct.php');
|
||||
|
||||
$prod = new EcmProduct();
|
||||
|
||||
$info = $prod->getProductResInfo($_REQUEST['product_id'], $_REQUEST['stock_id']);
|
||||
|
||||
$json = getJSONobj();
|
||||
echo '['.$json->encode($info).']';
|
||||
?>
|
||||
Reference in New Issue
Block a user