add currency for teamstore
This commit is contained in:
@@ -7,34 +7,26 @@
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<meta name="description" content="Custom Uniforms offered in a variety colors to match your team. Browse through our baseball, fastpitch, softball, lacrosse, football, volleyball and basketball gear.">
|
||||
<meta name="keywords" content="custom uniforms, footwear, athletic equipment, sporting goods">
|
||||
<meta name="author" content="Frank John Begornia">
|
||||
<meta name="author" content="CREW Developers">
|
||||
<meta name="csrf_token" content="{{ csrf_token() }}" />
|
||||
<meta name="company_url" content="CREW Uniform Designer" />
|
||||
|
||||
<meta property="og:url" content="http://uniformnetwork.com/crew/" />
|
||||
<meta property="og:url" content="https://crewsportswear.com" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:title" content="CREW Uniform Customizer" />
|
||||
<meta property="og:description" content="Custom Uniforms offered in a variety colors to match your team. Browse through our baseball, fastpitch, softball, lacrosse, football, volleyball and basketball gear." />
|
||||
<meta property="og:image" content="{{asset('public/images/fb-share-logo.png')}}" />
|
||||
|
||||
<!-- favicons
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{asset('public/favicons/apple-touch-icon.png')}}">
|
||||
<link rel="icon" type="image/png" href="{{asset('public/favicons/favicon-32x32.png')}}" sizes="32x32">
|
||||
<link rel="icon" type="image/png" href="{{asset('public/favicons/favicon-16x16.png')}}" sizes="16x16">
|
||||
<link rel="manifest" href="{{asset('public/favicons/manifest.json')}}">
|
||||
<link rel="mask-icon" href="{{asset('public/favicons/safari-pinned-tab.svg')}}" color="#5bbad5">
|
||||
<meta name="theme-color" content="#ffffff">-->
|
||||
<!-- end favicons -->
|
||||
<title>CREW Uniform Designer</title>
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="{{asset('public/assets/css/bootstrap.min.css')}}" rel="stylesheet">
|
||||
<link href="{{ asset('public/assets/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||
<link href="{{asset('public/assets/css/ie10-viewport-bug-workaround.css')}}" rel="stylesheet">
|
||||
<link href="{{ asset('public/assets/css/ie10-viewport-bug-workaround.css') }}" rel="stylesheet">
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="{{asset('public/assets/css/style.css')}}" rel="stylesheet">
|
||||
<link href="{{ asset('public/assets/css/style.css')}}" rel="stylesheet">
|
||||
|
||||
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
|
||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||
@@ -47,7 +39,8 @@
|
||||
|
||||
|
||||
<![endif]-->
|
||||
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
<!-- font-awesome -->
|
||||
<link href="{{ asset('public/assets/css/font-awesome/css/font-awesome.min.css')}}" rel="stylesheet">
|
||||
|
||||
<!-- Social Media Share button
|
||||
<script type="text/javascript" src="//platform-api.sharethis.com/js/sharethis.js#property=599bc5cf6d61950012975405&product=sticky-share-buttons"></script>-->
|
||||
@@ -84,12 +77,14 @@
|
||||
|
||||
<!-- Bootstrap core JavaScript ================================================= !-->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
||||
<script src="{{asset('public/assets/js/bootstrap.min.js')}}"></script>
|
||||
<!-- <script>window.jQuery || document.write('<script src="{{asset('public/assets/js/vendor/jquery.min.js')}}"><\/script>')</script> -->
|
||||
<!-- jquery -->
|
||||
<script src="{{ asset('public/assets/js/jquery.min.js') }}"></script>
|
||||
<!-- bootstrap -->
|
||||
<script src="{{asset('public/assets/js/bootstrap.min.js')}}"></script>]
|
||||
<!-- validate -->
|
||||
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
|
||||
<!-- <script type="text/javascript" src="https://cdn.ywxi.net/js/1.js" async></script> -->
|
||||
<script src="{{asset('public/assets/js/crew-designer.js')}}"></script>
|
||||
<!-- custom js -->
|
||||
<script src="{{ asset('public/assets/js/crew-designer.js') }}"></script>
|
||||
<script>
|
||||
$(function(){
|
||||
myCart();
|
||||
@@ -101,7 +96,6 @@
|
||||
|
||||
$('.modal').on('show.bs.modal', function() {
|
||||
$(this).show();
|
||||
console.log("assda")
|
||||
setModalMaxHeight(this);
|
||||
});
|
||||
|
||||
@@ -114,8 +108,70 @@
|
||||
$(document).on('button click', '.c', function() {
|
||||
$(".hide-row").show();
|
||||
});
|
||||
|
||||
$("#frm_voucher").validate({
|
||||
rules: {
|
||||
voucher: {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
messages: {},
|
||||
|
||||
errorPlacement: function(error, element) {
|
||||
var placement = $(element).data('error');
|
||||
|
||||
if (placement) {
|
||||
|
||||
$(placement).append(error)
|
||||
|
||||
}else {
|
||||
|
||||
error.insertAfter(element);
|
||||
|
||||
}
|
||||
},
|
||||
submitHandler: submitVoucher
|
||||
});
|
||||
});
|
||||
|
||||
function submitVoucher(){
|
||||
var form = $('#frm_voucher')
|
||||
var data = form.serialize();
|
||||
// console.log(data);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{{url('teamstore/q/add-voucher')}}",
|
||||
data: data,
|
||||
beforeSend: function(xhr){
|
||||
$("#btn_apply_voucher").attr('disabled', true);
|
||||
$("#btn_apply_voucher").html('Applying <i class="fa fa-spinner fa-spin"></i>');
|
||||
|
||||
var token = $('meta[name="csrf_token"]').attr('content');
|
||||
if (token) {
|
||||
return xhr.setRequestHeader('X-CSRF-TOKEN', token);
|
||||
}
|
||||
},
|
||||
success: function (response) {
|
||||
console.log(response);
|
||||
$("#btn_apply_voucher").attr('disabled', false);
|
||||
$("#btn_apply_voucher").html('Apply');
|
||||
if(response.success){
|
||||
$("#voucher_list").append(response.message);
|
||||
form.validate().resetForm();
|
||||
form[0].reset();
|
||||
$('#my_subtotal').text(response.subtotal);
|
||||
|
||||
}else{
|
||||
$("#error_voucher").html(response.message).fadeIn().delay(5000).fadeOut('slow', function(){
|
||||
$("#error_voucher").html("");
|
||||
$("#error_voucher").css("display", "block");
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function myCart(){
|
||||
$.ajax({ //create an ajax request to load_page.php
|
||||
|
||||
|
||||
Reference in New Issue
Block a user