Configure PayPal integration and cart checkout error display

This commit is contained in:
Zach committed 2026-12-01 04:20:38 +00:00
1 parent 62065828e1
commit cf07fc5d9b
98 files changed
+1430 -281

No files matched your search

@@ -0,0 +1,18 @@
# Generated by Django 5.2.19 on 2026-11-26 01:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='verified_by_seller',
field=models.BooleanField(default=False, help_text='Show the Verified by Seller badge on this listing.'),
),
]
@@ -0,0 +1,45 @@
# Generated by Django 5.2.19 on 2026-11-26 11:05
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0027_alter_chapter_price_usd_managedpage'),
('shop', '0002_product_verified_by_seller'),
]
operations = [
migrations.AddField(
model_name='order',
name='stripe_live',
field=models.BooleanField(editable=False, null=True),
),
migrations.AddField(
model_name='orderitem',
name='chapter',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='catalog.chapter'),
),
migrations.AddField(
model_name='product',
name='member_tier',
field=models.PositiveSmallIntegerField(blank=True, choices=[(1, 'Early Access'), (2, 'Studio Vault')], null=True),
),
migrations.AddField(
model_name='product',
name='sample_chapter',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='shop_editions', to='catalog.chapter'),
),
migrations.AddField(
model_name='subscription',
name='entitlement_tier',
field=models.PositiveSmallIntegerField(editable=False, null=True),
),
migrations.AddField(
model_name='subscription',
name='stripe_live',
field=models.BooleanField(editable=False, null=True),
),
]
+20
View File
@@ -0,0 +1,20 @@
from decimal import Decimal
from django.db import migrations
def seed(apps, schema_editor):
Product = apps.get_model('shop', 'Product')
products = Product.objects.using(schema_editor.connection.alias)
for slug, label, tier in [('slx-monthly-early-access', 'Early Access', 1),
('slx-monthly-studio-vault', 'Studio Vault', 2)]:
if not products.filter(kind='subscription', member_tier=tier).exists():
products.get_or_create(slug=slug, defaults={
'title': f'Slump X Land Monthly · {label}', 'kind': 'subscription',
'billing_interval': 'month', 'member_tier': tier, 'price_usd': Decimal('0.50'),
'track_stock': False, 'active': False,
})
class Migration(migrations.Migration):
dependencies = [('shop', '0003_order_stripe_live_orderitem_chapter_and_more')]
operations = [migrations.RunPython(seed, migrations.RunPython.noop)]
@@ -0,0 +1,18 @@
# Generated by Django 5.2.19 on 2026-11-26 12:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0004_fan_club_products'),
]
operations = [
migrations.AddField(
model_name='product',
name='comparison',
field=models.TextField(blank=True, help_text='One benefit per line, using Feature: Details. Used on the membership comparison chart.', max_length=3000),
),
]
+18
View File
@@ -0,0 +1,18 @@
# Generated by Django 5.2.19 on 2026-11-26 13:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0005_product_comparison'),
]
operations = [
migrations.AlterField(
model_name='product',
name='member_tier',
field=models.PositiveSmallIntegerField(blank=True, choices=[(1, 'Early Access'), (2, 'Studio Vault'), (3, 'Collector’s Circle')], null=True),
),
]