ww.dll and specials
ww.dll supports specials through the use of <srcecode> and <mktgcode>, which can be passed in through the functions getitem, getitemexpanded, getmods and getitemtree. For example, the following getitem call:
<department>TEST2</department><category>TEST2<
/category><item>MWFTICKET</item><calcprice>1</calcprice><datetime>10-02-2006
</datetime><srcecode>Y06M08D30</srcecode>
returns the following price_xml:
[ext]11.25[/ext][tax]0.00[/tax][fee]0.00[/fee][txa]
0.00[/txa][txb]0.00[/txb][dwp]0.00[/dwp][in]15.00[/in][sp]ONLINE25[/sp]
The ONLINE25 special is configured to apply a 25% discount between 10/01/2006 and 12/31/2006 to the item MWFTICKET. Furthermore, the special is authorized for the source code Y06M08D30. The item MWFTICKET is normally priced at $15.00 ([in]15.00[/in]), but with the special applied because of the source code the price gets correctly set to $11.25 ([ext]11.25[/ext]).
The processsale call must contain the <special> tag within the <item> tag in order to replicate the special applied via the source code <srcecode> or marketing code <mktgcode>.
Example:
Here is a portion of a processsale call with <special> tags correctly embedded:
<item><dci>IMAX MOVIES OCEAN0730</dci><qty>2</qty>
<special><name>ONLINE</name><mktgcode>email</mktgcode></special>
<finalprice>4.00</finalprice><date>02-22-2007</date><message></message><mod><dci>IMAX MODIFIERSSENIOR </dci><date>02-22-
2007</date><finalprice>0</finalprice><val_info></val_info>
<do_on_sale></do_on_sale></mod><val_info></val_info><do_on_sale>
</do_on_sale></item><item><dci>TEST2 TEST2 BIGWEDSURF</dci><qty>2</qty><special>ONLINE</special>
<finalprice>6.25</finalprice><date>02-23-
2007</date><message></message><val_info></val_info>
<do_on_sale></do_on_sale></item><item><dci>TEST TEST REGULAR
</dci><qty>1</qty><finalprice>19.95</finalprice><date>02-19-
2007</date><message></message><val_info></val_info><do_on_sale>
</do_on_sale></item><item><dci>MISC SHIPPING LOWSHIP
</dci><qty>1</qty><finalprice>5</finalprice><message></message>
<val_info></val_info><do_on_sale></do_on_sale></item>