I have a view with two Global: NULL fields as contextual filters, which use php code in their default value. The first global null value calculates and provides an order quantity, and the second global null calculates and provides the discount percentage. Both base their calculations on values in the URL. I store the order quantity and the discount percentage as session variables (for use in the transaction). The calculation of the discount value depends on the quantity.

Question: How can I use the quantity (calculated in global null field 1), in the php discount percentage calculated in global null field 2? I tried using the session variable as set in the global null field 1, but that appears not to work?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.