Questions tagged [cartridge]

Cartridge is a shopping cart application built using the [Django] framework. Cartridge also extends the [Mezzanine] content management platform.

This tag is used for questions related to the Cartridge module for the Django based Mezzanine CMS.

Cartridge is open-source software written in Python and like Mezzanine, it is licensed under a BSD license. It is used as a shopping cart solution and is closely related to Mezzanine as it builds on Mezzanine's model definitions. For example, Mezzanine defines a Page model to represent webpages and Cartridge uses subclasses of the Page model to represent products for sale. Thus, even though it can be referred to as a Django app, Cartridge is largely useless for non-Mezzanine Django projects.

Feature List

  • Hierarchical categories
  • Easily configurable product options (colours, sizes, etc.)
  • Hooks for tax/shipping calculations and payment gateways
  • Sale pricing
  • Promotional discount codes
  • PDF invoice generation (for packing slips)
  • Stock control
  • Product popularity
  • Thumbnail generation
  • Built-in test suite
  • Separation of presentation (no embedded markup)
  • Smart categories (by price range, colour, etc)
  • Registered or anonymous checkout
  • Configurable number of checkout steps
  • Denormalised data for accessiblilty and performance
  • Authenticated customer accounts with transaction history

Resources

42 questions
1
vote
1 answer

Decimal is not JSON serializable

I have a calculation that calculates the tax when a user checks out using Cartridge as my shop framework. tax = tax * Decimal(str(settings.SHOP_DEFAULT_TAX_RATE)) The calculation works properly.I then pass tax to set_tax(request, _("GST+PST"),…
koralarts
  • 2,062
  • 4
  • 30
  • 48
1
vote
1 answer

issues with credit card validation

I am using credit card validation in my cartridge project to validate the card type and card number.Everything is working fine, but whenever I got the validation error in alert box and when I click OK it doesn't stop on that page but refer me to the…
Inforian
  • 1,716
  • 5
  • 21
  • 42
1
vote
1 answer

Issues with checkout process in cartridge

I am using mezzanine + cartridge for a shopping cart.I want to use the concept of reward points(like discount coupon) in it and users who have enough reward points so that they can pay through them and want to use them then at checkout time the…
Inforian
  • 1,716
  • 5
  • 21
  • 42
0
votes
1 answer

Salesforce Commerce Cloud template overriding

I'm new to SFCC and I have created an extremely basic controller in my custom cartridge. 'use strict'; var server = require('server'); var URLUtils = require('dw/web/URLUtils'); server.extend(module.superModule); server.append('Show', function…
0
votes
0 answers

Export product from a set of locales

is there an option for the akeneo cartridge to export only the products from a given locale? Currently we export all the products on all the locales, which is not ok. I want to use a localizable boolean attribute which controls whether the product…
0
votes
1 answer

cartridge xml [IMSCC] how to included the H5P file in moodle?

I have issue while creating cartridge XML package for moodle, It doesn't support H5P format. When i import the package into moodle, it shows h5p not found in package.
0
votes
1 answer

How to prevent sgmf-scripts to scratch sensitive files?

Right now I’m developing a SFCC Commerce Cloud website. Referring to SFRA recommendations, I’m using the sgmf-scripts command to create, compile and upload custom cartridges. The problem is, each time I create a cartridge, sgmf-scripts is scratching…
0
votes
0 answers

ImportError: cannot import name find_spec when deploying to openshift

I'm trying to deploy my Django project at openshift using Python 3.3 (because my project is made only for python3). Here we found an error ImportError: cannot import name find_spec when I check the log file. [Wed Jul 19 10:53:25 2017] [error]…
binpy
  • 3,994
  • 3
  • 17
  • 54
0
votes
1 answer

'WSGIRequest' object has no attribute 'cart' in django-cartridge

I am working on Django 1.10, Mezzanine 4.4.2 with Cartridge installed manually after installing Mezzanine. Now I am able to add the products and price through cartridge. But when I click on the BUY button it is giving me the following…
Shashishekhar Hasabnis
  • 1,636
  • 1
  • 15
  • 36
0
votes
1 answer

Extending django catridge product causes Grapelli KeyError in admin

I'm currently working on a django / mezzanine / cartridge store. All of my products will have a CAD file and a PDF file, in an effort to stay DRY I have created a BaseProduct model which is defined as follows: models.py class BaseProduct(Product): …
Pete Dermott
  • 663
  • 1
  • 9
  • 20
0
votes
1 answer

Add tag to cartridge admin panel

I want to add one new field 'tag' in my Product class. I added that field and now I want to add that tag manually from cartridge admin panel. So, to do that I am importing one admin class in my settings.py, from cartridge.shop.admin import…
Akash Wankhede
  • 618
  • 6
  • 15
0
votes
1 answer

How to render output of cartridge API's on custom HTML page?

I am working on a cartridge project. I have created custom html templates for better visual and now I want to render all data which is coming through cartridge's built in APIs on my custom html pages. For.ex. I have a product.html, on which I want…
Akash Wankhede
  • 618
  • 6
  • 15
0
votes
1 answer

Customize Cartridge OrderForm

I'm building a webshop using Cartridge/Mezzanine. By default however the checkout form (cartridge.shop.forms.OrderForm) contains fields for both first names and last names. I want a form where the customer just has to provide a name. Further, I…
andreashhp
  • 485
  • 2
  • 16
0
votes
1 answer

Error when deploying Django/Mezzanine with Git (but not with SFTP)

My web app is working fine on my ubuntu server and now it's time to deploy to a web hosting (dreamhost). I am using Django 1.9 and Mezzanine Cartridge cms and ecommerce framework. I have copied to a subdomain of the web hosting the source code files…
Márcio Moreira
  • 477
  • 4
  • 16
0
votes
1 answer

Openshift MySql Emoji support

I'm trying to support emoji on Openshift MySql cartridge. I've set the UTF8mb4 character set following a few guides, but it doesn't seem to work. When i try to INSERT an emoji in a VARCHAR field, it instead stores "????". Is this an Openshift…
MirkoM
  • 1