Page 1 of 1

Linking of User fields in stock page to Qty field

Posted: Thu Jul 27, 2006 9:45 pm
by guest
I am trying to automate quantity discounts by adding two user fields to my stock, and having them go to Special pricing. Sucessful in linking the price, and that works. The second field on my stock which is the quantity break number can't be access by the qty break field in Special Pricing. The field is numeric and won't accept Staux000->Qtynumber. If all this makes sense, any ideas?

Posted: Wed Aug 02, 2006 5:30 pm
by COBS Tech Support
It can't be done the way you're attempting to do it, but it can be done.

You will have to utilise one of the customer special pricing script hooks to completely control your pricing behaviour. (Such as by using one of the R-CSPx.MAC hooks.)

For example, using Notepad create a text file containing the following contents. Give it the name R-CSP.MAC and place it in your \CAPITAL folder.

***

If Staux000->Qtynumber <= Quantity
Return FALSE
Endif

Return Stock->F

***

You will need to change "Stock->F" to whatever price field in your system is used to hold the quantity break price.