CMXX - Pricelists
This commit is contained in:
46
product.php
46
product.php
@@ -54,6 +54,11 @@ $product_software = ioServer($api_url,'');
|
||||
//Decode Payload
|
||||
if (!empty($product_software)){$product_software = decode_payload($product_software);}else{$product_software = null;}
|
||||
|
||||
//CALL TO API FOR Product_configuration
|
||||
$api_url = '/v2/products_configurations/productrowid='.$_GET['rowID'];
|
||||
$products_configurations = ioServer($api_url,'');
|
||||
//Decode Payload
|
||||
if (!empty($products_configurations)){$products_configurations = json_decode($products_configurations,true);}else{$products_configurations = null;}
|
||||
|
||||
//------------------------------
|
||||
//Variables
|
||||
@@ -157,7 +162,41 @@ $view .= '<div class="content-block">
|
||||
</div>
|
||||
';
|
||||
|
||||
if ($responses->configurable == 1){
|
||||
$view .= '<div class="content-block">
|
||||
<div class="block-header">
|
||||
<i class="fa-solid fa-bars fa-sm"></i>'.($product_configuration ?? 'Product configuration').'
|
||||
<a href="index.php?page=products_configurations&productrowid='.$_GET['rowID'].'" class="btn2"> + </a>
|
||||
</div>';
|
||||
if (!empty($products_configurations)){
|
||||
$view .= '
|
||||
<div class="table">
|
||||
<table class="sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>'.($product_configuration_version ?? 'Config-version').'</th>
|
||||
<th>'.$general_actions.'</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>';
|
||||
foreach ($products_configurations as $product_config){
|
||||
|
||||
$view .= '<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>';
|
||||
}
|
||||
$view .= '
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
|
||||
$view .= '
|
||||
</div>
|
||||
';
|
||||
}
|
||||
|
||||
$view .= '<div class="content-block">
|
||||
<div class="block-header">
|
||||
@@ -173,6 +212,7 @@ $view .= '<div class="content-block">
|
||||
<th>'.$product_version_number.'</th>
|
||||
<th>'.$product_status.'</th>
|
||||
<th>'.$product_version_version.'</th>
|
||||
<th>'.($product_version_config ?? 'Config').'</th>
|
||||
<th>'.$general_actions.'</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -183,6 +223,7 @@ $view .= '<div class="content-block">
|
||||
<td>'.$version->rowID.'</td>
|
||||
<td>'.(($version->status == 1)? '<span class="status enabled">'.$prod_status_1:'<span class="status">'.$prod_status_0).'</td>
|
||||
<td>'.$version->version.'</td>
|
||||
<td>'.(!empty($version->config) ? ($general_yes ?? 'Y') : ($general_no ?? 'N')).'</td>
|
||||
<td><a href="index.php?page=products_versions&productrowid='.$_GET['rowID'].'&rowID='.$version->rowID.'" class="btn_link">'.$general_view.'</a></td>
|
||||
</tr>';
|
||||
}
|
||||
@@ -249,6 +290,11 @@ $view .= '<div class="content-block">
|
||||
</div>
|
||||
<div class="table order-table">
|
||||
<table>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:25%;">'.($product_configurable ?? 'Configurable').'</td>
|
||||
<td>'.(($responses->configurable == 1)? $enabled : $disabled).'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:25%;">'.$product_serialized.'</td>
|
||||
<td>'.(($responses->sn == 1)? $enabled : $disabled).'</td>
|
||||
|
||||
Reference in New Issue
Block a user