Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cart #2

Open
themohitbhatia opened this issue Jan 31, 2023 · 5 comments
Open

Cart #2

themohitbhatia opened this issue Jan 31, 2023 · 5 comments

Comments

@themohitbhatia
Copy link

@boxabhi cart.html is missing from the repository. Please add it as soon as possible.

@Samcool1990
Copy link

Yes. The cart is not there

@Khalidur-sujon
Copy link

Khalidur-sujon commented May 3, 2023

**Here is the cart.html file. **

{% extends 'base/base.html' %} {% block content %}

					<tbody>
						{% for cart_item in cart.cart_items.all %}
						<tr>
							<td>
								<figure class="itemside">
									<div class="aside">
										<img
											src="/media/{{cart_item.product.product_images.first.image }}"
											class="img-sm"
										/>
									</div>

									<figcaption class="info">
										<a href="" class="title text-dark"
											>{{cart_item.product.product_name}}</a
										>
										{% if cart_item.size_variant %}
										<p class="text-muted small">
											Size:
											{{cart_item.size_variant.Size_name}}
											<br />
											Brand: Gucci
										</p>
										{% endif %}
									</figcaption>
								</figure>
							</td>
							<td>
								<select class="form-control">
									<option>1</option>
									<option>2</option>
									<option>3</option>
									<option>4</option>
								</select>
							</td>
							<td>
								<div class="price-wrap">
									<var class="price"
										>${{cart_item.get_product_price}}.00</var
									>
								</div>
								<!-- price-wrap .// -->
							</td>
							<td class="text-right">
								<a
									data-original-title="Save to Wishlist"
									title=""
									href=""
									class="btn btn-light"
									data-toggle="tooltip"
								>
									<i class="fa fa-heart"></i
								></a>
								<a
									href="{% url 'remove_cart_item' cart_item.uid %}"
									class="btn btn-light"
								>
									Remove</a
								>
							</td>
						</tr>
						{% endfor %}
					</tbody>
				</table>

				<div class="card-body border-top">
					<a href="#" class="btn btn-primary float-md-right">
						Make Purchase <i class="fa fa-chevron-right"></i>
					</a>
					<a href="{% url 'home' %}" class="btn btn-light">
						<i class="fa fa-chevron-left"></i> Continue shopping
					</a>
				</div>
			</div>
			<!-- card.// -->

			<div class="alert alert-success mt-3">
				<p class="icontext">
					<i class="icon text-success fa fa-truck"></i> Free
					Delivery within 1-2 weeks
				</p>
			</div>
		</main>
		<!-- col.// -->
		<aside class="col-md-3">
			<div class="card mb-3">
				<div class="card-body">
					<form>
						<div class="form-group">
							<label>Have coupon?</label>
							<div class="input-group">
								<input
									type="text"
									class="form-control"
									name=""
									placeholder="Coupon code"
								/>
								<span class="input-group-append">
									<button class="btn btn-primary">
										Apply
									</button>
								</span>
							</div>
						</div>
					</form>
				</div>
				<!-- card-body.// -->
			</div>
			<!-- card .// -->
			<div class="card">
				<div class="card-body">
					<dl class="dlist-align">
						<dt>Total price:</dt>
						<dd class="text-right">
							USD {{cart.get_cart_total}}
						</dd>
					</dl>
					<dl class="dlist-align">
						<dt>Discount:</dt>
						<dd class="text-right">USD 658</dd>
					</dl>
					<dl class="dlist-align">
						<dt>Total:</dt>
						<dd class="text-right h5">
							<strong>${{cart.get_cart_total}}</strong>
						</dd>
					</dl>
					<hr />
					<p class="text-center mb-3">
						<img src="images/misc/payments.png" height="26" />
					</p>
				</div>
				<!-- card-body.// -->
			</div>
			<!-- card .// -->
		</aside>
		<!-- col.// -->
	</div>
</div>
<!-- container .//  -->

{% endblock %}

Product Quantity Price

@DhananjayKathuria
Copy link

@Khalidur-sujon or anybody could you please share a zip of whole project please... It would be very very generous and helpful of you.

@Samcool1990
Copy link

Samcool1990 commented Sep 16, 2023 via email

@umang220
Copy link

any one knows how to get js and font folder which needs to be pasted at ecomm/public/static location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants