Ajax cart

21.08.2013 14:28
#1
celsoclaro
Joomshopping forum user no avatar
Name: celso
17.10.2011
Posts: 52
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
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25853
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: 52
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
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25853
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: 52
Quote
Aw: Ajax cart

Found it.

Thank you very much


Last change: 21.08.2013 19:20
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.