Change warning message from basket.validate

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
rpb3
Lieutenant (LT)
Lieutenant (LT)
Posts: 60
Joined: Fri Jan 23, 2009 11:20 am

Change warning message from basket.validate

Post by rpb3 » Wed Sep 23, 2009 1:40 pm

Is it possible for us to change the warning messages that come back from the basket.validate method?

Are those part of the database or config file or a resource file or something?

I have a client who wants to reword the out of stock messages and I really don't want to trap the actual message in code and replace them with my own. Seems like that would be prone to errors.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Change warning message from basket.validate

Post by mazhar » Thu Sep 24, 2009 2:16 am

You need to make changes in resource messages. Read following bug report, it contains detailed procedure of changing and recompiling resources assembly.
http://bugs.ablecommerce.com/show_bug.cgi?id=7444

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

Re: Change warning message from basket.validate

Post by jmestep » Thu Sep 24, 2009 6:04 am

Mazhar, thanks for posting this. I know the list of enhancements in 7.0.3 stated that resources were open source, but I hadn't been able to search out a way to change things in the time that I had.
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

rpb3
Lieutenant (LT)
Lieutenant (LT)
Posts: 60
Joined: Fri Jan 23, 2009 11:20 am

Re: Change warning message from basket.validate

Post by rpb3 » Fri Sep 25, 2009 10:07 am

Sounds great. If I read the bug report correctly I just need to change the resx file and then recompile that into a dll and replace the one in the bin. But where do I get the resx file?

Per Naveed
Copy the CommerceBuilder/Properties/Resources.resx file to some temporary
location. This is the only file we need to publish/provide customers for
customizing the string resources.
where do I get that file? Or am I missing something?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Change warning message from basket.validate

Post by mazhar » Tue Oct 06, 2009 5:24 am

Hi Folks
I have created a new WIKI topic about how to change string messages coming out from back end code defined as string resources here
http://wiki.ablecommerce.com/index.php/ ... _resources
You can download Resource.rex and compile.bat file from this WIKI topic.

rpb3
Lieutenant (LT)
Lieutenant (LT)
Posts: 60
Joined: Fri Jan 23, 2009 11:20 am

Re: Change warning message from basket.validate

Post by rpb3 » Tue Oct 20, 2009 11:07 am

Excellent. Thanks mazhar.

rpb3
Lieutenant (LT)
Lieutenant (LT)
Posts: 60
Joined: Fri Jan 23, 2009 11:20 am

Re: Change warning message from basket.validate

Post by rpb3 » Tue Apr 08, 2014 9:52 am

Hey mazhar, you still around?

I am revisiting this old post here and am wondering if this solution is applicable to AC Gold?

I can't locate a resources.resx file for that version and I don't want to grab an old one.

Do you have any suggestions?

ashj
Ensign (ENS)
Ensign (ENS)
Posts: 9
Joined: Tue Nov 14, 2017 6:07 am

Re: Change warning message from basket.validate

Post by ashj » Mon Nov 27, 2017 8:11 am

same question. How do you change warning messages for AC gold???

Post Reply