Rank: Member
Joined: 1/10/2005(UTC) Posts: 714
Thanks: 14 times Was thanked: 1 time(s) in 1 post(s)
|
Not sure if this can be done but it would be cool...
From a popup window, i want to change the current page. An example would be this: on my product page we have a link that says click here for pricing. That link opens up the popup window, just like how it does for product reviews. In the popup window the customer can choose from a few options. They can hit the live chat button, call for best price, fill out a email form, or click the "login for best price" link. If they hit the "Login for best price" link, it closes the popup window and the current page (which is the product page they origianlly clicked from) goes to the login page.
Is that possible? We have a lot of products that have a login price. If i have the login link in the popup window, it takes them to the login page in the popup window. not good.
|
|
|
|
Rank: Member
Joined: 1/10/2005(UTC) Posts: 714
Thanks: 14 times Was thanked: 1 time(s) in 1 post(s)
|
got it! Man i searched forever on this. After posting here I tried one last keyword phrase in google and found it! add this to your header in Popup.master Code: <script[b][/b][b][/b] TYPE="text/javascript[b][/b][b][/b][b][/b][b][/b]"> <!-- function target[b][/b][b][/b]opener(mylink, closeme, closeonly) { if (! (window.focus && window.[b][/b][b][/b]opener))return true; window.[b][/b][b][/b]opener.focus(); if (! closeonly)window.[b][/b][b][/b]opener.[b][/b][b][/b]location.href=mylink.href; if (closeme)window.close(); return false; } //--> </script[b][/b][b][/b]>
Then, on your popup page the link should look like this Code: <a href="/login.aspx" onClick="return target[b][/b][b][/b]opener(this,true)">Login Here</a>
Anyone see in flaws with this? The only problem i see is that once you login, it wont redirect you back to the product page. Thats something i'll have to work on.
|
|
|
|
Rank: Member
Joined: 1/10/2005(UTC) Posts: 714
Thanks: 14 times Was thanked: 1 time(s) in 1 post(s)
|
Product Page: http://www.medsupplier.com/Products/Burdick-Atria-3100-3-Channel-EKG__1222-A31-1EK01.aspxNow i need to figure out how to pass the bvinField on the category page so i can use the same type of link on the cat pages for "Click Here For Pricing" to popup like it does on the product page... ;)EDIT: Got it to work! Click on "Click Here for Pricing" and a popup window pops up with the product name dynamically showing up in the descript ion, and email form. It's now even easier for customer's because they dont have to type the product name when filling out the email form. My next objective is to email them what the lower price is when they fill out the email form. Category Page: http://www.medsupplier.com/burdick-ekgs-ecgs.aspx
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
Very cool, Bryan! Thanks for sharing your findings with the forum. |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.