#stilin I would suggest you

CpILL's picture
Offline
Early adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/08/2007
Juice: 550
#stilin I would suggest you

#stilin
I would suggest you create your own 'Manager' which controls all the "business logic" behind weather something can be added to cart or not. You just need to implement a few hooks in a pseudo module. I didn't think that people would want to change the error messages so that would require a hack but I'll be sure to update in UC2.0 versions to allow this.

Look at the 'uc_stocklevels.module' file for an example of a Manager. Also someone has writen a Manager which sits on top of the uc_stock module which might also be instructive.

good luck mate Eye-wink

Uberdevelopment www.tsd.net.au/blog

Inventory API & Simple Stock Levels By: CpILL (139 replies) Fri, 08/10/2007 - 08:33