Simplest way to null Active eCommerce CMS:
1. Navigate to (and open) this file:
vendor/mehedi-iitdu/core-component-repository/src/CoreComponentRepository.php. Replace its content with:
PHP:
<?php
namespace MehediIitdu\CoreComponentRepository;
use App\Models\Addon;
use Cache;
class CoreComponentRepository
{
public static function instantiateShopRepository() {}
public static function initializeCache() {
foreach(Addon::all() as $addon){
if(Cache::get($addon->unique_identifier.'-purchased', 'no') == 'no'){
Cache::rememberForever($addon->unique_identifier.'-purchased', function () {
return 'yes';
});
}
}
}
}
That's nicknamed "First line of Defense"
2. Open
vendor/laracon21/colorcodeconverter/src/Colorcodeconverter.php, delete the entire
if construct from
Line 18 to
Line 28. We call this one the "Lucky Number 5 Naughty List Lottery"
3. Open
vendor/laracon21/combinations/src/routes/web.php, delete the contents of the "token" GET route. It should then look like this:
PHP:
Route::get('/migrate/products/{token}', function($token){});
That one is called "Pirates of the
CariJavabbean"
4. Open
app/Http/Controllers/IyzicoController.php, find the function named
initPayment and delete its contents. When you're done, it should look like this:
PHP:
public function initPayment(Request $request){}
That one is aptly named "Backdoor into your Mom's basement"
5. Enjoy!!
Optional: If you're familiar with the command line, you may run:
Bash:
php artisan ide-helper:generate
Your IDE Helper indices will be regenerated to reflect the changes in
CoreComponentRepository class signature. This is an optional step for those doing custom development with Active eCommerce via an IDE (PhpStorm, VS Code, etc.)
BONUS - FOR THOSE USING THE FLUTTER APP
1. Find the function named
create_balance_reference in
app/Utility/NagadUtility.php and replace it with the following:
PHP:
public static function create_balance_reference($key)
{
if (Cache::get('app-activation', 'no') == 'no') {
Cache::rememberForever('app-activation', function () {
return 'yes';
});
}
return true;
}
2. Find the function named
create_wallet_reference in
app/Utility/PayhereUtility.php and replace it with the following:
PHP:
public static function create_wallet_reference($key)
{
if (Cache::get('app-activation', 'no') == 'no') {
Cache::rememberForever('app-activation', function () {
return 'yes';
});
}
return true;
}
Now, if there's absolutely anything else you need help with. Anything, and I do mean ANYTHING. Do NOT contact me. Thank you