frontend error management enhancement
This commit is contained in:
33
app/templates/shop/errors/404.html
Normal file
33
app/templates/shop/errors/404.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{% extends "shop/errors/base.html" %}
|
||||
|
||||
{% block icon %}🔍{% endblock %}
|
||||
|
||||
{% block title %}404 - Page Not Found{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if vendor and theme and theme.branding and theme.branding.logo %}
|
||||
<img src="{{ theme.branding.logo }}" alt="{{ vendor.name }}" class="vendor-logo">
|
||||
{% endif %}
|
||||
|
||||
<div class="error-icon">🔍</div>
|
||||
<div class="status-code">404</div>
|
||||
<div class="status-name">Page Not Found</div>
|
||||
<div class="error-message">
|
||||
Sorry, we couldn't find the page you're looking for. The product or page may have been moved or is no longer available.
|
||||
</div>
|
||||
|
||||
<div class="action-buttons">
|
||||
<a href="/" class="btn btn-primary">Continue Shopping</a>
|
||||
<a href="/products" class="btn btn-secondary">View All Products</a>
|
||||
</div>
|
||||
|
||||
<div class="support-link">
|
||||
Can't find what you're looking for? <a href="/contact">Contact us</a> and we'll help you find it.
|
||||
</div>
|
||||
|
||||
{% if vendor %}
|
||||
<div class="vendor-info">
|
||||
{{ vendor.name }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user