Skip to content
Snippets Groups Projects
Commit 7a39b236 authored by Aqeel Rehman's avatar Aqeel Rehman
Browse files

Upload New File

parent ff9c2fd3
No related branches found
No related tags found
No related merge requests found
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Powerlifting Shop</title>
<link rel="stylesheet" href="{{ url_for('Static', filename='styles.css') }}">
</head>
<body>
<a class="gallery-item-link" href="{{ url_for('single_Product_Page', item=item.id) }}">
<img src="{{ item.image }}" style="width:100%" onmouseover="showDescription(this, '{{ product.id }}')" onmouseout="hideDescription(this, '{{ product }}')">
<h1>{{ product.name }}</h1>
<p class="price"> £{{ "{:.2f}".format(product.price) }}</p>
</a>
{% set numInBasket = 0 %}
{% if product.name in basket %}
{% set numInBasket = basket[product.name] %}
{% endif %}
<div class="gallery-item-add2cart-div">
<input name="add2cart-input" type="number" class="add2cart-input" min="0" max="100" value="{{ numInBasket }}">
<button name="add2cart-button" class="add2cart-button" onclick="galleryAddToCart(this, '{{ product.id }}')">
{% if numInBasket == 0 %}
Add to Basket
{% else %}
Added ✔️
{% endif %}
</button>
</div>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment