|Support Center

Ezpizee Shopping Cart documentations and guides

Learn the how to dynamically display product's price on your existing website or the website that you built using one of our CMS extensions.

Price & Cart is done via the integration with Ezpizee StoreFront REST API. In order to integrate with Ezpizee StoreFront API, you will need the following information:

DataValueNotes

Environment

stage, or prodThe environment of Ezpizee StoreFront REST API. Default is: prod.
Schemahttp:// or https://The HTTP protocol for the Ezpizee StoreFront REST API. Default is: https://
Public keyUUID formati.e. 785E6116-7666-4A21-BE5A-50A46047E9F2. Public key can be obtained via your Ezpizee's Portal.

Code snippet

For Price, Cart, and any other Ezpizee StoreFront REST API to work, you need to include the following code on your page (in the <head> or <body> section).

<script src="https://cdn.ezpz.solutions/storefrontclient.min.js" type="text/javascript"></script>
<script type="text/javascript">
    // replace the ${env} with stage or prod
    EzpzStoreFront.apiEndpointHost.setHostByEnvironment("${env}");
    // replace the ${schema} with http:// or https://
    EzpzStoreFront.apiEndpointHost.setSchema("${schema}");
    // replace the ${publicKey} with your public key
    EzpzStoreFront.apiEndpointMerchantPublicKey.setKey("${publicKey}");
</script>