This file contains 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
<!-- | |
This is the default store template file which is used to create new stores. It contains all predefined settings and | |
products, and even demo orders and customers. Every bit of this template can be replaced when the store is | |
creating in an API call. The custom template passed in API call should have the same structure, but may only describe | |
some of the tags. Tags in the custom template replace the corresponding tags in the default template before it | |
gets applied to store creation. Tags that are missing from the custom template are taken from the default template. | |
Note that some tags are replaced, not merged, meaning that all the subtag structure is taken from the custom | |
template, if the custom template specifies the tag. |
This file contains 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
<storeList> | |
<stores> | |
<id>STORE ID</id> | |
<channelId>PARTNER ID</channelId> | |
<name>Store name</name> | |
<nick>Store owner's nickname</nick> | |
<email>Store owner's email</email> | |
<url>Store URL</url> | |
<suspended>'Suspended' status, either 'true' or 'false'</suspended> | |
<traffic>Traffic consumed since start of the month, bytes</traffic> |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<be-owner-result> | |
<redirect-url>URL_TO_REDIRECT_TO</redirect-url> | |
</be-owner-result> |
This file contains 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.Ecwid.OnAPILoaded.add(function() { | |
window.Ecwid.setSignInUrls({ | |
signInUrl: 'http://my.site.com/signin', | |
signOutUrl: 'http://my.site.com/signout' // signOutUrl is optional | |
}); | |
}); |
This file contains 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.Ecwid.OnAPILoaded.add(function() { | |
window.Ecwid.setSignInProvider({ | |
addSignInLinkToPB: function() { return true; }, | |
signIn: function () { alert('sign in'); | |
window.Ecwid.setSsoProfile('<?php echo "$message $hmac $timestamp"; ?>'); | |
}, | |
canSignOut: function() { return true; }, | |
signOut: function () { alert('sign out') } | |
}); | |
}); |
This file contains 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
<script src="//app.ecwid.com/script.js?1003" type="text/javascript" charset="UTF-8"></script> | |
<script> | |
Ecwid.OnAPILoaded.add(function() { | |
// Ecwid API is available, do something | |
alert(Ecwid.formatCurrency(123.45)); | |
}); | |
</script> |
This file contains 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
<script src="//app.ecwid.com/script.js?1003" type="text/javascript" charset="UTF-8"></script> | |
<script> | |
function dump(arr,level) { | |
var dumped_text = ""; | |
if (!level) level = 0; | |
// The padding given at the beginning of the line. | |
var level_padding = ""; | |
for (var j=0;j<level+1;j++) level_padding += " "; | |
This file contains 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
<script src="//app.ecwid.com/script.js?1003" type="text/javascript" charset="UTF-8"></script> | |
<script> | |
Ecwid.OnPageLoad.add(function(page) { | |
alert("My page load handler: "+page.type); | |
}); | |
</script> |
This file contains 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
<script src="https://checkout.ecwid.com/controlpanel-api.js" type="text/javascript" charset="UTF-8"></script> | |
<script> | |
EcwidCheckout.OnChanged.add(function() { | |
alert("My change event handler"); | |
}); | |
</script> |
This file contains 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
<?php | |
define('CHECKOUT_WIDGET_OWNERID', 'TEST-123'); | |
define('CHECKOUT_WIDGET_KEY', 'secret'); | |
$timestamp = time(); | |
$signature = hash_hmac( "sha1", CHECKOUT_WIDGET_OWNERID." ".$timestamp, CHECKOUT_WIDGET_KEY); | |
?> | |
<script src="https://checkout.ecwid.com/controlpanel-api.js" type="text/javascript" charset="UTF-8"></script> | |
<script> |
OlderNewer