Skip to main content

vault-funeral-tech-embed

Django package for embedding Vault Funeral Tech commerce components. Serves the prebuilt IIFE assets and provides template tags for all components — no React build step required.

Installation

pip install vault-funeral-tech-embed

Add to INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    "vault_embed",
]

Run collectstatic to copy the embed assets into your static root:

python manage.py collectstatic

Configuration

Add to settings.py:

import os

# Required
VAULT_API_URL    = os.environ.get("VAULT_API_URL", "https://api.yourdomain.com")
VAULT_TOKEN      = os.environ.get("VAULT_TOKEN", "")

# Required for Checkout and PaymentMethodList
VAULT_STRIPE_KEY = os.environ.get("VAULT_STRIPE_KEY", "")

# Optional — override brand theme
VAULT_THEME = {
    "primaryColor": "#2d6a4f",
    "fontFamily": "Inter, sans-serif",
    "borderRadius": "6px",
}
Setting Description
VAULT_API_URL Required. Medusa backend base URL.
VAULT_TOKEN Required. Medusa customer JWT.
VAULT_STRIPE_KEY Stripe publishable key. Required for checkout and payment-method components.
VAULT_THEME Dict of theme overrides: primaryColor, fontFamily, borderRadius.

Quick Start

Load the tags in your base template's <head>, then place components wherever you need them:

{% load vault_embed %}
<!DOCTYPE html>
<html>
<head>
  {% vault_head %}
</head>
<body>
  {% vault_product_catalog columns=3 show_filters=True %}
</body>
</html>

Passing a per-user token

When users authenticate through your Django app, pass their JWT from view context instead of the global setting:

# views.py
def catalog_view(request):
    return render(request, "catalog.html", {
        "vault_token": request.session.get("vault_jwt", ""),
    })
{% vault_head token=vault_token %}

Template Tags

All tags accept optional theme override keyword arguments: primary_color, accent_color, font_family, card_border_radius, button_border_radius.


{% vault_head %}

Outputs the <script> and <link> tags plus the global provider config. Place in <head>.

{% vault_head %}
{% vault_head token=vault_token stripe_key="pk_live_..." primary_color="#2d6a4f" %}
Param Description
token Customer JWT. Defaults to settings.VAULT_TOKEN.
api_url API base URL. Defaults to settings.VAULT_API_URL.
stripe_key Stripe publishable key. Defaults to settings.VAULT_STRIPE_KEY.
primary_color CTA color override.

{% vault_store_home %}

Full storefront landing page with categories, new arrivals, and curated collections.

{% vault_store_home show_categories=True show_new_arrivals=True max_collections=3 %}
Param Default Description
show_categories True Show the category grid.
show_new_arrivals True Show the new arrivals carousel.
show_collections True Show curated collections.
max_collections 4 Max collections to display.

{% vault_product_catalog %}

Filterable, paginated product grid.

{% vault_product_catalog columns=3 category_handle="caskets" limit=24 show_filters=True %}
Param Default Description
limit 20 Products per page.
category_id — Filter by Medusa category ID.
category_handle — Filter by category handle, e.g. "caskets".
vendor_id — Filter to a specific vendor.
brand_id — Filter to a specific brand.
funeral_home_id — Filter to a funeral home's products.
columns "auto" 2, 3, 4, or "auto".
show_filters True Show the filter panel.
display_search True Show the search bar.
show_sort True Show the sort dropdown.
show_pagination True Show pagination controls.
show_family_badges False Badge products already in the family catalog.

{% vault_family_product_catalog %}

Family-scoped catalog with per-product markup applied. funeral_home_id is required.

{% vault_family_product_catalog funeral_home_id="fh_01JKHS..." columns=3 %}
Param Required Description
funeral_home_id Yes Funeral home whose family catalog to display.
limit No Products per page. Default 20.
columns No 2, 3, 4, or "auto".
show_sort No Show sort dropdown.
show_pagination No Show pagination controls.
show_family_badges No Show family catalog badges.

{% vault_cart %}

Cart panel with line items and subtotal.

{% vault_cart %}

{% vault_checkout %}

Multi-step checkout: address → shipping → Stripe payment → confirmation. Requires VAULT_STRIPE_KEY.

{% vault_checkout %}

{% vault_order_list %}

Paginated list of the customer's past orders.

{% vault_order_list %}

{% vault_order_details %}

Full detail view for a single order. order_id is required.

{% vault_order_details order_id=order_id %}
Param Required Description
order_id Yes Medusa order ID to display.

License

MIT

Metadata

Release files for vault-funeral-tech-embed 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vault-funeral-tech-embed 0.1.3
File Size Uploaded Provenance Actions
vault_funeral_tech_embed-0.1.3.tar.gz 110.9 kB Without provenance Details for vault_funeral_tech_embed-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vault-funeral-tech-embed 0.1.3
File Interpreter ABI Platform Actions
vault_funeral_tech_embed-0.1.3-py3-none-any.whl Python 3 none any Details for vault_funeral_tech_embed-0.1.3-py3-none-any.whl

Total release size: 222.2 kB

Release files / vault_funeral_tech_embed-0.1.3.tar.gz

Download URL vault_funeral_tech_embed-0.1.3.tar.gz
Size 110.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b412b99bdd2d4e50f0b96f50f4e1002a3433609ba99ff515e1972393787e5a1d
BLAKE2b-256 checksum
How to use checksums
fa3e2626148702b96e5472a062ed3b315fbc99b83929a6135da9577419f6f8b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / vault_funeral_tech_embed-0.1.3-py3-none-any.whl

Download URL vault_funeral_tech_embed-0.1.3-py3-none-any.whl
Size 111.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6979a06075e4869ac6d126b10b0a4d7dc2556c10b8e2ae21e17489879d38f484
BLAKE2b-256 checksum
How to use checksums
1ed1192fe2562db2f6928cdc621b99512f98fb542f8ecd5560e3b03d6a934d64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for vault-funeral-tech-embed 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page