CMXX - Pricelists
This commit is contained in:
@@ -38,7 +38,8 @@ $product = [
|
||||
'build' => 1,
|
||||
'partnerhierarchy' => '',
|
||||
'sn' =>'',
|
||||
'healthindex' =>''
|
||||
'healthindex' =>'',
|
||||
'configurable' =>''
|
||||
];
|
||||
|
||||
if (isset($_GET['id'])) {
|
||||
@@ -56,8 +57,10 @@ if (isset($_GET['id'])) {
|
||||
uploadProduct($_POST['productcode']);
|
||||
}
|
||||
if (isset($_POST['submit'])) {
|
||||
|
||||
//GET ALL POST DATA
|
||||
$data = json_encode($_POST, JSON_UNESCAPED_UNICODE);
|
||||
var_dump($data);
|
||||
//Secure data
|
||||
$payload = generate_payload($data);
|
||||
//API call
|
||||
@@ -65,8 +68,8 @@ if (isset($_GET['id'])) {
|
||||
if ($responses === 'NOK'){
|
||||
|
||||
} else {
|
||||
header('Location: index.php?page=product&rowID='.$_GET['id'].'&success_msg=2');
|
||||
exit;
|
||||
header('Location: index.php?page=product&rowID='.$_GET['id'].'&success_msg=2');
|
||||
exit;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -171,6 +174,11 @@ $view .= '<div class="content-block tab-content active">
|
||||
|
||||
$view .= '<div class="content-block tab-content">
|
||||
<div class="form responsive-width-100">
|
||||
<label for="serialized">'.($product_configurable ?? 'Configurable').'</label>
|
||||
<select id="status" name="configurable">
|
||||
<option value="1" '.($product['configurable']==1?' selected':'').'>'.$enabled.'</option>
|
||||
<option value="0" '.($product['configurable']==0?' selected':'').'>'.$disabled.'</option>
|
||||
</select>
|
||||
<label for="serialized">'.$product_serialized.'</label>
|
||||
<select id="status" name="sn">
|
||||
<option value="1" '.($product['sn']==1?' selected':'').'>'.$enabled.'</option>
|
||||
|
||||
Reference in New Issue
Block a user