Discussion Locked

Coldfusion CFIF help

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Customers receive a percentage discount on a sliding scale for certain products, otherwise receive the overall web discount price of 5%.

Here is the scale:
1 - 99 pieces = 5%, 100 - 249 = 7%, 250 - 499 = 8%, 500 - 999 = 9%

The code is working and giving the overall of 5%; however, for those products I've specified in the discount.cfm file, it does not give the discount. If I change insert_part.cfm file from LT to GT, they get discount, but the other products don't receive overall discount. 2 files are not working together.

INSERT_PART.CFM (NOTE: part file)

DISCOUNT.CFM

MULTIPLIER.CFM

1 reply

by cgsjohnson

In the discount.cfm file, the third line, which begins "cfelseif #priceID#..." doesn't have a beginning cfif tag. Also, pound symbols are not required in cfif tags. I hope that this helps. Thanks.

Chris

This discussion is closed to new replies.