The above code sets a limits the discount_amount2 value to only 3 items based on the discount_num option. However, you will see the following:
I don't believe this is a feature with this plugin, but would be great to know where to correct this issue.
I would guess this line here may be the culprit...not sure. but would like to think if a conditional would be added that verifies if the discount_num is greater than 0 to use observe the current quantity and apply the discount if less than or equal to discount_num.
@jeffharrell Currently when this option is used the item will display a negative value. To test this copy/paste the code below into the demo page.
The above code sets a limits the
discount_amount2 value
to only 3 items based on thediscount_num
option. However, you will see the following:I don't believe this is a feature with this plugin, but would be great to know where to correct this issue.
I would guess this line here may be the culprit...not sure. but would like to think if a conditional would be added that verifies if the
discount_num
is greater than 0 to use observe the current quantity and apply the discount if less than or equal todiscount_num
.