Bitcart Docs
TwitterTest
  • Introduction
  • Bitcart Basics
    • Use Case
    • Walkthrough
    • Bitcart vs others
    • Try it out
  • Deployment
    • Configurator
    • Docker Deployment
    • Local Deployment
    • Manual Deployment
    • Hardware Deployment
    • Raspberry Pi Deployment
    • Third-Party Hosting
  • Your first invoice
    • Electrum wallet
  • Guides
    • ETH payments plugin
    • Bitcart Plugins Development
    • Default nodes/your own node
    • One domain mode
    • Backups
    • Lightning Network
    • Transaction speed
    • Fiat currencies support
    • Templates
    • Themes
    • Store POS
    • Server management settings
    • Tor
    • Multiple deployments on one server
  • Integrations
    • Shopify
    • WooCommerce
    • WHMCS
    • FOSSBilling
    • Odoo
    • Custom Integration
  • Examples
    • Atomic Tip Bot
    • Templates
  • Support and Community
    • FAQ and common issues
      • General FAQ
      • Server Settings FAQ
      • Deployment FAQ
      • Terminology FAQ
      • Stores FAQ
      • Altcoin FAQ
    • Support
    • Troubleshooting an issue
    • Contribute
    • Community
  • Development
    • Architecture
    • Developing Locally
    • How to add an Altcoin
    • Security Disclosures
Powered by GitBook
On this page

Was this helpful?

Edit on Git
Export as PDF
  1. Examples

Templates

PreviousAtomic Tip BotNextFAQ and common issues

Last updated 4 years ago

Was this helpful?

Templates are a powerful way to customize your store's checkout flow.

Please read the first.

Here are some examples of ready templates.

As plain text templates are pretty simple, we show complex html examples. Ensure to enable .

Note: the templates contain a lot of boilerplate code to workaround different email clients rendering issues. All examples are self-contained and are ready to be used in production.

They were generated by this and modified to be actual templates.

Simple summary table

This template is just a simple example of how to use html in your templates for better design. This example utilizes a table with some custom styles to display bought items.

product.html is the template that renders each individual product.

We use some of the available variables to show the product price, quantity selected, and final calculated price. store.default_currency can be used to get product's currency.

And in shop.html template (containing most of the design), we just use:

{% for product in products %}
{{product}}
{% endfor %}

To include all products' rendered templates.

And we also use {{store.name}} to display store name at the top.

templates guide
html template rendering
email template generator