Configure PayPal integration and cart checkout error display
This commit is contained in:
1 parent
62065828e1
commit
cf07fc5d9b
98 files changed
+1430
-281
No files matched your search
+5
-5
@@ -5,16 +5,16 @@ from .models import Order, OrderItem, Product, Subscription
|
||||
|
||||
@admin.register(Product, site=studio)
|
||||
class ProductAdmin(admin.ModelAdmin):
|
||||
list_display = ['title', 'kind', 'price_usd', 'stock', 'active', 'featured', 'position']
|
||||
list_filter = ['kind', 'active', 'featured']
|
||||
list_display = ['title', 'kind', 'price_usd', 'stock', 'active', 'featured', 'verified_by_seller', 'position']
|
||||
list_filter = ['kind', 'active', 'featured', 'verified_by_seller']
|
||||
list_editable = ['price_usd', 'stock', 'active', 'position']
|
||||
search_fields = ['title', 'summary']
|
||||
prepopulated_fields = {'slug': ('title',)}
|
||||
fieldsets = [
|
||||
('Product', {'fields': ['title', 'slug', 'kind', 'summary', 'description', 'image', 'price_usd', 'active', 'featured', 'position']}),
|
||||
('Product', {'fields': ['title', 'slug', 'kind', 'summary', 'description', 'image', 'price_usd', 'active', 'featured', 'verified_by_seller', 'position']}),
|
||||
('Physical Inventory & Shipping', {'fields': ['track_stock', 'stock', 'shipping_usd']}),
|
||||
('Digital Download', {'fields': ['digital_file']}),
|
||||
('Subscription Billing', {'fields': ['billing_interval', 'stripe_price_id', 'paypal_plan_id']}),
|
||||
('Digital Download', {'fields': ['digital_file', 'sample_chapter']}),
|
||||
('Subscription Billing', {'fields': ['billing_interval', 'stripe_price_id', 'paypal_plan_id', 'member_tier', 'comparison']}),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user