News:

Looking for documentation? Take a look on our wiki

Main Menu

Fetch shoppergroup from session instead of anonymous

Started by 100khz, September 26, 2015, 05:34:20 AM

Previous topic - Next topic

100khz

On fresh load of vm's product page, i am trying that it should fetch shoppergroup from session instead to fetch anonymous shopper group. If i load product page and refresh again, it fetches the shoppergroup set in session in the second refresh.

What i am doing is that I am saving the user's IP in session on site load and then according to the IP, the shoppergroup is called. This works fine if the site is loaded from home page and not VM's product page. IF i refresh the second time on a fresh load of VM's product page, VM is able to show prices for correct shopper group set in session.

Can i force VM to read shoppergroup info everytime via session and not show anonymous shoppergroup when the user is fresh?