WIP Snopp Order
This commit is contained in:
@@ -587,9 +587,6 @@
|
||||
<?php if($product->preorder_id): ?>
|
||||
<input type="hidden" name="products[<?=$i?>][preorder_id]" value="<?=$product->preorder_id?>" />
|
||||
<?php endif; ?>
|
||||
<?php if($product->oaid): ?>
|
||||
<input type="hidden" name="products[<?=$i?>][oaid]" value="<?=$product->oaid?>" />
|
||||
<?php endif; ?>
|
||||
<div class="col-md-1 product-<?=$i?>">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@@ -648,7 +645,17 @@
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php if($product->product->getAttributeValue("oaid_enabled")): ?>
|
||||
<div class="row mt-1 mb-2" id="oaid-<?=$i?>-line">
|
||||
<?php else: ?>
|
||||
<div class="row mt-1 mb-2 hidden" id="oaid-<?=$i?>-line">
|
||||
<?php endif; ?>
|
||||
<div class="col-4">
|
||||
<label class="form-label" for="oaid-<?=$i?>">OAID</label>
|
||||
<input type="text" name="products[<?=$i?>][oaid]" id="oaid-<?=$i?>" class="form-control" value="<?=$product->oaid?>" placeholder="optional">
|
||||
</div>
|
||||
</div>
|
||||
<?php if(
|
||||
(is_array($product->product->attributes) && count($product->product->attributes))
|
||||
&& (array_key_exists(TT_ATTRIB_TERMINATION_REQUIRED_NAME, $product->product->attributes)
|
||||
@@ -876,7 +883,14 @@
|
||||
<input type="text" class="form-control" name="products[<?=$i?>][price_setup]" id="price_setup-<?=$i?>" value="" placeholder="Preis Setup" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row mt-1 mb-2 hidden" id="oaid-<?=$i?>-line">
|
||||
<div class="col-4">
|
||||
<label class="form-label" for="oaid-<?=$i?>">OAID</label>
|
||||
<input type="text" name="products[<?=$i?>][oaid]" id="oaid-<?=$i?>" class="form-control" value="<?=$product->oaid?>" placeholder="optional">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mt-1 mb-2 hidden" id="termination_id-<?=$i?>-line">
|
||||
<!-- line to choose termination -->
|
||||
<div class="col-12">
|
||||
@@ -1390,8 +1404,15 @@
|
||||
});
|
||||
} else {
|
||||
$('#termination_id-' + id + '-line').hide();
|
||||
//$('#termination_id-' + id + '-line').hide();
|
||||
}
|
||||
|
||||
if(typeof p.attributes === 'object' && "oaid_enabled" in p.attributes && p.attributes.oaid_enabled == 1) {
|
||||
console.log("oaid_enabled");
|
||||
$('#oaid-' + id + '-line').show();
|
||||
console.log($('#oaid-' + id).val());
|
||||
} else {
|
||||
$('#oaid-' + id + '-line').hide();
|
||||
}
|
||||
|
||||
if(typeof p.attributes === 'object' && "needs_number" in p.attributes && p.attributes.needs_number == 1) {
|
||||
console.log("needs_number");
|
||||
@@ -1980,7 +2001,14 @@
|
||||
<input type="text" class="form-control" name="products[' + i +'][price_setup]" id="price_setup-' + i +'" value="" placeholder="Preis Setup" /> \
|
||||
</div> \
|
||||
</div> \
|
||||
\
|
||||
\
|
||||
<div class="row mt-1 mb-2 hidden" id="oaid-<?=$i?>-line"> \
|
||||
<div class="col-4"> \
|
||||
<label class="form-label" for="oaid-<?=$i?>">OAID</label> \
|
||||
<input type="text" name="products[<?=$i?>][oaid]" id="oaid-<?=$i?>" class="form-control" value="" placeholder="optional"> \
|
||||
</div> \
|
||||
</div> \
|
||||
\
|
||||
<div class="row mt-1 mb-2 hidden" id="termination_id-' + i +'-line"> \
|
||||
<!-- line to choose termination --> \
|
||||
<div class="col-12"> \
|
||||
|
||||
Reference in New Issue
Block a user