|
|
5 tháng trước cách đây | |
|---|---|---|
| database | 5 tháng trước cách đây | |
| route | 5 tháng trước cách đây | |
| src | 5 tháng trước cách đây | |
| .gitignore | 5 tháng trước cách đây | |
| README.md | 5 tháng trước cách đây | |
| composer.json | 5 tháng trước cách đây | |
| config.php | 5 tháng trước cách đây | |
| info.php | 5 tháng trước cách đây |
This extension implements member card functionality for the SixShop e-commerce platform, allowing users to purchase membership cards with specific pricing and validity periods.
The extension is automatically loaded by the SixShop system. Ensure that the extension is properly registered in your SixShop installation.
The extension uses the following database tables:
mcard_member_card - Member card definitions (pricing, validity periods)mcard_member_card_order - Member card orders (purchase history)mcard_member - Member records (user membership status)Migration files are located in the database/migrations directory:
Admin routes are prefixed with /admin/six-shop-member-card/.
API routes are prefixed with /api/six-shop-member-card/.
Authentication middleware should be added to routes as needed:
->middleware(['auth'])
The extension configuration can be found in config.php.
.
├── config.php # Extension configuration
├── composer.json # Composer configuration
├── info.php # Extension metadata
├── README.md # This file
├── database/
│ └── migrations/ # Database migration files
├── route/
│ ├── admin.php # Admin routes
│ └── api.php # API routes
└── src/
└── Extension.php # Extension main class
After installation, the member card functionality will be available through the admin panel and API endpoints. Admins can:
To extend the functionality:
Contributions are welcome. Please follow the SixShop coding standards and submit pull requests for any enhancements.
This extension is licensed under the MIT License.