Upgrade guide
Step 1: Update composer.json
Update core version:
Step 2: Update file config "config/s-cart.php""require": {
"s-cart/core": "~8.1.0"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.0",
"spatie/laravel-ignition": "^2.0",
"barryvdh/laravel-debugbar": "^3.6"
},
Update core version:
Step 3: Update files "resources\views\templates\s-cart-light\main.blade.php"'version' => '8.1',
'sub-version' => '8.1.4',
// Since version 8.1.6
Find content:
Replaced by:content="{{ !empty($og_image)?sc_file($og_image):sc_file('images/org.jpg') }}
Step 4: Find the 3 listener files below, add the sc_notice_add function inside the handle functioncontent="{{ !empty($og_image)?sc_file($og_image):sc_file(sc_store('og_image')) }}"
// Since version 8.1.8
app/Listeners/ProcessCustomerCreated.php
app/Listeners/ProcessOrderSuccess.phpsc_notice_add('sc_customer_created', $customer->id);
ProcessOrderUpdateStatus.phpsc_notice_add('sc_order_success', $order->id);
Step 5: Run composer updatesc_notice_add('sc_order_update_status', $order->id);
php composer.phar update s-cart/core
php artisan sc:update
- Run command line
php artisan sc:info
to check version information.
Related topics
Latest Document
- Customize search page 2023-08-02
- Discount code (coupon) 2023-05-14
- Data relations in S-Cart 2023-02-05