I am trying to program a promo code to give a 5% discount to customers entering the code. My problem is that it is within a shopping cart that is already a part of a larger function. Whenever I try to program my subroutine it errors out saying that you cannot have a sub within a method.
What can I do?




