'); }); } if (json['success']) { $('.success_fastorder').html(json['success']); $('#input-phone').val(""); ga('require', 'ecommerce'); ga('ecommerce:addTransaction', {'id': json['lastid'], 'affiliation': 'Бижута-Кристали', 'revenue': '25.20лв.', 'currency': 'BGN'}); ga('ecommerce:addItem', {'id': json['lastid'], 'name': 'Aucuba japonica - Японска аукуба', 'sku': '22222', 'category': 'Широколистни храсти', 'price': '25.20лв.', 'quantity': '1', 'currency': 'BGN'}); ga('ecommerce:send'); ga('send', 'event', 'Order', 'Submit', 'Fast Form'); } }, error: function (xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); } //-->
'); } else { element.after('
' + json['error']['option'][i] + '
'); } } } if (json['error']['recurring']) { $('select[name=\'recurring_id\']').after('
' + json['error']['recurring'] + '
'); } // Highlight any found errors $('.text-danger').parent().addClass('has-error'); } if (json['success']) { $('#notification').html('
' + json['success'] + '
'); $('#cart-total').html(json['total']); $('html, body').animate({ scrollTop: 0 }, 'slow'); $('#cart > ul').load('index.php?route=common/cart/info ul li'); } } }); }); //-->