This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.ControlPanelJSLoaded = function() { EcwidCheckout.init({/* something */}); }; | |
| var script = document.createElement('SCRIPT'); | |
| script.src = "https://checkout.ecwid.com/controlpanel-api.js"; | |
| script.charset = "utf-8"; | |
| script.setAttribute("type", "text/javascript"); | |
| script.onerror = function() { alert('Could not load script'); }; | |
| document.body.appendChild(script); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| EcwidCheckout.setConfig({ | |
| currency: {precision:2,roundScale:100,prefix:'$',suffix:'',code:'USD'}, | |
| weightUnit: 'POUND', | |
| storeName: 'Test store', | |
| companyEmail: '[email protected]', | |
| storeUrl: 'http://www.example.com', | |
| dateFormat: 'MMM d, yyyy', | |
| timeFormat: 'hh:mm a', | |
| timeZone: 'PST' | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -230,7 +230,7 @@ | |
| /* 3rd, 4th, etc level categories */ | |
| div.ecwid-categories-MenuBarPopup td.gwt-MenuItem { | |
| padding: 3px 40px 3px 10px; | |
| - width: 100%; | |
| + width: auto; | |
| } | |
| @@ -3250,7 +3250,8 @@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create a state token to prevent request forgery. | |
| // Store it in the session for later validation. | |
| $state = md5(rand()); | |
| $app['session']->set('state', $state); | |
| // Set the client ID, token state, and application name in the HTML while | |
| // serving it. | |
| return $app['twig']->render('index.html', array( | |
| 'CLIENT_ID' => CLIENT_ID, | |
| 'STATE' => $state, | |
| 'APPLICATION_NAME' => APPLICATION_NAME |
OlderNewer