first of all i want to pass second condition. if ... {first condition} else {second condition}. i should check
products_tax_class_id's of products, if there is not any 3, do the second condition,else do the first condition.
since the code flow follows ths order.
3 items in card, products_tax_class_id = 1, products_tax_class_id = 2, products_tax_class_id = 3
if ($get['products_tax_class_id'] == 3 )
goes second condition, result 1, 2, 3, three rows.
2 items in card, products_tax_class_id = 1, products_tax_class_id = 2
if ($get['products_tax_class_id'] == 3 )
goes second condition, result 1, 2, two rows.
3 items in card, products_tax_class_id = 1, products_tax_class_id = 2, products_tax_class_id = 3
if ($get['products_tax_class_id'] != 3 )
goes first condition, result 1, 2, two rows.
2 items in card, products_tax_class_id = 1, products_tax_class_id = 2
if ($get['products_tax_class_id'] != 3 )
goes first condition, result 1, 2, two rows.
3 items in card, products_tax_class_id = 1, products_tax_class_id = 2, products_tax_class_id = 3
if ($get['products_tax_class_id'] == 0 )
goes second condition, result 1, 2, 3 three rows.
2 items in card, products_tax_class_id = 1, products_tax_class_id = 2
if ($get['products_tax_class_id'] == 0 )
goes second condition, result 1, 2 two rows.
2 items in card, products_tax_class_id = 1, products_tax_class_id = 2
if (($get['products_tax_class_id'] == 1 ) || ($get['products_tax_class_id'] == 2 ))
goes first condition, result 1, 2 two rows.
3 items in card, products_tax_class_id = 1, products_tax_class_id = 2, products_tax_class_id = 3
if (($get['products_tax_class_id'] == 1 ) || ($get['products_tax_class_id'] == 2 ))
goes first and second condition, result 1, 2, 3 three rows.
all the values are returning, whereas i need products_tax_class_id 3 from the results.