Hi everyone,
I am trying to get my cart to direct to a certain page depending on which category once the add to cart button is clicked.
For example:
If customer is in category 1 and they click add to cart, they will be redirected to category 3
If they are in category 4, they will be redirected to category 5.
This is add_all_to_cart.php (BCSE mod)
Currently I have
Code:
if ($categories[cat_num] == 1) {
func_header_location("home.php?cat=3");}
else {
func_header_location("cart.php");}
Regardless of what category, this will redirect to cart.php
I have tried all of the following:
if ($cat == "1")
if ($current_category == "1")
Plus several others. Anyone have any idea which refrence I should be using for this? It is driving me nuts.