Download the PHP package chuckbe/chuckcms-module-ecommerce without Composer
On this page you can find all versions of the php package chuckbe/chuckcms-module-ecommerce. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package chuckcms-module-ecommerce
ChuckCMS Module: Ecommerce
Extend ChuckCMS with ecommerce
Add this package as a module to your ChuckCMS installation to add ecommerce functionality. The package requires ChuckCMS and a functioning ecommerce template (look into chuckbe/chuckcms-template-london).
How to install?
Use Composer to install
Publish assets
Publish config files
In the published file config/chuckcms-module-ecommerce.php
you can change business details, language and currency settings among other general configuration.
Add the module to ChuckCMS
Use the following command to publish the module to ChuckCMS. You can use the same command to update an existing installation but be aware that all your settings will be overriden.
Installing the ecommerce module will conflict with your current users' role. Go to the DB and navigate to the 'model_has_roles' table. Change all the 'model_type' values into
Chuckbe\ChuckcmsModuleEcommerce\Models\User
For the authentication to be working you need to update the
config/chuckcms.php
. Change all the controllers' namespace fromChuckbe\Chuckcms\...
intoChuckbe\ChuckcmsModuleEcommerce\...
.
Migrate tables
List
- Add Mollie webhook URL to excepted on VerifyCsrfToken
Interfaces
ChuckCart
This facade controls everything related to the cart functionality:
- Cart
- CartItems
- CartItemDiscount
- CartItemExtras
- CartItemOptions
Cart
A cart can contain items and discounts, these are stored in the session and can be stored in the database using the appropriate methods.
Methods
CartItem
A cart item can have options, extras, and discounts besides the given attributes.
Attributes
-
Returns the unique identifier.
-
Returns the given id (non-unique).
-
Returns the given name.
-
Returns the quantity.
-
Returns the price including or excluding tax (settings dependent) without discounts.
-
Returns the final tax for the whole item.
-
Returns the discount value for the total price.
-
Returns the subtotal * unit price.
-
Returns the given options (selected attributes) of the item.
-
Returns the given extras of the item.
-
Returns a collection of CartItemDiscount linked to the item.
-
Returns the given model of the item or null.
Example of calculation:
All versions of chuckcms-module-ecommerce with dependencies
laravel/framework Version ^6.20.26||^7.30.4||^8.82.2||^9.0||^10.0
chuckbe/chuckcms Version ~0.2
mollie/laravel-mollie Version ^2.0