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,52 @@
<?php
sfLoader::loadHelpers('stProduct', 'stProduct');
$id = null;
$token = null;
if (isset($filters['product_id']) && $filters['product_id'])
{
if (is_numeric($filters['product_id']))
{
$token = array("id" => $filters['product_id']);
}
else
{
$tokens = stJQueryToolsHelper::parseTokensFromRequest($filters['product_id']);
$token = $tokens ? $tokens[0] : null;
}
}
if ($token && !isset($token['new']))
{
$c = new Criteria();
$c->add(ProductPeer::ID, $token['id']);
$defaults = ProductPeer::doSelectTokens($c);
}
elseif ($token)
{
$defaults = array($token);
}
else
{
$defaults = array();
}
$results_formatter = _token_input_product_results_formatter();
$token_formatter = _token_input_product_token_formatter();
echo st_tokenizer_input_tag('filters[product_id]', st_url_for('@stProduct?action=ajaxProductsToken'), $defaults, array('tokenizer' => array(
'preventDuplicates' => true,
'resultsFormatter' => $results_formatter,
'tokenFormatter' => $token_formatter,
'hintText' => __('Wpisz kod/nazwę szukanego produktu', null, 'stProduct'),
'additionalDataFields' => array('code'),
'tokenLimit' => 1,
'sortable' => false,
'createNew' => false,
'addNewText' => __('Szukaj w historii zamówień'),
)));
?>

View File

@@ -0,0 +1 @@
<?php echo list_product_image(null !== $order_product->getProduct() ? $order_product->getProduct() : $order_product->getImage(), '_parent') ?>

View File

@@ -0,0 +1,25 @@
<?php use_helper('I18N', 'Text', 'stAdminGenerator', 'ObjectAdmin', 'stDate', 'stProductImage', 'stCurrency') ?>
<?php use_helper('stOrder'); ?>
<?php
foreach ($orders as $order){
?>
<a href="<?php echo st_url_for('stOrder/edit?id=' . $order['order_id']) ?>" target="_parent" >
<?php echo st_format_date($order['created_at'], 'dd-MM-yyyy') ?>
<?php echo $order['order_number'] ?>
(<?php echo $order['quantity']; ?>)
<?php echo $order['order_status']; ?>
</a>
<br/>
<?php
}
?>

View File

@@ -0,0 +1 @@
<?php echo number_format($quantity, 2, '.', ' '); ?> <?php echo __(st_product_uom($order_product->getProduct()), array(), 'stRecentlyOrderedProductsBackend'); ?>