How do triggers work exactly?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
heinscott
Captain (CAPT)
Captain (CAPT)
Posts: 375
Joined: Thu May 01, 2008 12:37 pm

How do triggers work exactly?

Post by heinscott » Mon Jul 06, 2009 10:42 am

Quick question...
How exactly do the triggers work in able commerce? The reason I ask is this:
We are going to be migrating our site to a new IP address, and we currently have both sites in operation. Now, my plan for switching over seamlessly is to have both sites connected to the same database server (with same credentials) so that the customers, no matter which site they get, will end up with the same data. That way, while our DNS is propigating to the new IP, no one should see any problems.
However, I just thought of this... What happens for emails, and certain such things that are fired by triggers? Will our customers end up getting two emails until we take down the old site? What other problems might occur if we do things this way?

Thanks for all the help.

Scott

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

Re: How do triggers work exactly?

Post by jmestep » Mon Jul 06, 2009 10:46 am

If you have both sites in operation, make sure you have a machine key in the Web.Config file instead of using the one from the server by default.
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

ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

Re: How do triggers work exactly?

Post by ZLA » Mon Jul 06, 2009 10:48 am

When I moved an ASP site in the past, I just added a redirect to the old web pages so that it would transfer any one served by the old site to the new site (via the new site's IP address). I also disconnected the old site from it's (separate) database to ensure no crossover.

Hope that helps.

User avatar
heinscott
Captain (CAPT)
Captain (CAPT)
Posts: 375
Joined: Thu May 01, 2008 12:37 pm

Re: How do triggers work exactly?

Post by heinscott » Mon Jul 06, 2009 11:02 am

When I moved an ASP site in the past, I just added a redirect to the old web pages so that it would transfer any one served by the old site to the new site (via the new site's IP address).
The problem with this method is that SSL will not work for the new site until DNS fully changes over, since the certificate is licensed to the domain name.
If you have both sites in operation, make sure you have a machine key in the Web.Config file instead of using the one from the server by default.
Will this fix any redundant maintenance/trigger activity? What would I change the machine key to? On which site?
Thanks, so sorry for my ignorance.

Scott

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

Re: How do triggers work exactly?

Post by jmestep » Mon Jul 06, 2009 4:03 pm

Logan had posted about the machine key- down toward the bottom of this topic:
viewtopic.php?f=42&t=7121&hilit=machinekey
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