Quantitiy cotrole before quantitiy field
- CMS-Buttler
-
Topic Author
- Offline
Less
More
11 years 11 months ago #174533
by CMS-Buttler
Quantitiy cotrole before quantitiy field was created by CMS-Buttler
-- HikaShop version -- : HikaShop Essential 2.3.3
-- Joomla version -- : 3.3.4
-- PHP version -- : 5.4.30
-- Browser(s) name and version -- : Firefox 32
Hallo support Team
How can i move the "+" and "-" buttons in front of the quantity field?
awesomescreenshot.com/0103lvogf7
Thx
Andreas
-- Joomla version -- : 3.3.4
-- PHP version -- : 5.4.30
-- Browser(s) name and version -- : Firefox 32
Hallo support Team
How can i move the "+" and "-" buttons in front of the quantity field?
awesomescreenshot.com/0103lvogf7
Thx
Andreas
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
11 years 11 months ago #174539
by Mohamed Thelji
Replied by Mohamed Thelji on topic Quantitiy cotrole before quantitiy field
Hello,
To do that you'll have to directly edit the code of the "show_default" file of the "product" view of your front-end template.
To do that you'll have to directly edit the code of the "show_default" file of the "product" view of your front-end template.
Please Log in or Create an account to join the conversation.
- CMS-Buttler
-
Topic Author
- Offline
11 years 11 months ago #174655
by CMS-Buttler
Replied by CMS-Buttler on topic Quantitiy cotrole before quantitiy field
Maybe you have a little hint which line to edit
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
11 years 11 months ago - 11 years 11 months ago #174670
by Mohamed Thelji
Replied by Mohamed Thelji on topic Quantitiy cotrole before quantitiy field
Hi,
You'll have to edit the "show_quantity" file of the "product" view of your front-end template via "Hikashop->Display->Views" and change these lines :
By :
You'll have to edit the "show_quantity" file of the "product" view of your front-end template via "Hikashop->Display->Views" and change these lines :
Code:
case 'show_default':
?>
<table>
<tr>
<td rowspan="2">
<input id="hikashop_product_quantity_field_<?php echo $i; ?>" type="text" value="<?php echo JRequest::getInt('quantity',$min_quantity); ?>" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);" />
</td>
<td>
<a id="hikashop_product_quantity_field_change_plus_<?php echo $i; ?>" class="hikashop_product_quantity_field_change_plus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',1,<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);">+</a>
</td>
<td rowspan="2">
<?php echo $html; ?>
</td>
</tr>
<tr>
<td>
<a id="hikashop_product_quantity_field_change_minus_<?php echo $i; ?>" class="hikashop_product_quantity_field_change_minus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',0,<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);">–</a>
</td>
</tr>
</table>
Code:
case 'show_default':
?>
<table>
<tr>
<td>
<a id="hikashop_product_quantity_field_change_plus_<?php echo $i; ?>" class="hikashop_product_quantity_field_change_plus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',1,<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);">+</a>
</td>
<td rowspan="2">
<input id="hikashop_product_quantity_field_<?php echo $i; ?>" type="text" value="<?php echo JRequest::getInt('quantity',$min_quantity); ?>" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);" />
</td>
<td rowspan="2">
<?php echo $html; ?>
</td>
</tr>
<tr>
<td>
<a id="hikashop_product_quantity_field_change_minus_<?php echo $i; ?>" class="hikashop_product_quantity_field_change_minus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',0,<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);">–</a>
</td>
</tr>
</table>
Last edit: 11 years 11 months ago by Mohamed Thelji.
Please Log in or Create an account to join the conversation.
Time to create page: 0.186 seconds