I have an article on my website that describes how to write a custom offer,
http://structured-solutions.net/Bvc5OfferPluginUsing the SampleOffer that is attached to the article, I wrote a custom Buy 1 Get 1 Half Off offer attached to this post.
To install the custom offer, follow these steps*****:
<OL>
<LI>Save Buy1Get1Half.vb in the \App_Code\ directory of your website.
<LI>Create a new subdirectory in \BVModules\Offers\ called "Buy 1 Get 1 Half Off".
<LI>Save Edit.ascx and Edit.ascx.vb in the new \BVModules\Offers\Buy 1 Get 1 Half Off\ directory.
<LI>Edit \App_Code\TaskLoader.Custom.vb and add this line to the LoadCustomOrderTaskProcessors method:
[2]New[/2][2]"Buy 1 Get 1 Half Off"[/2][2]GetType[/2][2](Buy1Get1Half)))[/2]</P></LI></OL>
[2]To use the new offer, navigate to BV Admin\Marketing and add the new Buy 1 Get 1 Half Off offer.
[/2]
*****Do not follow these steps on a production site until you have tested them on a test site. If you do not have a test site and decide that you will take the risk on your production site, then please don't complain if this code blows up your site and deletes all your data (it doesn't...but you should not take candy from strangers).
File Attachment(s):
Buy1Get1Half.vb
(3kb) downloaded 198 time(s).You cannot view/download attachments. Try to login or register.