Jump to content

add fix variable into every url location


Recommended Posts

Hi,

 

exist any posibility for add fix variable into every url location?

 

before user registration and before enter on the shop i need select user group:

 

student? - profesor? - institution?

 

after select id group i want send this variable on every page on PS for load categories, content and prices for this group. user can go back and select other id group and load other categories, other content and other prices.

 

http://www.i-culture-online.com/tienda/es/?ig=5

 

in first load i send /?ig=5  (id_group = 5), and i load content as id group 5 but when i change category or product, variable "ig" is disappear.

 

in class/group.php i change this line

 

if (Validate::isLoadedObject($customer))
            $id_group = (int)$customer->id_default_group;
        else
            $id_group = $_GET["ig"];

 

// when id group is not defined, get id group from URL

 

but how i can maintain this variable in URL when location is change?

 

thank you for any answer, best regards, Jozef

Edited by zador (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...