Posted Date Published 7/23/2009 12:45:22 PM
Got Marketing!
When the first request is made to a Commerce Server site Commerce Server
loads it's modules and populate it's caches based on the configuration of
web.config. One of these modules and Cache that can be modified is the Marketing
data.
Marketing Runtime
Commerce Server loads it's Marketing data (Ads and discounts) in one shot by
calling mktg_spRuntimeLoadDiscounts stored procedure. You can change this
behavior by having your own stored procedure called. Why would you want to do
that maybe you want additional columns to be returned or have a staging
environment and you want all discounts that are active and not active to be
evaluated. Just make sure that you not omit any columns and records that the
original stored procedure returns.
Change the default behavior of loading Marketing data
Modify the web.config by adding a <config> element to the <cache>:
<key="LoadDiscountsProcedure" value="myProcedure"/>
Note that myprocedure should have the same signature as the default mktg_spRuntimeLoadDiscounts procedure.
|
Comments disabled.