![]() |
Dialog Box |
Post Reply ![]() |
Author | |
joshs ![]() Newbie ![]() Joined: 07-April-2009 Location: Utah Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() Posted: 25-January-2011 at 3:36pm |
I have been trying to add an additional dialog pop box within the onepagecheckout.asp
Outside the page I can get it to work just fine but as soon as I put it into the checkout - no go. Specifically in opc_chooseShpmnt.asp page. I want to display additional information about shipping. Any help or ideas? |
|
Josh Shirley
josh@windsurfutah.com |
|
![]() |
|
Brett ![]() Groupie ![]() ![]() Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
![]() ![]() ![]() ![]() ![]() |
What kind of "dialog pop box" are you trying to add? Where do you want it to show up? inside opc_chooseShpmnt might not be the right place. I believe that page is loaded via AJAX when the customer proceeds to shipping selection. You might want to put it outside of opc_chooseShpmnt.asp and somewhere in onepagecheckout.asp.
|
|
![]() |
|
joshs ![]() Newbie ![]() Joined: 07-April-2009 Location: Utah Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
I am trying to add a dialog box similar to the "view terms and agreements" which is right after the address section. That is if the store settings display the terms are set on.
Basically I want to let the user click - "Shipping Terms" and a dialog box appears. Exactly the same format as the aforementioned dialog box. |
|
Josh Shirley
josh@windsurfutah.com |
|
![]() |
|
Brett ![]() Groupie ![]() ![]() Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
![]() ![]() ![]() ![]() ![]() |
Here's an edited opc_chooseShpmnt.asp which will replace the Shipping Disclaimer with a pop up dialog box as with the terms and conditions:
opc_chooseShpmnt.zip Here is the code that was added:
You might want to change text-align: right to left and change the text size and stuff, but this should accomplish what you're after. |
|
![]() |
|
joshs ![]() Newbie ![]() Joined: 07-April-2009 Location: Utah Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
Just to help me understand better. My jquery was /is identical - but I am guessing that it has to be placed on the opc_chooseshpmnt.asp and not on the onepagecheckjs.asp?
Thanks Josh |
|
Josh Shirley
josh@windsurfutah.com |
|
![]() |
|
Brett ![]() Groupie ![]() ![]() Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
![]() ![]() ![]() ![]() ![]() |
That appears to be the issue. If you view source on onepagecheckout.asp you'll notice that none of the shipping stuff shows up. Maybe the shipping info is loaded into an iframe and therefore the javascript on one page cannot communicate with the other page. That would be my best guess.
|
|
![]() |
|
joshs ![]() Newbie ![]() Joined: 07-April-2009 Location: Utah Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
That did it. Thanks.
I was about to try that then I got frustrated and decided to ask. |
|
Josh Shirley
josh@windsurfutah.com |
|
![]() |
|
joshs ![]() Newbie ![]() Joined: 07-April-2009 Location: Utah Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
Well, it works, and doesn't work. IE doesn't like it. At least IE 8. Humm.
|
|
Josh Shirley
josh@windsurfutah.com |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() 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 |