Browse Source

modify input step value TG-50

SiM 5 years ago
parent
commit
bf83122992
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/frontend/modules/katao/templates/cartSuccess.php

+ 1 - 1
apps/frontend/modules/katao/templates/cartSuccess.php

@@ -61,7 +61,7 @@ unset($allLanguages[$default]);
 
 				<div style="clear: both">
 					<div style="float: left; padding-right: 10px">
-						<input type="number" name="quantity_<?php echo $katao_product->getId() ?>" id="quantity_<?php echo $katao_product->getId() ?>" value="<?php echo $quantity ?>" style="width: 60px; height: 20px; text-align: center;" />
+						<input type="number" min="0" name="quantity_<?php echo $katao_product->getId() ?>" id="quantity_<?php echo $katao_product->getId() ?>" value="<?php echo $quantity ?>" <?php if ($authorize_quantity_decimal): ?>step="any"<?php else: ?>step="1"<?php endif ?> style="width: 60px; height: 20px; text-align: center;" />
 						<?php if ($authorize_quantity_decimal): ?>
 							<?php echo image_tag('decimals_icon.png', array('alt' => 'Décimales autorisées', 'title' => 'Décimales autorisées', 'align' => 'top' )); ?>
 						<?php else: ?>