Installing E-Wallet
This guide will walk you through the process of installing the E-Wallet plugin for your Botble E-commerce store.
Requirements
Before installing E-Wallet, ensure your system meets the following requirements:
- Botble CMS version 7.5.0 or higher
- PHP version 8.2 or higher
- MySQL 5.7+ or MariaDB 10.3+
- Botble E-commerce plugin (required)
- At least one payment gateway configured (for top-ups)
Important
This plugin requires the E-commerce plugin to be installed and activated. E-Wallet is designed to work only with Botble e-commerce scripts.
Installation Steps
- Download the plugin from CodeCanyon downloads page
- Extract the downloaded zip file
- Upload the extracted folder to
platform/plugins/e-walletdirectory - Go to Admin > Plugins and activate the E-Wallet plugin
- Refresh your website
Post-Installation Setup
After installing and activating the E-Wallet plugin:
1. Activate Your License
- Navigate to E-Wallet > License Activation
- Enter your purchase code from CodeCanyon
- Click "Activate license"
2. Run Database Migrations
The migrations should run automatically during activation. If not, run manually:
php artisan migrateThis creates the following tables:
ec_wallets- Stores wallet informationec_wallet_transactions- Stores all wallet transactionsec_wallet_topups- Stores top-up requests
3. Publish Assets
Publish the plugin's public assets:
php artisan vendor:publish --tag=cms-public --force4. Clear Cache
Clear the application cache to ensure everything loads correctly:
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear5. Access Admin Interface
- The E-Wallet menu item will appear in your admin panel
- Click on E-Wallet to access the management system
6. Configure Basic Settings
- Navigate to Settings > E-Wallet
- Enable the e-wallet functionality
- Set minimum and maximum top-up amounts
- Configure withdrawal settings
- Select allowed payment methods for top-ups
7. Enable Wallet Payment Method
- Go to Admin > Payments > Payment methods
- Find "Wallet" in the payment methods list
- Click Edit and enable it
- Configure display name and description
8. Configure Permissions
Assign permissions to admin roles:
- Go to Admin > System > Roles
- Edit roles that should have access to e-wallet features
- Grant the following permissions as needed:
e-wallet.index- Access E-Wallet menue-wallet.wallets.index- View walletse-wallet.wallets.adjust- Adjust wallet balancese-wallet.transactions.index- View transactionse-wallet.topups.index- View top-upse-wallet.topups.complete- Complete top-upse-wallet.topups.cancel- Cancel top-upse-wallet.withdrawals.index- View withdrawalse-wallet.withdrawals.approve- Approve withdrawalse-wallet.withdrawals.reject- Reject withdrawalse-wallet.settings- Manage settings
Verifying Installation
To verify that the plugin has been installed correctly:
- Log in to your admin panel
- Verify the E-Wallet menu item appears in the main navigation
- Click on E-Wallet to access the management interface
- Check that all sub-menus are accessible:
- Dashboard
- Wallets
- Transactions
- Top-ups
- Settings
- Go to Settings > E-Wallet and verify settings are accessible
Customer Verification
- Log in as a customer (or create a test customer account)
- Navigate to
/customer/e-wallet - You should see:
- Current balance (initially 0)
- Transaction history (empty)
- Top-up button
Test Top-up Flow
- As a customer, click Top Up Wallet
- Enter an amount
- Select a payment method
- Complete the payment
- Verify the wallet balance is updated
Test Checkout Payment
- Add a product to cart
- Proceed to checkout
- Select "Wallet" as payment method
- Complete the order
- Verify the wallet balance is deducted
Troubleshooting Installation
Plugin Not Appearing
If the plugin doesn't appear in the plugins list:
Check file permissions:
bashchmod -R 755 platform/plugins/e-walletVerify the
plugin.jsonfile exists and is validClear cache:
bashphp artisan cache:clear
Migration Errors
If you encounter migration errors:
# Rollback migrations
php artisan migrate:rollback --path=platform/plugins/e-wallet/database/migrations
# Re-run migrations
php artisan migrate --path=platform/plugins/e-wallet/database/migrationsAssets Not Loading
If CSS/JS assets are not loading:
# Re-publish assets
php artisan vendor:publish --tag=cms-public --force
# Clear view cache
php artisan view:clearPermission Denied Errors
If you see permission errors:
# Fix storage permissions
chmod -R 775 storage
chmod -R 775 bootstrap/cache
# Fix ownership (replace www-data with your web server user)
chown -R www-data:www-data storage
chown -R www-data:www-data bootstrap/cacheNeed Help?
If you encounter any issues during installation, please contact our support team at [email protected] with:
- Description of the issue
- Any error messages you see
- Your Botble CMS version
