![]() |
Things to watch out for when upgrading to v.4 |
Post Reply ![]() |
Author | |
BrianRoden ![]() Groupie ![]() Joined: 07-September-2007 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 11-November-2009 at 11:28am |
ProductCart version 4 adds some new fields to the tables that deal with Brands and Content Pages. These new fields need to be set to certain values for "Shop by Brand" (viewbrands.asp) to work correctly, and for your content pages to be displayed. Unfortunately, the database upgrade script does not set the correct default values for your site to keep working like it was before the upgrade (at least this is my experience on the 2 of our 3 sites I've upgraded so far).
--------- Brands -----------
Now, you have to mark brands as Active under Products | Manage Brands | List Brands, or you will get the message
"There are no brands active at this time." when you try to view the viewbrands.asp page.
If you have a lot of brands and want to activate them all without having to go into each one individually in the control panel, run this query in on your SQL database:
update brands set pcBrands_Active=1--------- Content Pages -----------
Now, content pages must not only be checked Active to show up in the left column menu, they must also be Published (see http://wiki.earlyimpact.com/productcart/content-pages-v4?s[]=content&s[]=pages). The database upgrade script for v.4 doesn't mark existing Active pages as Published, which leads to an error message being displayed when a store visitor tries to view a content page: "The page you requested either is no longer available or access to it has been restricted."
Run the following query to set all your Active content pages to Published after you upgrade to version 4:
update pcContents set pcCont_Published=1 where pcCont_InActive=0 |
|
![]() |
|
ITistic ![]() Certified ProductCart Developers ![]() Joined: 26-January-2009 Location: FL Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Actually just realized today during an upgrade that the pcCont_CustomerType field was also set to NULL for all records after the upgrade. This caused the pages to not be displayed even after running the query you suggested. Users running into this problem should also run this query:
UPDATE pcContents SET pcCont_CustomerType = 'ALL' |
|
![]() |
|
ProductCart ![]() Admin Group ![]() ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
![]() ![]() ![]() ![]() ![]() |
We are trying to understand what causes this issue. The database update scripts contains code to set all default values. Our research has shown that the problem (default values not being set) occurs in about 3% of all upgrades.
So far we are at a loss as to what circumstances cause this issue. If you have any additional information that might help identify the cause, please let us know. For example, it would be interesting to know: - Can you confirm that the store is using MS SQL? - Which version of SQL? - Were default values partially set or was the column completely empty (all NULLs)? Thank again! |
|
![]() |
|
BrianRoden ![]() Groupie ![]() Joined: 07-September-2007 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
SQL 2005 Express here.
Can't remember exactly, as I upgraded as soon as 4 came out, so there's been a lot of water under the bridge since then. But I think the new fields were just empty (NULL).
|
|
![]() |
|
ITistic ![]() Certified ProductCart Developers ![]() Joined: 26-January-2009 Location: FL Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Same here,
SQL Express 2005 The pcCont_CustomerType field was NULL for all records. I don't recall what the pcCont_Published field was set to and I've already overwritten all of those values to get the pages back online. I hope this helps! |
|
![]() |
|
ProductCart ![]() Admin Group ![]() ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
![]() ![]() ![]() ![]() ![]() |
MS SQL Express should never be used on a production Web site.
SQL Express was created by Microsoft for developers to run SQL-based Web applications in a development environment. That is why MS SQL Express is free. We do not any testing of our upgrade scripts again MS SQL Express. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |