Seems weird to have partial quantities of items. I’d leave the quantity to be an integer. Take a look at the templates/defaults.php file for setting up custom volume price discounts. You’ll need to write your own function, but you could give a 50% price discount for qty=2, or check if other items are in the cart and give a discount based on that, etc.
Its weird if you look at selling oranges. I cant see the suggested function working as I require. To explain, A customer has to purchase one ‘service’ at full price and subsequent purchases of the same service qualify for a 50% discount. I think it would be far easier to enable my customers to enter a fraction, if the program is expecting an integer now, then it is the correct format, but tests see an entry of 1.5 instantly convert to 2 so there’s something controlling the entry on the Form
Is it possible to edit?
I guess I’m not following. When would you want a customer to enter a fractional quantity and what would that mean? Customer purchases 1 service. Subsequent purchases get a 50% discount, so if they have qty=2, then SCABN calculates a 25% dicount (1 full price, + 1 half price = 25% net discount) if the quantity is 2. No fractions. If you allow fractions, what happens when someone order 0.3? What does 1.5 mean and how does it differ from 1.1 or 1.7?
Currently, the quantity must be an integer and no non-integer value is disregarded.
I guess I’m not following. When would you want a customer to enter a fractional quantity and what would that mean? Customer purchases 1 service. Subsequent purchases get a 50% discount, so if they have qty=2, then SCABN calculates a 25% dicount (1 full price, + 1 half price = 25% net discount) if the quantity is 2. No fractions. If you allow fractions, what happens when someone order 0.3? What does 1.5 mean and how does it differ from 1.1 or 1.7?
Currently, the quantity must be an integer and any non-integer value is disregarded.
I see the problem with .3 or 1.1.
But are you saying I should be able to enter 1.5 ?
because I cant, it wont calculate 1.5
Might help:
my web site is http://gravesitecare.co.nz/authorisation-contact-payment/plans/rates/
SCABN has no way of knowing that 0.3 and 1.1 is invalid but 1.5 is. (And I still don’t really know what qty=1.5 means). SCABN expect integers for the quantity and ignores requests to change the qty to a non-integer value.