init
This commit is contained in:
12
modules/EcmProducts/getBaseComponents.php
Normal file
12
modules/EcmProducts/getBaseComponents.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
if (!$_REQUEST['product_code']) {echo '0'; return;}
|
||||
$db = $GLOBALS['db'];
|
||||
//get id
|
||||
$pid = $db->fetchByAssoc($db->query("SELECT id FROM ecmproducts WHERE code='".$_REQUEST['product_code']."' AND deleted='0'"));
|
||||
|
||||
include('modules/EcmProduct.php');
|
||||
$p = new EcmProduct();
|
||||
$p->retrieve($pid['id']);
|
||||
echo $p->getPositionList(false);
|
||||
return;
|
||||
?>
|
||||
Reference in New Issue
Block a user