Update buy online function

Update buy online page functionality.