Upgrade guide
(Last update: 2020-11-15 17:40:56)

To upgrade S-Cart 4.2 to S-Cart 4.3, perform the following steps:

1. Optional function using the shipping method and payment method (Impact: hight)
- Edit file view:
Download the files below to replace your current files: The specific changes are as below: - Database:
+ Run the query below to add shipping_off and payment_off and table sc_admin_config
INSERT INTO `sc_admin_config` (`group`, `code`, `key`, `value`, `store_id`, `sort`, `detail`) VALUES ('', 'order_config', 'payment_off', '0', 1, 20, 'lang::order.admin.payment_off');
INSERT INTO `sc_admin_config` (`group`, `code`, `key`, `value`, `store_id`, `sort`, `detail`) VALUES ('', 'order_config', 'shipping_off', '0', 1, 20, 'lang::order.admin.shipping_off');
+ Download the file below, replace your current file: Optimize admin sort function (Impact: normal)
Download the files below to replace your current files: The specific changes are as below: 3. Edit language file (Impact: normal)
In the file resources/lang/en/order.php, add the following content near the bottom of the file (refer to image)

        'product_preorder'         => 'Allow pre-order',
        'shop_allow_guest'         => 'Allow for guest order',
        'product_buy_out_of_stock' => 'Allow buy product out of stock',
        'shipping_off'             => 'OFF Shipping method',
        'payment_off'              => 'OFF Payment method',
        'search_order_status'      => 'Search order status',
        'search_email'             => 'Search email',
        'search_id'                => 'Search order ID',


In the file resources/lang/vi/order.php, add the following text near the end of the file

        'product_preorder'         => 'Cho phép đặt hàng trước',
        'shop_allow_guest'         => 'Mua hàng không cần đăng nhập',
        'product_buy_out_of_stock' => 'Mua sản phẩm đã hết hàng',
        'shipping_off'             => 'Tắt chức năng giao hàng',
        'payment_off'              => 'Tắt chức năng thanh toán',
        'search_order_status'      => 'Trạng thái đơn hàng',
        'search_email'             => 'Tìm email',
        'search_id'                => 'Tìm ID đơn hàng',

4. Update admin view
You can skip this step if you are using the default admin view from S-Cart.
- If you are customizing the admin view files, do the following steps:
  •  Backup all your view files
  •  Delete all folders "resourcese/views/admin"
  •  run command line "php artisan sc:customize admin" to clone all new admin view file
5. File composer.json
- In the file composer.json, replace "s-cart/core": "^4.2.0" with "s-cart/core": "^4.3.0"
6. Run command line "php composer.phar update s-cart/core" to upgrade version.
- Run command line php artisan sc:info to check version information.
Done :)

Related topics