Hướng dẫn nâng cấp
Hướng dẫn nâng cấp S-Cart 8.1 từ phiên bản 7.2
Bước 1: Cập nhật composer.json
Cập nhật phiên bản core:
Cập nhật phiên bản core:
// Từ phiên bản 8.1.6
Tìm nội dung:
Bước 4: Thực hiện composer update
- Chạy lệnh
Bước 1: Cập nhật composer.json
Cập nhật phiên bản core:
Bước 2: Cập nhật file cấu hình "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"
},
Cập nhật phiên bản core:
Bước 3: Cập nhật file "resources\views\templates\s-cart-light\main.blade.php"'version' => '8.1',
'sub-version' => '8.1.6',
// Từ phiên bản 8.1.6
Tìm nội dung:
Thay thế bằng:content="{{ !empty($og_image)?sc_file($og_image):sc_file('images/org.jpg') }}
content="{{ !empty($og_image)?sc_file($og_image):sc_file(sc_store('og_image')) }}"
Bước 4: Thực hiện composer update
php composer.phar update s-cart/core
php artisan sc:update
- Chạy lệnh
php artisan sc:info
để kiểm tra thông tin phiên bản.
Bài viết liên quan
Tài liệu mới nhất
- Tùy chỉnh trang tìm kiếm 2023-08-02
- Chức năng tạo mã giảm giá (coupon) 2023-05-14
- Quan hệ dữ liệu trong S-Cart 2023-02-05
- Trường dữ liệu tùy chỉnh trong S-Cart 2023-02-05