yalides2007-08-19 19:43 | Hello, » Quick.Cart v1.x |
merci2007-08-20 13:25 | yalides - yes, it is possible, but you will have always amount displays as float, it means that if somebody would like to order 1 m, it will be displays as 1.00 m.
$aFile[$i] = $aExp[0].'$'.$aExp[1].'$'.$aExp[2].'$'.sprintf( '%01.0f', $aElements[$aExp[0]] ).'$'.$aExp[4].'$'.$aExp[5].'$'."\n";
$aFile[$i] = $aExp[0].'$'.$aExp[1].'$'.$aExp[2].'$'.sprintf( '%01.2f', $aElements[$aExp[0]] ).'$'.$aExp[4].'$'.$aExp[5].'$'."\n";
if( isset( $iProduct ) && is_numeric( $iProduct ) && isset( $iQuantity ) && is_numeric( $iQuantity ) && $iQuantity >= 1 && $iQuantity < 1000 ){
if( isset( $iProduct ) && is_numeric( $iProduct ) && isset( $iQuantity ) && is_numeric( $iQuantity ) && $iQuantity > 0 && $iQuantity < 1000 ){ |
yalides2007-08-20 13:48 | Thank you very much for your answer :-) |
yalides2007-08-28 21:03 | I have tried this solution but it doesn't work :-( Greetings Yalides |
merci2007-08-29 08:53 | yalides - well, you have to make one more modyfication. In file core/orders-ff.php find line:
if( isset( $aElements[$aExp[0]] ) && $aElements[$aExp[0]] >= 1 )
and replace it to this:
if( isset( $aElements[$aExp[0]] ) && $aElements[$aExp[0]] > 0 )
|
yalides2007-08-29 10:32 | It still doesn't work. If I want to enter 1.5 it says I have to fill in a legal value. Greetings Yalides |
merci2007-08-29 14:58 | yalides - strange, because I have tested it and it works without problems. |
yalides2007-08-29 16:49 | And was this also version 1.4 ??? Greetings Yalides |
yalides2007-08-29 17:08 | I have tried it in a clean install of version 1.4 again and I get this :-( Greetings Yalides |
yalides2007-08-29 17:10 | You can find the image here Greetings Yalides |
merci2007-08-30 09:04 | yalides - well, you are right, I have checked it only in basekt page, and you have to make one more modyfication in product's descriptiion page. Open file templates/products_more.tpl and somewhere in 16 line you should have:
Array( 'iQuantity', 'int', '0', null, '>' )
delete from that line: 'int', so it will look like:
Array( 'iQuantity', '0', null, '>' )
Does it work now? |
yalides2007-08-30 20:54 | Yes it works :-) Greetings Yalides |
yalides2007-08-30 21:13 | Is it also possible to have 4 or 5 numbers at the quantity so they can also ask for 10.5 or 1.25 mtr ??? Greetings Yalides |
merci2007-08-31 08:47 | yalides - open file templates/orders_basket.tpl and find line:
<fieldset><input type="text" name="aElements[$aList[iElement]]" value="$aList[iQuantity]" maxlength="3" size="2" /></fieldset>
and replace it with:
<fieldset><input type="text" name="aElements[$aList[iElement]]" value="$aList[iQuantity]" maxlength="4" size="3" /></fieldset>
then open file templates/products_more.tpl and change line:
<input type="text" name="iQuantity" value="1" maxlength="3" size="2" /><br />
to this:
<input type="text" name="iQuantity" value="1" maxlength="4" size="3" /><br />
|
yalides2007-09-02 08:39 | Thank you very much :-) Greetings Yalides |