VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: 100khz on September 26, 2015, 05:34:20 AM

Title: Fetch shoppergroup from session instead of anonymous
Post by: 100khz on September 26, 2015, 05:34:20 AM
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?