Download the PHP package elefant/app-products without Composer
On this page you can find all versions of the php package elefant/app-products. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package app-products
Products is a simple shopping cart for the Elefant CMS
Status: Beta
This app provides a simple shopping cart for the Elefant CMS, with sales handled through the Stripe Payments app.
Current features
- Shopping cart
- Basic inventory tracking
- Configurable taxes
- Shipping fees with max amount and "free over $x" settings
- Digital downloads
- Stripe payment processing
- Basic order management
- Discounts and "invoice me" payment option available via callbacks
Features yet to be added
- Admin sales dashboard
- Inventory running low/out admin notifications
- Shipment tracking
- Promo codes
Installation
First, you will need to install the Stripe Payments app.
Once you've installed that, the easiest way to install the app is:
- Log into Elefant as a site admin
- Go to Tools > Designer > Install App/Theme
- Paste the following link and click Install:
Alternately, you can run the following from the command line:
Usage
Configure the app
In the Elefant admin area, go to Tools > Products > Settings to customize the app for your site. Also visit Tools > Products > Taxes and Tools > Products > Categories to set up your taxes and product categories.
Adding the products page to your site
In the Elefant admin area, go to Tools > Navigation and drag the "Products" page into your site tree. Note that if you've renamed the page in the Products app settings, the page will be renamed in the site navigation as well.
Callbacks for discounts and "invoice me" payment option
The following settings can be set in your conf/app.products.config.php
configuration
file like this:
Here is an example class that implements basic examples of callbacks for the two settings:
In the above example, it allows all users who are logged in to request an invoice, and also gives them 10% off. From here, you can fill in any logic around different member types that works for your site's needs.