Posted by Aaron on November 13, 2019

Upgrading to BV Commerce 2020

Comments (0)

The process of upgrading to BV Commerce 2020 is nearly identical to past release upgrades. The system requirements are similar BVC 2018 but with one important change.

Read on for the specific upgrade instructions for your version of BV Commerce or click one of the jump links below:

If you would like to create a fresh installation please refer to the respective documentation.

System Requirements

Prior to installing BV Commerce 2020 please verify that your server supports these minimum requirements. If you are unsure please contact your hosting company or IT department.

  • Windows Server 2008 R2 SP1 or above (i.e. IIS 7.5 or above)
  • .NET Framework 4.8 with Full Trust—this is a new requirement
  • SQL Server 2008 or above with Full Text Search installed

Upgrading from BV Commerce 2013-2018 SP1

These installation steps assume that you already have a functioning BV Commerce 2013-2018 SP1 website. Note: if your website has any custom code outside of your theme folder (\www\BVModules\Themes\YOUR_THEME_FOLDER) you may need to use a file comparison tool like Beyond Compare to merge your changes.

  1. Create a backup of your website files and database.
  2. Download "BV Commerce 2020.0.1.3535" from the Downloads page of your account.
  3. Unzip the file on your computer to a location of your choosing.
  4. Copy only the contents of the \www folder to the server; the other folders contain the source code for developer use. You will need to merge the Web.config file in the root of your site; use the Web.config file from 2020 and merge only the SQL connection string and any custom configuration changes from your old config file.
  5. Open your web browser and go to the address of your BV Commerce store. Provided that the above steps were done correctly you should be redirected to the /SQLPatch.aspx page and see the installation screen below. If you don't, please re-check the steps above.



  6. Click the "Start" button to complete the upgrade. This can take a few minutes. Once the upgrade is complete you will be redirected to the store homepage.
  7. If your site uses a theme that was created from either the "Foundation4 Responsive" or "Bootstrap3 Responsive" theme please read the additional instructions below.
  8. Congratulations! You've successfully upgraded to BV Commerce 2020.

Updating Foundation4 Responsive and Bootstrap3 Responsive-derived Themes

BV Commerce 2020 contains a number of enhancements and bug fixes to the Foundation4 Responsive and Bootstrap3 Responsive themes. If you created a theme derived from one of these themes (i.e. you started by duplicating the theme and then modified it) you will need to compare the updated corresponding theme files to your theme and merge the differences. This is where a file comparison tool like Beyond Compare is indispensable as it will allow you to easily compare the theme folders and locate the differences in each file. This is a critical step since themes now contain a significant amount of functional (not just design) code with the new theme architecture of BVC 2015.

Upgrading from BV Commerce 5.7 or 5.8

These installation steps assume that you already have a functioning BV Commerce 5.7 or 5.8 website. Note: if your website has any custom code outside of your theme folder (\www\BVModules\Themes\YOUR_THEME_FOLDER) you may need to use a file comparison tool like Beyond Compare to merge your changes.

  1. Create a backup of your website files and database.
  2. Download BV Commerce 2020 from the Downloads page of your account.
  3. Unzip the file on your computer to a location of your choosing.
  4. Copy only the contents of the \www folder to the server; the other folders contain the source code for developer use. You will need to merge the Web.config file in the root of your site; use the Web.config file from 2020 and merge only the SQL connection string and any custom configuration changes from your old config file. BV Commerce 2020 uses ASP.NET 4.8 so the Web.config file will be substantially different.
  5. In IIS set your application pool to .NET Framework 4.0 and integrated managed pipeline mode. If you're using a hosting company you may need to contact them to make this change.



  6. Open your web browser and go to the address of your BV Commerce store. Provided that the above steps were done correctly you should be redirected to the /SQLPatch.aspx page and see the installation screen below. If you don't, please re-check the steps above.



  7. Click the "Start" button to complete the upgrade. This can take a few minutes. Once the upgrade is complete you will be redirected to the store homepage.
  8. For your theme, you will likely need to add the style block below for the breadcrumb so it displays horizontally instead of stacking. If you enable the shipping calculation on the cart, you will want to grab the chunk of styles at the bottom of the Bvc2013 theme style sheet below the comment heading: /*CART SHIPPING CALCULATOR*/.
    .breadcrumbs div {display:inline;}
  9. Congratulations! You've successfully upgraded to BV Commerce 2020.

Upgrading from BV Commerce 5.0-5.6

Follow the same steps above for upgrading from 5.7 or 5.8. Note that when you first log in using an administrator account you will be prompted to change your password. If you are using the username "admin" you will also be asked to change your username. This behavior was part of the PCI Compliance changes in 5.7.

If you've created any custom code for your website, even something as simple as a new category or product template, be sure to test it after the upgrade. With 5.7 there were some performance changes to the URL rewriting functions in the Core. Specifically the BuildUrlForCategory function in the BVSoftware.Bvc5.Core.Utilities.UrlRewriter class takes an additional parameter called allCats which is a collection of Category objects containing all of the store categories. A typical line of code from 5.6 or below looks like this:

Dim destinationLink As String = Utilities.UrlRewriter.BuildUrlForCategory(c, Me.Page)

And it must be changed to look like this:

Dim destinationLink As String = Utilities.UrlRewriter.BuildUrlForCategory(c, Me.Page, Catalog.Category.FindAllLight())

Keep in mind that if this code appears inside a loop of some kind, repeatedly calling Catalog.Category.FindAllLight() will likely slow down the site. Instead you should create a variable to store this data and then pass the variable around rather than querying the database every time.

Upgrading from BV Commerce 2004

A direct upgrade from BV Commerce 2004 to 2020 is not possible. You must first migrate from 2004 to 5.6 (5.4. or 5.5 should work as well) and then upgrade to 2020 following the instructions above. This sounds complicated, but it's really not that difficult. The final 2020 site will be a separate copy from the 2004 site; your 2004 website files and database will not be modified. Here's what the process looks like. As always, be sure to backup your database and website files before proceeding.

  1. Create a new database in SQL Server that will become your BV Commerce 2020 database when this process is complete.
  2. Download BV Commerce 5.6 from the Downloads page of your account.
  3. Unzip the file and browse to \src\www\BVAdmin\BVSql\Full\
  4. Run the following SQL scripts in this order on the new, empty database to create a 5.6 database:
    1. CreateTables.sql
    2. CreateProcedures.sql
    3. CreateFunctions.sql
    4. PopulateData.sql
  5. Download the migration tool from the forum.
  6. Unzip the file and run MigrationTool.exe.
  7. Click the "Next >>" button.
  8. Set the SQL connection strings for both databases and set the items that you wish to import.
  9. Click the "Start Migration >>" button to perform the migration.
  10. Create a fresh installation of BV Commerce 2020 but set the connection string to your newly migrated database. When the 2020 website runs for the first time it will automatically upgrade the database from 5.6 to 2020.
Tags: ,
Categories: Documentation

Add comment

biuquote
  • Comment
  • Preview
Loading

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012