Forums / General Questions / Adding Free Item to Orders Over Certain Amount

Adding Free Item to Orders Over Certain Amount

Views: 731

Results 1 to 2 of 2
2 Dec 2011, 3:37 AM
#1
psykryph avatar

psykryph

New Zenner

Join Date:
Dec 2010
Posts:
52
Plugin Contributions:
0

Adding Free Item to Orders Over Certain Amount

I have question concerning this. There have been a few threads in the past made about this, but nothing too helpful.

Apparently, this is the tutorial and way to implement this.

http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#A_Real_World_Example

However, my question is, where does one implement or place this code? A step by step guide would be helpful, but even just knowing which file to place this code into would be good.

Also, in the tutorial it says, "With the ONS, this can be achieved with one very small custom class and absolutely no hacking whatsoever." What exactly is this ONS? I'm sure it's not a one night stand.

Thanks

2 Dec 2011, 6:39 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Adding Free Item to Orders Over Certain Amount

It's the Observer/Notifier System. Using it will require knowledge of modern object oriented coding practices, very simple for those who know how, gibberish for those who don't.