Hi Everyone!
I am currently using BCSE Add Multiple Products mod. I am trying to get it so if a customer is in a certain category, they will be redirected to a different category when they hit "Add to cart"
This is the code I currently have but doesn't seem to work right:
Code:
if ($cat == "1" || $cat == "2" || $cat == "5"){
func_header_location("home.php?cat=3");
}
else{ func_header_location("cart.php");
}
this is the original code:
Code:
func_header_location("cart.php");
This code will direct every category to another category instead of cart.php:
Code:
func_header_location("home.php?cat=3");
Anyone have any insight on what I am doing wrong here?