Icommerce is an e-commerce module for Asgard CMS open source fully customizable for entrepreneurs around the world. Go beyond the limits of traditional e-commerce solutions and be limited only by your own imagination.
1. Go to Settings
2. Click on Icommerce
3. Add "Webmaster Email"
You can modify the header,footer and style
Instructions:
1. Create a folder in your theme with the name "icommerce".
Example: YourTheme/views/icommerce/
2. Create a folder inside of "icommerce" with the name "emails".
Example: YourTheme/views/icommerce/emails
3. If you want just edit the header, so copy only the header file
from the module in your folder in the theme:
(copy this file)
Example: Module/Icommerce/Resources/views/emails/base/header.blade.php
(Paste it here)
Example: YourTheme/views/icommerce/emails/header.blade.php
and so with the files that you want to edit.
run php artisan module:seed Icommerce
N: filter optional =
?filter={"ip":192.168.0.1}
?filter={"user":1}
GET: /api/icommerce/v3/carts
N: replace n for id`s cart
GET: /api/icommerce/v3/carts/n
N: filter optional = ?filter={"cart":2}
GET: /api/icommerce/v3/cart-products
POST
/api/icommerce/v3/carts
"cart_id": 9, (optional, if it is not passed a new car is generated and its id is returned)
"user_id": 1, (optional, if it is not passed, the car is generated without associating a user)
"cart_products": {
"product_id":"4",
"quantity":"50",
"price":"5500"
},
"cart_product_option":{
"product_option_id":"1",
"product_option_value_id":"1"
}
}
POST
/api/icommerce/v3/orders
Order created
GET
/api/icommerce/v3/orders
All Orders with data
GET
/api/icommerce/v3/orders/n
Order with data
PUT
/api/icommerce/v3/orders/n
Order updated
GET
/api/icommerce/v3/tags
GET
/api/icommerce/v3/tags/n
POST
/api/icommerce/v3/tags
PUT
/api/icommerce/v3/tags/n
DELETE
/api/icommerce/v3/tags/n
GET
/api/icommerce/v3/categories
N: include optional =
?include=parent,children
GET
/api/icommerce/v3/categories/n
POST
/api/icommerce/v3/categories
PUT
/api/icommerce/v3/categories/n
DELETE
/api/icommerce/v3/categories/n
GET
/api/icommerce/v3/currencies
GET
/api/icommerce/v3/currencies/n
POST
/api/icommerce/v3/currencies
PUT
/api/icommerce/v3/currency/n
DELETE
/api/icommerce/v3/currency/n
GET
/api/icommerce/v3/payment-methods
GET
/api/icommerce/v3/payment-methods/n
All payment methods have a Seeder to create
PUT
/api/icommerce/v3/payment-methods/n
GET
/api/icommerce/v3/shipping-methods
GET
/api/icommerce/v3/shipping-methods/n
Parameters
- Options (array) - countryCode,country,zone,postalCode ... anything else
- Products (array) - cart_id
GET
/api/icommerce/v3/shipping-methods/calculations/all
All shipping methods have a Seeder to create
PUT
/api/icommerce/v3/shipping-methods/n
This route require authentication
Request:
GET
/api/icommerce/v3/coupons/coupons-validate
filter = {
"couponCode":"code_coupon",
"cartId":1
}
Response:
{
"message": "coupon whit discount for product",
"discount": 3000
}
MESSAGE | |
---|---|
coupon not exists | |
coupon inactive | |
coupon no started | |
coupon expired | |
maximum used coupons | |
maximum coupons per user used | |
cart not exists | |
cart without items | |
coupon whit discount for order | |
coupon whit discount for product | |
coupon whit discount for category |