X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Help with BCSE Add Multiple Products mod (https://forum.x-cart.com/showthread.php?t=41334)

BodyBalance 07-24-2008 11:11 AM

Help with BCSE Add Multiple Products mod
 
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?

balinor 07-24-2008 11:22 AM

Re: Help with BCSE Add Multiple Products mod
 
Moving to Third Party Add-Ons


All times are GMT -8. The time now is 01:27 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.