A full-featured e-commerce website based on Django, Mezzanine and Cartridge. Bitcoin payments are accepted here. Uses a modern HTML theme available here.
Supports almost all e-ecommerce features available in Cartridge. Namely you can expect to have:
- Customizable Admin Interface
- Shopping Cart
- Sales
- Discount Codes
- Product Categories
- Product Ordering
- Search
- Related Products
- Upsell products
Plus...
- A Sleek UI
- Bitcoin Payments
- Product Filtering
- Recently Viewed Products
- and more…
- Clone this repo
- Install
virtualenv
if haven’t installed it - Create a new environment -
mkvirtualenv ecommerce
cd
to cloned repopip install -r requirements.py
- installs the required modulespython manage.py migrate
- applies the migrationspython manage.py createsuperuser
- create an admin user- Navigate to http://localhost:8000/admin and enter the credentials from the previous step
- From left panel click on Pages then choose “Home page” from “Add…” dropdown
- Fill in the fields, scroll down to “Meta data” tab and type “/” without quotes in URL field
- Click Save and navigate to http”//localhost:8000
To add sliders first create Gallery pages add as many images as you like than drag those Gallery instances under Homepage like in picture below
Website leverages blockchain.info's Receive Payments API V2 for accepting bitcoin payments. Follow the instructions on the linked page to sign up for a wallet, request an API key and find out your XPUB. You then need to copy over those values into your “local_settings.py” file. More delails in this blog post
Deployment is rather easy because Mezzanine is already configured with a deployment tool like Fabric. For specific deployment instructions visit this blog post
- Log in to admin UI
- From left panel click "Settings"
- Scroll down to "Social" tab
- Fill in the links to social platforms
- Leave blank those you don't want to be displayed
- Log in to admin UI
- From left panel choose "Pages"
- Choose a Category or create a new one
- Scroll down to Product filters
- Choose an option shared among all the products in that category
- Click Save
- Navigate to any product or category page on main site
- Select an option and click Apply to see filtred products
- Log in to admin UI
- Click on a product in "Products" menu
- Scroll down to "Other products" expandable tab
- Choose Related and/or Upsell products as you like
- (Related products appear on a given product's page, upsell products - on cart page
- On admin UI choose "Site" before logging in
- If a page has in-line editable content it will dislay small "Edit" links
- Click those links and edit the content on-the-fly
Several tests have been created in main/tests.py and btc_payment/tests.py. To run the tests issue the commands:
./manage.py test main.test
./manage.py test btc_payment.tests
All the credits for the utilized packages and dependencies go to their respective owners. All I’ve done is a little remix.)
If this code adds any value to you and you'd like to reciprocate, here's a bitcoin address for donations:) 19w9wSmtL2PaLwSsQktd6TzGKYnMerq6Fs