close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Need help making an AddToCart popup work

Thread began 12/12/2010 5:03 pm by jspencer190495 | Last modified 12/13/2010 4:03 pm by Jason Byrnes | 1110 views | 4 replies |

jspencer190495

Need help making an AddToCart popup work

I have made the eCart AddToCart page into a popup, which works fine. But once they click on AddToCart, I want the pop-up to close and the next page to open in the parent window. This is fairly straightforward when you are building pop-ups from scratch (using window.opener javascript code) but I'm not sure how to make it happen with eCart. Any suggestions?

Sign in to reply to this post

Jason ByrnesWebAssist

as long as the parent window opens a php page, you just need to add the add to cart button to it and set it to redirct to the cart page after the item is added to the cart. nothing special will need to be done.

Sign in to reply to this post

jspencer190495

Guess I didn't describe my problem clearly because that didn't answer my question.

My Add to Cart button is not in the parent window but in the pop-up. The page I want to go to -- the Orders page -- is already open in the parent window, and what I want to do when the Add to Cart button is clicked is close the Add to Cart pop-up and return the focus to the parent window with the Orders page. But instead, the pop-up tries to open the Orders page in the pop-up window.

I tried using an onclick=window.close() on the Add to Cart button but eCart doesn't consistently add the selected item to the cart when the onclick tag is present.

Jon

Sign in to reply to this post

jspencer190495

Problem solved! I changed the "go to" file for the Add to Cart button to a file that closes the pop-up window. That way eCart has enough time to record the transaction before the pop-up closes.

Thanks for your help.

Jon

Sign in to reply to this post

Jason ByrnesWebAssist

excellent, glad to hear it is working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...