var designer;

$(document).ready(function () {
initializeEditor();
});

function initializeEditor() {
designer = new W2P.designer({
//set the customize now button to disabled untill the designer is ready…
$(“#customize_now_button”).attr(‘disabled’, ‘disabled’);
apiKey: “#your APIKey#”,
globalUrlPrefix: “https://pitchprint.net/app/”,
designId: “#any design ID#”,
autoInitialize: true,
product: {id:’PID_12′, title:’Sample Business Card’},
mode: “new”,
onReady: on_ready_function,
onSave: on_saved_function
});
}