[-] BO : Bug Fixed #PSTEST-822 - You can now set datetime to configure specific price boundaries

This commit is contained in:
fBrignoli
2012-02-24 09:13:03 +00:00
parent 7655ee2a3e
commit f5eeed19b0
5 changed files with 1364 additions and 4 deletions
@@ -307,10 +307,23 @@ jQuery(document).ready(Customer.init);
$('#sp_current_ht_price').html(product_prices[$('#id_product_attribute option:selected').val()]);
});
$('.datepicker').datepicker({
$('.datepicker').datetimepicker({
prevText: '',
nextText: '',
dateFormat: 'yy-mm-dd'
dateFormat: 'yy-mm-dd',
// Define a custom regional settings in order to use PrestaShop translation tools
currentText: '{l s='Now'}',
closeText: '{l s='Done'}',
ampm: false,
amNames: ['AM', 'A'],
pmNames: ['PM', 'P'],
timeFormat: 'hh:mm tt',
timeSuffix: '',
timeOnlyTitle: '{l s='Choose Time'}',
timeText: '{l s='Time'}',
hourText: '{l s='Hour'}',
minuteText: '{l s='Minute'}',
});
});
</script>
+10 -2
View File
@@ -2107,6 +2107,9 @@ class AdminProductsControllerCore extends AdminController
$this->tpl_form_vars['tabs_preloaded'] = $this->available_tabs;
$this->addJqueryUI('ui.datepicker');
$this->addJqueryUI('ui.slider');
$this->addJS(_PS_JS_DIR_.'jquery/plugins/timepicker/jquery-ui-timepicker-addon.js');
// getLanguages init this->_languages
$this->getLanguages();
$languages = $this->_languages;
@@ -3895,7 +3898,8 @@ class AdminProductsControllerCore extends AdminController
$this->addJqueryUI(array(
'ui.core',
'ui.widget',
'ui.accordion'
'ui.accordion',
'ui.slider'
));
$this->addJS(array(
@@ -3912,7 +3916,11 @@ class AdminProductsControllerCore extends AdminController
_PS_JS_DIR_.'admin-categories-tree.js',
_PS_JS_DIR_.'/jquery/ui/jquery.ui.progressbar.min.js'
));
$this->addCSS(_PS_JS_DIR_.'jquery/plugins/treeview/jquery.treeview.css');
$this->addCSS(array(
_PS_JS_DIR_.'jquery/plugins/treeview/jquery.treeview.css',
_PS_JS_DIR_.'jquery/plugins/timepicker/jquery-ui-timepicker-addon.css',
));
}
}
@@ -0,0 +1,6 @@
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
.ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
File diff suppressed because it is too large Load Diff
+7
View File
@@ -2481,6 +2481,7 @@ $_LANGADM['AdminProducts19f823c6453c2b1ffd09cb715214813d'] = 'Champ requis';
$_LANGADM['AdminProducts1c669d037f8bc785f0e1a9aeb7070367'] = 'Voir options';
$_LANGADM['AdminProducts1ca81cd1aaff46ab65722b1a0b657b73'] = 'Vous devez enregistrer ce produit avant de pouvoir ajouter des déclinaisons.';
$_LANGADM['AdminProducts1dc171c83c2ba64a6a311a8a011339ee'] = 'Impossible de supprimer l\'attribut';
$_LANGADM['AdminProducts1e1cc9bdeb2f29f5480106aec7e9bc48'] = 'Maintenant';
$_LANGADM['AdminProducts1e379f05c820f87b09c5b42ac0d0349d'] = 'Vous modifiez toutes les boutiques.';
$_LANGADM['AdminProducts1f4b25c6d3845c0a50b80a3d964b04d4'] = 'Commencez à saisir les premières lettres du nom du produit puis sélectionnez le produit dans le menu déroulant';
$_LANGADM['AdminProducts1f87346a16cf80c372065de3c54c86d9'] = 'TTC';
@@ -2524,6 +2525,7 @@ $_LANGADM['AdminProducts382b0f5185773fa0f67a8ed8056c7759'] = 'N/A';
$_LANGADM['AdminProducts386c339d37e737a436499d423a77df0c'] = 'Devise';
$_LANGADM['AdminProducts38d301f7ef549a79620e99fd8b51fa34'] = 'apparaît dans les listes de produits et sur le haut de la page du produit';
$_LANGADM['AdminProducts394deec8b4e901394f69ad41095b1ecc'] = 'Méta mots-clés :';
$_LANGADM['AdminProducts3964fd83339fec5014c831822005653a'] = 'Choisir l\'heure';
$_LANGADM['AdminProducts3adbdb3ac060038aa0e6e6c138ef9873'] = 'Catégorie';
$_LANGADM['AdminProducts3b263477a8ad622d76979befafd0119d'] = 'Tapez les premières lettres du nom du produit, puis choisissez le produit dans la liste déroulante :';
$_LANGADM['AdminProducts3b6c024d7eff743d98d894ce0e0d1242'] = 'Documents disponibles :';
@@ -2583,6 +2585,7 @@ $_LANGADM['AdminProducts61946eb3e50f01d7ea339f202a2942f8'] = '(s\'il est réglé
$_LANGADM['AdminProducts623a9a1f669b091dd76bead27c3252ed'] = 'Quantités';
$_LANGADM['AdminProducts6252c0f2c2ed83b7b06dfca86d4650bb'] = 'Caractères interdits :';
$_LANGADM['AdminProducts627b9f5acc2dcec1e8e341dd09df9768'] = 'Message quand hors-stock mais pouvant être commandée chez le fournisseur :';
$_LANGADM['AdminProducts62902641c38f3a4a8eb3212454360e24'] = 'Minute';
$_LANGADM['AdminProducts62b5bb12862c2d95d5c88d1e75feb4f9'] = 'Prix d\'achat :';
$_LANGADM['AdminProducts63b28593e2858476903ac94ca8697341'] = 'Votre répertoire de dépôt de fichier n\'a pas les permissions suffisantes en écriture.';
$_LANGADM['AdminProducts63d5049791d9d79d86e9a108b0a999ca'] = 'Référence';
@@ -2693,6 +2696,7 @@ $_LANGADM['AdminProductsa1f9d795d1110aeeed6b5368c16dc725'] = 'EAN-13 ou JAN :';
$_LANGADM['AdminProductsa6bb76858f8b4b61c050ad7a7ac57e06'] = 'Méta description :';
$_LANGADM['AdminProductsa6cb368dedb16a6bed8a1f3b14a8f2a9'] = 'Vous devez enregistrer ce produit avant de gérer la comptabilité de celui-ci.';
$_LANGADM['AdminProductsa6ff0f7a2a1993857cb67b769780e708'] = 'Aucun prix spécifique';
$_LANGADM['AdminProductsa76d4ef5f3f6a672bbfab2865563e530'] = 'Heure';
$_LANGADM['AdminProductsa890a08afc5d657bfe58f8ef21a6da65'] = 'Vous devez enregistrer ce produit avant de pouvoir le personnaliser.';
$_LANGADM['AdminProductsa9ba3f599719d08ba53c26c932b6860f'] = 'nombre de jours';
$_LANGADM['AdminProductsaa642c15d075aab8a1ac2ccbc9a0d07a'] = 'Vous modifiez un groupe de boutiques où les quantités ne sont pas partagées entre toutes les boutiques de ce groupe.';
@@ -2723,6 +2727,7 @@ $_LANGADM['AdminProductsb2e3e379189bcd9251937acc4dcf37e8'] = 'Une phrase de desc
$_LANGADM['AdminProductsb2f40690858b404ed10e62bdf422c704'] = 'Montant';
$_LANGADM['AdminProductsb3f28ce65c666b3dd33240ad6921d941'] = 'n\'est pas valable';
$_LANGADM['AdminProductsb51a231babbab8586d70830dd7c96653'] = 'Partageable';
$_LANGADM['AdminProductsb55e509c697e4cca0e1d160a7806698f'] = 'Heure';
$_LANGADM['AdminProductsb59c9757725815ede91ef3ccb2ba7749'] = 'Valeur non définie';
$_LANGADM['AdminProductsb61bd19699eab41bbcdabc42f83af268'] = 'Pensez à changer la catégorie par défaut.';
$_LANGADM['AdminProductsb6bf408fcbdbbc77159db64efbcbb7b1'] = 'Champs texte :';
@@ -2844,6 +2849,7 @@ $_LANGADM['AdminProductsf755e8b92cb8f02c24f6f539180d45b1'] = 'est trop long';
$_LANGADM['AdminProductsf8825c9f08ff15b5ef6bc3a3898817e8'] = 'Enregistrer et prévisualiser';
$_LANGADM['AdminProductsf8d2c739f71b8771be444dcb6af04314'] = 'Ajouter ce produit dans le pack';
$_LANGADM['AdminProductsf8d71f7aaec730f4f1620506a158728a'] = 'Ce produit a un fichier associé ?';
$_LANGADM['AdminProductsf92965e2c8a7afb3c1b9a5c09a263636'] = 'Ok';
$_LANGADM['AdminProductsf98188b975d57e9dfc3137c7c9f9a5da'] = 'Pour :';
$_LANGADM['AdminProductsf9c128cbc52bb845834c0d3e62b424ea'] = 'La ligne en bleu est la déclinaison par défaut.';
$_LANGADM['AdminProductsfb2ea703b13d059f6b7ea5da806021df'] = 'Format :';
@@ -2877,6 +2883,7 @@ $_LANGADM['AdminQuickAccessese25f0ecd41211b01c83e5fec41df4fe7'] = 'Supprimer les
$_LANGADM['AdminQuickAccessese5dc8e5afea0a065948622039358de37'] = 'Nouvelle fenêtre';
$_LANGADM['AdminQuickAccessesfe501f6dab88efcbde9b3f062a5ae781'] = 'Menu d\'accès rapide';
$_LANGADM['AdminRangePrice1e6d57e813355689e9c77e947d73ad8f'] = 'De :';
$_LANGADM['AdminRangePrice29103375229a5c363403ec4afb5c3e8f'] = '(TTC)';
$_LANGADM['AdminRangePrice2c39f2ba36ea6da8583198d554719eb1'] = 'Début de la tranche (inclus)';
$_LANGADM['AdminRangePrice2e5b52416e267252bcdea3d6211c31ba'] = 'Vous pouvez changer le transporteur auquel la règle s\'applique en le sélectionnant.';
$_LANGADM['AdminRangePrice33caa076f23f453dd4061726f3706325'] = 'À :';