Skip to content

Commit c5fe602

Browse files
committed
First carasoul completed / old price added /
1 parent fd661e1 commit c5fe602

25 files changed

+74
-104
lines changed

helpers/product-helpers.js

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ module.exports={
5454
$set:{
5555
Name:ProDetails.Name,
5656
Price:ProDetails.Price,
57+
Oldprice:ProDetails.Oldprice,
5758
Category:ProDetails.Category,
5859
ProductDescription:ProDetails.ProductDescription,
5960
flavour:ProDetails.flavour,

public/css/style.css

+1-85
Original file line numberDiff line numberDiff line change
@@ -578,91 +578,6 @@
578578

579579
/* Blanspaace fix code ends here */
580580

581-
/* special title code starts */
582-
583-
@media (max-width: 768px) {
584-
.special-title{
585-
margin: 3vh auto;
586-
text-align: center;
587-
position: relative;
588-
color: #FF6D23;
589-
font-size: 1.2rem;
590-
font-weight: bolder;
591-
592-
}
593-
.special-title::before{
594-
content: "";
595-
height: 4px;
596-
width: 50vw;
597-
background-color: #FF6D23;
598-
color: #FF6D23;
599-
position: absolute;
600-
top: 50%;
601-
right: 0;
602-
z-index: -2;
603-
}
604-
.special-title::after{
605-
content: "";
606-
height: 4px;
607-
width: 50vw;
608-
background-color: #FF6D23;
609-
color: #FF6D23;
610-
position: absolute;
611-
top: 50%;
612-
left: 0;
613-
z-index: -2;
614-
}
615-
616-
.special-span{
617-
background: white;
618-
padding: 0;
619-
padding-left: 5%;
620-
padding-right: 5%;
621-
padding-bottom: 0;
622-
}
623-
}
624-
625-
@media (min-width: 768px) {
626-
.special-title{
627-
margin: 5vh auto;
628-
text-align: center;
629-
position: relative;
630-
color: #FF6D23;
631-
font-size: 1.7rem;
632-
font-weight: bold;
633-
634-
}
635-
.special-title::before{
636-
content: "";
637-
height: 7px;
638-
width: 50vw;
639-
background-color: #FF6D23;
640-
color: #FF6D23;
641-
position: absolute;
642-
top: 50%;
643-
right: 0;
644-
z-index: -2;
645-
}
646-
.special-title::after{
647-
content: "";
648-
height: 7px;
649-
width: 50vw;
650-
background-color: #FF6D23;
651-
color: #FF6D23;
652-
position: absolute;
653-
top: 50%;
654-
left: 0;
655-
z-index: -2;
656-
}
657-
658-
.special-span{
659-
background: white;
660-
padding: 0;
661-
padding-left: 15%;
662-
padding-right: 15%;
663-
padding-bottom: 0;
664-
}
665-
}
666581

667582
/* special title code ends */
668583

@@ -671,6 +586,7 @@
671586
display: block;
672587
width: 100%;
673588
border-radius: 15px;
589+
674590
}
675591
.BO-edit{
676592

public/css/styles.css

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

todo.txt

+13
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,16 @@ orderdetails with orderid for admin
44

55

66
user.js 383 till catch setted
7+
8+
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
notes

views/admin/edit-products.hbs

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@
3232
</div>
3333

3434
</div> <!-- form-group // -->
35-
35+
<div class="form-group">
36+
<label for="name" class="col-sm-3 control-label font-weight-bold"><i class="fa fa-inr pr-2" aria-hidden="true"></i> Old Price</label>
37+
<div class="col-sm-9">
38+
<input type="text" class="form-control" value="{{product.Oldprice}}" name="Oldprice" id="name" placeholder="₹ Enter the Old Price" >
39+
</div>
40+
</div> <!-- form-group // -->
3641
<div class="form-group">
3742
<label for="name" class="col-sm-3 control-label font-weight-bold">Only one weight available?</label>
3843
<div class="col-sm-9">

views/admin/products-add.hbs

+6-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@
4242
<input type="text" class="form-control" name="Price" id="name" placeholder="₹ Enter the Price" required>
4343
</div>
4444
</div> <!-- form-group // -->
45-
45+
<div class="form-group">
46+
<label for="name" class="col-sm-3 control-label font-weight-bold"><i class="fa fa-inr pr-2" aria-hidden="true"></i> Old Price</label>
47+
<div class="col-sm-9">
48+
<input type="text" class="form-control" name="Oldprice" id="name" placeholder="₹ Enter the Old Price" >
49+
</div>
50+
</div> <!-- form-group // -->
4651
<div class="form-group">
4752
<label for="name" class="col-sm-3 control-label font-weight-bold">Only one weight available?</label>
4853
<div class="col-sm-9">

views/user/index.hbs

+45-17
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,34 @@
5252

5353

5454
{{!-- first-owl-carasoul --}}
55-
55+
56+
{{#if SeasonName}}
57+
<div>
58+
<p class="BO-edit">{{SeasonName}}</p>
59+
60+
</div>
5661
<div class="home-demo container-fluid ">
5762
<div class="row ml-4">
58-
<p class="BO-edit">Best Offers</p>
59-
<div class="owl-carousel owl-one ">
60-
{{#each cakes}}
63+
<div class="owl-carousel owl-one owl-theme ">
64+
{{#each seasonalProducts}}
6165
<div class="item " >
62-
<a href="/product-detail-page?id={{this._id}}"> <img class="img-fluid w-100" src="product-images/{{this._id}}1.jpg" alt="" ></a>
63-
</div>
66+
<div class="position-relative bg-light overflow-hidden" >
67+
<a href="/product-detail-page?id={{this._id}}"> <img class="img-fluid w-100" src="product-images/{{this._id}}1.jpg" alt="" ></a>
68+
{{!-- <div class="bg-secondary rounded text-white position-absolute start-0 top-0 m-4 py-1 px-3">New</div> --}}
69+
</div>
70+
<div class="text-center p-2">
71+
<a class="d-block h5 mb-2" href="/product-detail-page?id={{this._id}}">{{this.Name}}</a>
72+
73+
</div>
74+
</div>
6475
{{/each}}
6576

6677
</div>
6778
</div>
6879
</div>
6980

81+
{{/if}}
82+
7083
{{!-- first owl carasoul ends here --}}
7184

7285

@@ -99,6 +112,8 @@
99112
<div class="text-center p-4">
100113
<a class="d-block h6 mb-2" href="/product-detail-page?id={{this._id}}">{{this.Name}}</a>
101114
<span style="font-weight: 550;" class="text-primary ">₹ {{this.Price}}</span>
115+
<span class="text-body text-decoration-line-through">{{this.Oldprice}}</span>
116+
102117
</div>
103118
{{!-- <div class="d-flex border-top">
104119
<small class="w-50 text-center border-end py-2">
@@ -148,8 +163,9 @@
148163

149164
{{!-- Special Title --}}
150165
<div>
151-
<p class="special-title"><span class="special-span">{{SeasonName}} Specials</span></p>
152-
</div>
166+
<p class="BO-edit">{{SeasonName}}</p>
167+
168+
</div>
153169

154170
{{!-- Ends soecial title --}}
155171

@@ -215,8 +231,8 @@
215231

216232
{{!-- Special Title --}}
217233
<div>
218-
<p class="special-title"><span class="special-span">Birthday Specials</span></p>
219-
</div>
234+
<p class="BO-edit">Best Offers</p>
235+
</div>
220236

221237
{{!-- Ends soecial title --}}
222238

@@ -479,27 +495,39 @@ account_circle
479495
480496
$(document).ready(function(){
481497
$('.owl-one').owlCarousel({
482-
center: true,
483-
loop:true,
498+
ltr:true,
499+
500+
484501
margin:10,
485502
autoplay:true,
486-
autoplayTimeout:2500,
503+
autoplayTimeout:2000,
487504
autoplayHoverPause:true,
505+
dots: false,
488506
responsive:{
489507
0:{
490-
items:2
508+
loop:true,
509+
items:2,
510+
491511
},
492512
600:{
513+
loop:false,
493514
items:3
494515
},
495516
1000:{
496-
items:4
517+
loop:false,
518+
items:4,
519+
520+
nav: true,
521+
dots: false,
522+
navText: ['<span aria-label="Previous">‹</span>','<span aria-label="Next">›</span>'],
523+
lazyLoad:true,
497524
}
498525
},
499526
500527
});
501528
{{!-- second owl carousel startsss--}}
502529
$('.owl-two').owlCarousel({
530+
503531
loop:true,
504532
margin:10,
505533
responsiveClass:true,
@@ -523,15 +551,15 @@ $('.owl-two').owlCarousel({
523551
524552
{{!-- second owl carousel endsss--}}
525553
526-
527-
$('.play').on('click',function(){
554+
$('.play').on('click',function(){
528555
owl.trigger('play.owl.autoplay',[1000])
529556
})
530557
$('.stop').on('click',function(){
531558
owl.trigger('stop.owl.autoplay')
532559
})
533560
534561
562+
535563
});
536564
537565

0 commit comments

Comments
 (0)