bmjunior Posted February 27, 2012 Report Share Posted February 27, 2012 Hallo Forengemeinde, ich habe eine Frage bezüglich der Konfiguration eines Videos. Wir verkaufen Babyartikel und diese Firma möchte, wenn ein Artikel in den Warenkorb abgelegt wird - das dann ein Popup mit einem Video aufgeht. Ich habe hier eine Anleitung bekommen, aber leider komme ich damit nicht klar. Es wäre nett wenn mir jemand dabei helfen könnte - wie ich das Script installieren kann. System: XT:Commerce Shop Version 3.0.4 Anleitung: How to implement the integration between Stokke® and Webshop Javascript This example contains two files that must be located at the web shops site: # default.html The sample web shop # return.html The page that is called when the popup returns ‘Success’ default.html This file contains the sample web shop, and there are 4 JavaScript functions involved in the popup integration: <script type="text/javascript"> function openStokke() { window.open('http://media.stokke.com/tripptrapp/movie.aspx? ' + 'lang=en' + '&RETURNSUCCESS=http://retailer.stokke.com/layouts/siibs/return.htm', null, 'height=480,width=600,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes'); } function returnStokkeSuccess() { addToCart(); } function tryAddToCart(showTTinfo) { if (showTTinfo) openStokke(); else addToCart(); } function addToCart() { alert('Item is now added to the demoshop cart'); // add code that adds the product to cart here, e.g. submit } </script> RETURNSUCCESS: Is an URL to the page the popup is redirected to when the user has answered all questions correct. This URL point to a file on the web shop’s server. The function returnStokkeSuccess, is an example function that is used by return.html to return a success-result. In the example tryAddToCart is called from the button ‘Add to cart’ with a parameter telling if this is a Stokke® TrippTrapp® or not. If it is a Tripp Trapp®, openStokke is called, if not addToCart is called. return.html As return.html is passed with the parameter RETURNSUCCESS, the popup is redirected to his page as the user answers the questions correct. In the example this page contains only 2 JavaScript functions: <script type="text/javascript"> window.opener.addToCart(); window.close(); </script> This script calls the function returnStokkeSuccess in default.html, and then closes the popup. --> Könnte mir jemand von euch helfen, dieses Skript zum laufen zum bringen? Über Eure Hilfe wäre ich sehr dankbar. Link to comment Share on other sites More sharing options...
leverage Posted March 2, 2012 Report Share Posted March 2, 2012 Die alte 3.x-Version wird hier nicht mehr supported. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.