Guest PIP Posted March 14, 2006 Share Posted March 14, 2006 Hi Boys, I need some help here. I have make this mod in the view_cart.php A mod that will check if at least there is 1 product from one of the three categories. Now I need to make a check on how many products there is add to the basket from the same catergory. Is there anybody how have any idea please? Here is the mod as it look like now: $x = 0; while($x != $cart->num_items($prefix,$session)) { if ($valid_order == "No") { if ($contents[cat_id][$x] == $must_order_pc || $contents[cat_id][$x] == $must_order_pakke || $contents[cat_id] [$x] == $must_order_nb) { $valid_order = "Yes";} } Thanks PIP Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.