Linking of User fields in stock page to Qty field
  • guest
    Linking of User fields in stock page to Qty field

    by guest » Thu Jul 27, 2006 9:45 pm

    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?
  • COBS Tech Support
    Posts:683
    Joined:Fri Sep 09, 2005 8:23 am

    by COBS Tech Support » Wed Aug 02, 2006 5:30 pm

    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.

Who is online

Users browsing this forum: No registered users and 5 guests