Ajax cart

21.08.2013 14:28
#1
celsoclaro
Joomshopping forum user no avatar
Name: celso
17.10.2011
Posts: 49
Quote
Ajax cart

Hi

How can i make the number 1 in quantity box to disappear or to be selected when i click on it to input another number?

I mean, my clients rarely will by just one product.

So, per example, when they click on the quantity box to change the number to 100, they get 1001, because the number 1 doesn't disappear or get selected to write over it.

Thanks,
Celso


Joomla: 3.1.5
JoomShopping: 4.2.2
 
21.08.2013 16:34
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16494
Quote
Aw: Ajax cart

Not possible. Need change javascript.

 
21.08.2013 19:01
#3
celsoclaro
Joomshopping forum user no avatar
Name: celso
17.10.2011
Posts: 49
Quote
Aw: Ajax cart

Well
If you could tell me where the script generates this code:
<input class="input-mini" type="text" name="quantity" value="1" size="5" maxlength="5">

Then i could add this:
onClick="this.select();"

And the problem would be solved...

 
21.08.2013 19:15
#4
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16494
Quote
Aw: Ajax cart

plugins\jshoppingproducts\cartajax\cartajax.php

change row to

$products[$key]->_tmp_var_top_buttons .= _JSHOP_QUANTITY.': <input type="text" maxlength="2" size="2" value="'.$value.'" name="quantity" class="input-mini" onclick="this.value=\'\';" />';

 
21.08.2013 19:19
#5
celsoclaro
Joomshopping forum user no avatar
Name: celso
17.10.2011
Posts: 49
Quote
Aw: Ajax cart

Found it.

Thank you very much


Letzte Ă„nderung: 21.08.2013 19:20
 
Copyrights MAXXmarketing GmbH. All Rights Reserved