if statement
Hey Ray
On the attached checkout page, I am trying to display a checkbox based on product id in the cart.
I have set up
<?php if ("".($iDayCart->DisplayInfo("ID") ."" == "1") || ($iDayCart->DisplayInfo("ID") ."" == "4") || ($iDayCart->DisplayInfo("ID") ."" == "7") || ($iDayCart->DisplayInfo("ID") ."" == "31") || ($iDayCart->DisplayInfo("ID") ."" == "22") || ($iDayCart->DisplayInfo("ID") ."" == "23") || ($iDayCart->DisplayInfo("ID") ."" == "24") || ($iDayCart->DisplayInfo("ID") ."" == "25") || ($iDayCart->DisplayInfo("ID") ."" == "26") || ($iDayCart->DisplayInfo("ID") ."" == "27") || ($iDayCart->DisplayInfo("ID") ."" == "28")) { ?>
But this only triggers on the first item that has been added to the cart. How would I get it to trigger based on any of the items that have been added to the cart?
Thanks
Jamie