I have an interesting situation. I'm using a canned software package for a shopping cart. I originally had figured out the individual price of an item quantity of 12 or over as such:
<%if acart(i,1)>=12 then
currentprice=(caseprice/12)
else
currentprice=currentprice
end if
%>
Of course this works. now the client tells me they don't want to break a case so I have to figure individual prices over the case price as the full price. i.e. if they order 13, then 12 will get the case price but the 13th item will be charged full price. How do I manipulate the code to handle this? Thoughts would be greatly appreciated. Thanks in advance.
<%if acart(i,1)>=12 then
currentprice=(caseprice/12)
else
currentprice=currentprice
end if
%>
Of course this works. now the client tells me they don't want to break a case so I have to figure individual prices over the case price as the full price. i.e. if they order 13, then 12 will get the case price but the 13th item will be charged full price. How do I manipulate the code to handle this? Thoughts would be greatly appreciated. Thanks in advance.