Fixes and updates
This commit is contained in:
parent
642c7aaf9f
commit
1f96330e67
18
src/core/migrations/0007_product_subtitle.py
Normal file
18
src/core/migrations/0007_product_subtitle.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.0.2 on 2022-04-30 15:52
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0006_alter_order_options_order_shipping_total'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='subtitle',
|
||||
field=models.CharField(blank=True, max_length=250),
|
||||
),
|
||||
]
|
||||
@ -42,6 +42,7 @@ class ProductManager(models.Manager):
|
||||
|
||||
class Product(models.Model):
|
||||
name = models.CharField(max_length=250)
|
||||
subtitle = models.CharField(max_length=250, blank=True)
|
||||
description = models.TextField(blank=True)
|
||||
sku = models.CharField(max_length=255, unique=True)
|
||||
price = models.DecimalField(
|
||||
|
||||
@ -10,10 +10,10 @@
|
||||
<article>
|
||||
<section>
|
||||
<h2>We love coffee!</h2>
|
||||
<p><strong>If you’ve found Port Townsend Coffee Roasting Co., you probably love coffee so much that you seek out the best tasting, Certified Fair Trade Organic coffees available.</strong></p>
|
||||
<p><strong>If you’ve found Port Townsend Roasting Co., you probably love coffee so much that you seek out the best tasting, Certified Fair Trade Organic coffees available.</strong></p>
|
||||
<p>You’ve probably been around coffee for years, perhaps starting with Specialty Coffees in the 1980’s, and know your way around fairly well. How and where coffee is grown and harvested, how it’s roasted, how to brew it. You value fair, guaranteed wages for growers and sustainable stewardship of the land where it’s grown.</p>
|
||||
<p>No matter how much you drink, if you’re like us, great coffee is an important perk in your life. You are not alone in this… coffee is the one of the world’s most heavily traded commodities. In addition to the impact it has as a crop on the economies of producing countries, the cafe and coffee house industry touches millions of lives everyday, worldwide, as well.</p>
|
||||
<p>We love the place coffee takes in conversation, culture and commerce. We seek out the world’s rarest coffees for taste and consistency. We roast and blend coffees at <strong>Port Townsend Coffee Roasting Co.</strong> with the hope that you will enjoy every cup.</p>
|
||||
<p>We love the place coffee takes in conversation, culture and commerce. We seek out the world’s rarest coffees for taste and consistency. We roast and blend coffees at <strong>Port Townsend Roasting Co.</strong> with the hope that you will enjoy every cup.</p>
|
||||
</section>
|
||||
<section>
|
||||
<figure>
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<h4>Problem with your online order or have a question?</h4>
|
||||
<p>
|
||||
Please contact us, we’re happy to help you over the phone<br>
|
||||
<a href="tel:+13603855856">(360) 385-5856</a> between 8:00 am and 10:00 pm Pacific Time.
|
||||
<a href="tel:+13603855856">(360) 385-5856</a> Mon-Fri between 9:00 am and 5:00 pm Pacific Time.
|
||||
</p>
|
||||
</header>
|
||||
<section>
|
||||
|
||||
@ -19,6 +19,7 @@
|
||||
</figure>
|
||||
<section class="product__info">
|
||||
<h1>{{product.name}}</h1>
|
||||
<h3>{{product.subtitle}}</h3>
|
||||
<p>{{product.description}}</p>
|
||||
<p class="site__ft-stamp"><img class="fair_trade--small" src="{% static 'images/fair_trade_stamp.png' %}" alt="Fair trade"></p>
|
||||
<p>$<strong>{{product.price}}</strong></p>
|
||||
|
||||
@ -21,6 +21,7 @@
|
||||
</figure>
|
||||
<div>
|
||||
<h3>{{ product.name }}</h3>
|
||||
<h5>{{ product.subtitle }}</h5>
|
||||
<p>{{product.description|truncatewords:20}}</p>
|
||||
<p>$<strong>{{product.price}}</strong> | {{product.weight.oz|floatformat}}oz</p>
|
||||
</div>
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
<meta content="chrome=1" http-equiv="X-UA-Compatible">
|
||||
<title>{% block head_title %}{% endblock %} Port Townsend Coffee</title>
|
||||
<meta name="author" content="Nathan Chapman">
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
@ -89,13 +90,14 @@
|
||||
<p>
|
||||
<strong>Problem with your online order or have a question?</strong><br>
|
||||
Please <a href="{% url 'storefront:contact' %}">contact us</a>, we’re happy to help you over the phone at <a href="tel:+13603855856">(360) 385-5856</a><br>
|
||||
between 8:00 am and 10:00 pm Pacific Time.<br>
|
||||
Mon-Fri between 9:00 am and 5:00 pm Pacific Time.<br>
|
||||
<address>854 East Park Ave. Suite 1, Port Townsend, WA 98368</address>
|
||||
</p>
|
||||
<p>
|
||||
<small>Copyright © 2016-{% now "Y" %} Better Living Food Company Inc.<br>
|
||||
<a href="{% url 'storefront:contact' %}">Contact</a> | Fair Trade | Organic
|
||||
</small>
|
||||
Better Living Food Company Inc.℠<br>
|
||||
<small><a href="{% url 'storefront:contact' %}">Contact</a> | Fair Trade | Organic</small>
|
||||
<br>
|
||||
<small>Website by <a href="https://nathanjchapman.com">Nathan Chapman</a></small>
|
||||
<br><br>
|
||||
<img class="site__ft-stamp" src="{% static 'images/fair_trade_stamp.png' %}" alt="Fair trade">
|
||||
</p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user