first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<?php if ($sf_user->getParameter('mode', null, 'soteshop/stAdminGenerator/stProduct/list/config') == 'edit'): ?>
<?php echo object_product_availability($product, null, array('control_name' => 'product['.$product->getId().'][availability_id]')); ?>
<?php else:
$availabilities = AvailabilityPeer::doSelectOrderByStockCached();
$availability = isset($availabilities[$product->getAvailabilityId()]) ? $availabilities[$product->getAvailabilityId()] : __('Ustaw według magazynu', null, 'stProduct');
?>
<?php echo $availability ?>
<?php endif ?>

View File

@@ -0,0 +1,33 @@
<?php if ($sf_user->getParameter('mode', null, 'soteshop/stAdminGenerator/stProduct/list/config') == 'edit'): ?>
<?php if ($product->getOptHasOptions() > 1 && $product->hasStockManagmentWithOptions()): ?>
<?php echo st_link_to(__('Edytuj', null, 'stProduct'), 'stProduct/optionsStockList?id='.$product->getId()) ?>
<?php else: ?>
<?php echo input_tag('product['.$product->getId().'][stock]', stPrice::round($product->getStock()), array('style' => 'width: 60px')); ?>
<script type="text/javascript">
jQuery(function($) {
var field = $('#product_<?php echo $product->getId() ?>_stock');
field.change(function() {
this.value = stPrice.fixNumberFormat(this.value);
});
field.keypress(function(event) {
if (event.keyCode == Event.KEY_RETURN)
{
this.value = stPrice.fixNumberFormat(this.value);
}
});
});
</script>
<?php endif ?>
<?php else: ?>
<?php echo stPrice::round($product->getStock()) ?>
<?php endif ?>
<style type="text/css">
#st_record_list th:nth-of-type(10), #st_record_list th:nth-of-type(11), #st_record_list td:nth-of-type(12), #st_record_list td:nth-of-type(13){
display: none;
}
</style>

View File

@@ -0,0 +1,20 @@
<?php if ($sf_user->getParameter('mode', null, 'soteshop/stAdminGenerator/stProduct/list/config') == 'edit'): ?>
<?php echo input_tag('product['.$product->getId().'][weight]', stPrice::round($product->getWeight()), array('style' => 'width: 60px')); ?>
<script type="text/javascript">
jQuery(function($) {
var field = $('#product_<?php echo $product->getId() ?>_weight');
field.change(function() {
this.value = stPrice.fixNumberFormat(this.value);
});
field.keypress(function(event) {
if (event.keyCode == Event.KEY_RETURN)
{
this.value = stPrice.fixNumberFormat(this.value);
}
});
});
</script>
<?php else: ?>
<?php echo stPrice::round($product->getWeight()) ?>
<?php endif ?>