fudge4u
Member
I have a list called 'printing' which includes the elements 'item', 'quantity', 'price' This is the list which my customer populates when filling out a form. The element 'quantity' is a drop-down calc element which looks up the possible quantities that the customer can choose from in my next list.
This next list called 'quantities' has the elements 'item', 'quantity', 'price' This is my internal list which the customer does not have direct access to - but I use it to look up data.
I want the {printing___price} to be a calc element to look up the item's price in the 'quantities' list when {printing___item} = {quantities___item} AND {printing___quantity} = {quantities___quantity}
The 'quantities' list is set up like:
ITEM1, 100, 20.00
ITEM1, 250, 30.00
ITEM1, 500, 45.00
ITEM2, 100, 25.00
ITEM2, 500, 50.00
So, for instance, when the customer fills out the 'printing' form and selects ITEM2 with a quantity of 100, the price will show $25.00 on the form.
I've tried to figure out the PHP code for the price calc element, but have been unsuccessful trying to use the AND clause.
This next list called 'quantities' has the elements 'item', 'quantity', 'price' This is my internal list which the customer does not have direct access to - but I use it to look up data.
I want the {printing___price} to be a calc element to look up the item's price in the 'quantities' list when {printing___item} = {quantities___item} AND {printing___quantity} = {quantities___quantity}
The 'quantities' list is set up like:
ITEM1, 100, 20.00
ITEM1, 250, 30.00
ITEM1, 500, 45.00
ITEM2, 100, 25.00
ITEM2, 500, 50.00
So, for instance, when the customer fills out the 'printing' form and selects ITEM2 with a quantity of 100, the price will show $25.00 on the form.
I've tried to figure out the PHP code for the price calc element, but have been unsuccessful trying to use the AND clause.