Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified db.sqlite3
Binary file not shown.
Binary file modified ecommerce/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file modified ecommerce/__pycache__/settings.cpython-38.pyc
Binary file not shown.
Binary file modified ecommerce/__pycache__/urls.cpython-38.pyc
Binary file not shown.
Binary file modified ecommerce/__pycache__/wsgi.cpython-38.pyc
Binary file not shown.
Binary file modified store/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file modified store/__pycache__/admin.cpython-38.pyc
Binary file not shown.
Binary file modified store/__pycache__/apps.cpython-38.pyc
Binary file not shown.
Binary file modified store/__pycache__/models.cpython-38.pyc
Binary file not shown.
Binary file modified store/__pycache__/urls.cpython-38.pyc
Binary file not shown.
Binary file modified store/__pycache__/utils.cpython-38.pyc
Binary file not shown.
Binary file modified store/__pycache__/views.cpython-38.pyc
Binary file not shown.
Binary file modified store/migrations/__pycache__/0001_initial.cpython-38.pyc
Binary file not shown.
Binary file modified store/migrations/__pycache__/0002_product_image.cpython-38.pyc
Binary file not shown.
Binary file modified store/migrations/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
6 changes: 3 additions & 3 deletions store/templates/store/cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<th><h5>Items: <strong>{{order.get_cart_items}}</strong></h5></th>
<th><h5>Total:<strong> ${{order.get_cart_total|floatformat:2}}</strong></h5></th>
<th>
<a style="float:right; margin:5px;" class="btn btn-success">Checkout</a>
<a style="float:right; margin:5px;" class="btn btn-success" href="/checkout">Checkout</a>
</th>
</tr>
</table>
Expand All @@ -38,9 +38,9 @@
<div>
<p >{{item.quantity}}</p>
<div>
<img data-action="add" class="chg-quantity update-cart" src="{% static 'images/arrow-up.png' %}">
<img data-product={{item.product.id}} data-action="add" class="chg-quantity update-cart" src="{% static 'images/arrow-up.png' %}">

<img data-action="remove" class="chg-quantity update-cart" src="{% static 'images/arrow-down.png' %}">
<img data-product={{item.product.id}} data-action="remove" class="chg-quantity update-cart" src="{% static 'images/arrow-down.png' %}">
</div>
</div>
<div style="flex:1"><p>${{item.get_total|floatformat:2}}</p></div>
Expand Down
2 changes: 1 addition & 1 deletion store/templates/store/store.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<h6><strong>{{product.name}}</strong></h6>
<hr>

<button class="btn btn-outline-secondary add-btn update-cart">Add to Cart</button>
<button data-product={{product.id}} data-action="add" class="btn btn-outline-secondary add-btn update-cart">Add to Cart</button>

<a class="btn btn-outline-success" href="#">View</a>
<h4 style="display: inline-block; float: right"><strong>${{product.price}}</strong></h4>
Expand Down
2 changes: 1 addition & 1 deletion store/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@

path('update_item/', views.updateItem, name="update_item"),
path('process_order/', views.processOrder, name="process_order"),

path('checkout/', views.checkout, name="checkout"),
]