Updating code for working with shop

As discussed, we can not use a pop-up window without using Cookies to
save variables.