Skip to content

Commit

Permalink
Merge pull request #414 from Riyachauhan11/main
Browse files Browse the repository at this point in the history
adding checkout and add to cart options to sticker page
  • Loading branch information
aslams2020 authored Nov 9, 2024
2 parents f2bdebb + 2e51dc2 commit a7d5ab7
Show file tree
Hide file tree
Showing 3 changed files with 402 additions and 151 deletions.
84 changes: 83 additions & 1 deletion checkout.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ <h2>Order Details</h2>
<button class="place-order-button" onclick="placeOrder()">Place Order</button>
</div>
</div>


<script>
document.addEventListener('DOMContentLoaded', () => {
Expand Down Expand Up @@ -288,7 +289,88 @@ <h2>Order Details</h2>
'Ironman Watch': {
image: 'assets/merchandise/watch.webp',
price: 50
}
},
'Sticker 1':{
image: 'assets/stickers/cartoon-red-yellow-robot.jpg',
price: 1.99
},
'Sticker 2':{
image: 'assets/stickers/drawing-iron-man-character.jpg',
price: 1.99
},
'Sticker 3':{
image: 'assets/stickers/iron-man-simplified-head.avif',
price: 1.99
},
'Sticker 4':{
image: 'assets/stickers/iron-man-vector-illustration-flat-2.avif',
price: 1.99
},
'Sticker 5':{
image: 'assets/stickers/iron-man-vector-illustration3.avif',
price: 1.99
},
'Sticker 6':{
image: 'assets/stickers/ironman-sticker_1141877-798.avif',
price: 1.99
},
'Sticker 7':{
image: 'assets/stickers/ironman-sticker_2.avif',
price: 1.99
},
'Sticker 8':{
image: 'assets/stickers/sticker-iron-man-flying-through-air.jpg',
price: 1.99
},
'Sticker 9':{
image: 'assets/stickers/sticker-iron-man-with-glowing-eyes.jpg',
price: 1.99
},
'Sticker 10':{
image: 'assets/stickers/iron-man-sticker_10.jpg',
price: 1.99
},
'Sticker 11':{
image: 'assets/stickers/sticker11.avif',
price: 1.99
},
'Sticker 12':{
image: 'assets/stickers/ironman-character-2-numberj_12.jpg',
price: 1.99
},
'Sticker 13':{
image: 'assets/stickers/hand-drawing-little-realistic-ironman-13.avif',
price: 1.99
},
'Sticker 14':{
image: 'assets/stickers/sticker15.avif',
price: 1.99
},
'Sticker 15':{
image: 'assets/stickers/sticker16-1.avif',
price: 1.99
},
'Sticker 16':{
image: 'assets/stickers/sticker16.jpg',
price: 1.99
},
'Sticker 17':{
image: 'assets/stickers/sticker17.jpg',
price: 1.99
},
'Sticker 18':{
image: 'assets/stickers/sticker18.jpg',
price: 1.99
},
'Sticker 19':{
image: 'assets/stickers/sticker19.avif',
price: 1.99
},
'Sticker 20':{
image: 'assets/stickers/sticker20.jpg',
price: 1.99
},

};

// Modified addToCart function
Expand Down
Loading

0 comments on commit a7d5ab7

Please sign in to comment.