add plus sign qty
This commit is contained in:
@@ -373,7 +373,7 @@ $(function() {
|
||||
$('.add_to_order').removeAttr('data-attributes');
|
||||
$('.add_to_order').removeAttr('data-options');
|
||||
|
||||
$('.change_qty').val(1);
|
||||
$('#count').val(1);
|
||||
|
||||
change_qty_plus_minus("count","plus","minus");
|
||||
|
||||
@@ -824,18 +824,11 @@ $(function() {
|
||||
|
||||
// Get Selected Class
|
||||
function change_qty_plus_minus(id,plus,minus) {
|
||||
var count = parseInt($('#'+id).val());
|
||||
|
||||
|
||||
|
||||
|
||||
$('#'+plus).on("click", function(){
|
||||
|
||||
var count = parseInt($('#'+id).val());
|
||||
var countEl = document.getElementById(id);
|
||||
|
||||
count++;
|
||||
countEl.value = count;
|
||||
|
||||
$('#'+plus).on("click", function(){
|
||||
count++;
|
||||
$('#'+id).val(count);
|
||||
|
||||
if (id == "count") {
|
||||
price = $("#unit_price").text();
|
||||
@@ -899,7 +892,7 @@ $(function() {
|
||||
|
||||
if ($.isNumeric(value)) {
|
||||
if (id=="count") {
|
||||
$('.change_qty').attr('value',value);
|
||||
$('#count').attr('value',value);
|
||||
price = $("#unit_price").text();
|
||||
$("#total_price").text(value*price);
|
||||
}else{
|
||||
|
||||
@@ -62,6 +62,9 @@ $(document).ready(function() {
|
||||
clearButton: true,
|
||||
date: false
|
||||
});
|
||||
|
||||
// first input focus for all form
|
||||
$("body").has("form").find("input:first").focus();
|
||||
|
||||
// Image Upload
|
||||
$("#simple_menu_item_image_path").fileinput({
|
||||
|
||||
Reference in New Issue
Block a user