7.0.1 -> 7.0.5 Upgrade - No ShopFormatedPrice() Function?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
b3n
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 23
Joined: Tue Sep 07, 2010 9:02 am

7.0.1 -> 7.0.5 Upgrade - No ShopFormatedPrice() Function?

Post by b3n » Wed Sep 08, 2010 1:37 am

Hi

Bit of a beginner to all this so please bear with me haha. I recently had the good luck to pick up where a previous developer finished up on an AbleCommerce shop and help manage the issues that have cropped up over the past months and years.

One of the key points to tackle was upgrading to the latest AbleCommerce release, which I am trying to accomplish as follows:
  • Run shop in debug mode (VS2010)
  • Perform upgrade
  • Publish site back to IIS 7.5
Unfortunately I'm falling down on the publishing part, with numerous errors being thrown up. I've managed to solve a few, that involved (as far as I can tell) some custom code referring to functions that have changed/been removed. However, I can't find any alternative to the ProductHelper->ShopFormatedPrice() function being used in a custom file in the ConLib/Custom folder.

Here's the usage:

Code: Select all

Merchandising product = MerchandisingController.Get(Merchandising.Columns.ProductID, _ProductId);

            if (product != null)
            {
                //Set ISBN
                setCustomInformation(product.Isbn, lblISBN, ISBNLocalize);
                setCustomInformation(product.Author, lblAuthor, AuthorLocalize);

                string currencySymbol = _Product.MSRP.ToString("ulc").Substring(0, 1);

                //Set price
                MemberPrice.Text = ProductHelper.ShopFormatedPrice(product.ProductID, product.Price);
                NonMemberPrice.Text = ProductHelper.ShopFormatedPrice(product.ProductID, product.NonMemberPrice);

                if (product.ConcessionPrice.HasValue)
                {
                    ConcessionPrice.Text = ProductHelper.ShopFormatedPrice(product.ProductID, 
                        product.ConcessionPrice.Value);
                }
                else
                {
                    ConcessionLocalize.Visible = false;
                    ConcessionPrice.Visible = false;
                }

...<SNIP>...
And it goes on, presumably gathering details on the 'product'. Sorry for the lack of explanation about what this code is actually doing but like I said, this is completely foreign to me. I do however know the original development company had to build a lot of custom functionality to integrate with existing systems the client had.

Just to add too, this was publishing just fine before the upgrade; perhaps I've hosed some changes that were made to an 'internal' file? I know there shouldn't have been custom code in any of those files, but hey, I'm not ruling anything out yet... :)

If anyone could give me a pointer on where to look for more help on the ProductHelper object, suggest an alternative/replacement, or even provide me with some idea of what the function does and how (if it is indeed a built in function?) I would be extremely grateful!

Thanks (and apologies if I've got any .NET nomenclature wrong, you may laugh at me guilt free :P )

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: 7.0.1 -> 7.0.5 Upgrade - No ShopFormatedPrice() Function?

Post by AbleMods » Wed Sep 08, 2010 2:48 pm

b3n wrote:I know there shouldn't have been custom code in any of those files...
That one statement right there gets you (as a programmer) in more trouble than anything else :P

I assume you have merged the customizations into the version of source code you're trying to upgrade to?

If you're trying to recompile the entire solution in VS 2010, don't. From what I've heard, the current source code build of AC7 isn't compatible with VS2010 - use VS 2008.

PageHelper is a class library with several functions in it. It is a standard file included with AC7 and is located in the /App_Code/ folder. Many customized sites have modifications to this file. It's one of the first files I change when I do client projects, especially for auto-adding meta tags to product pages, category pages etc.

Unfortunately, nobody is going to be able to help you much beyond what I've told you. Your installation is customized - without seeing the entire code base and the exact exceptions being throw, there's simply no way to point you in the right direction.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

b3n
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 23
Joined: Tue Sep 07, 2010 9:02 am

Re: 7.0.1 -> 7.0.5 Upgrade - No ShopFormatedPrice() Function?

Post by b3n » Thu Sep 09, 2010 3:01 am

That's all the pointing I need I hope; I've got it to at least publish now and I can go through and look at what differences there are in the files, as you say, and merge them in.

Thanks for your time, sorry for being so vague/clueless haha. Maybe next time I'll have a question that'll stretch you :D

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: 7.0.1 -> 7.0.5 Upgrade - No ShopFormatedPrice() Function?

Post by jmestep » Thu Sep 09, 2010 7:32 am

I'm not sure if you are talking about the source code for 7.0.5 (a separate purchase and I'm not sure it's out yet).
I have a test 705 site that I have been able to compile in VS2010.
I don't use Publish website since there is no need for that.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: 7.0.1 -> 7.0.5 Upgrade - No ShopFormatedPrice() Function?

Post by AbleMods » Thu Sep 09, 2010 7:52 am

Interesting. I saw a couple of different forum posts lately that said they couldn't do a full compile in 2010.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: 7.0.1 -> 7.0.5 Upgrade - No ShopFormatedPrice() Function?

Post by jmestep » Thu Sep 09, 2010 12:07 pm

I had to tweak a couple of things. I haven't been able to compile the source code in VS 2010, but I have been able to build the normal code that everyone gets.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: 7.0.1 -> 7.0.5 Upgrade - No ShopFormatedPrice() Function?

Post by AbleMods » Thu Sep 09, 2010 4:11 pm

I think that's what the other posts I saw were talking about - compiling the entire full source code isn't possible (yet) in VS 2010.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

b3n
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 23
Joined: Tue Sep 07, 2010 9:02 am

Re: 7.0.1 -> 7.0.5 Upgrade - No ShopFormatedPrice() Function?

Post by b3n » Fri Sep 10, 2010 1:35 am

jmestep wrote:I don't use Publish website since there is no need for that.
How so? I presumed I could 'Publish' to the live IIS server and 'Debug' to test out changes I 'm making. Is there a correct way of doing this?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: 7.0.1 -> 7.0.5 Upgrade - No ShopFormatedPrice() Function?

Post by jmestep » Fri Sep 10, 2010 6:55 am

You can normally just copy the changes up via ftp. You don't need to compile the project unless there are some changes the previous developer made that need to be compiled again. Able is not a "web application" to start with, only a "web site", partly so that thousands of users can make changes without having VS.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply