\\t\",\"tags\":[],\"warranty\":\"\",\"price\":{\"without_tax\":{\"formatted\":\"$12.38\",\"value\":12.38,\"currency\":\"USD\"},\"tax_label\":\"Tax\"},\"detail_messages\":\"\",\"availability\":\"\",\"page_title\":\"\",\"cart_url\":\"https://cardsandpockets.com/cart.php\",\"max_purchase_quantity\":0,\"mpn\":null,\"out_of_stock\":true,\"upc\":null,\"options\":[],\"related_products\":[{\"id\":24582,\"sku\":\"NSP-CC-PATTERN-PAPER-5x7-WATERCOLOR_LEAVES\",\"name\":\"Watercolor Leaves - 5x7 Panel Card Custom Pattern Paper (25 Pack)\",\"url\":\"https://cardsandpockets.com/paper/pattern-paper/watercolor-leaves-5x7-panel-card-custom-pattern-paper-25-pack/\",\"availability\":\"\",\"rating\":0,\"brand\":{\"name\":null},\"category\":[\"Printing/Customizable Templates\"],\"summary\":\"\",\"image\":{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24582/26279/PC_57watercolor_leaves__25578.1704990661.jpg?c=2\",\"alt\":\"Watercolor Leaves - 5x7 Panel Card Custom Pattern Paper (25 Pack)\"},\"images\":[{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24582/26279/PC_57watercolor_leaves__25578.1704990661.jpg?c=2\",\"alt\":\"Watercolor Leaves - 5x7 Panel Card Custom Pattern Paper (25 Pack)\"}],\"date_added\":\"11th Jan 2024\",\"pre_order\":false,\"show_cart_action\":true,\"has_options\":false,\"stock_level\":0,\"low_stock_level\":300,\"qty_in_cart\":0,\"custom_fields\":[{\"id\":592716,\"name\":\"Size\",\"value\":\"5x7\"},{\"id\":592717,\"name\":\"Category\",\"value\":\"Pattern Card\"},{\"id\":606245,\"name\":\"custom_view_template\",\"value\":\"has-proof\"},{\"id\":638386,\"name\":\"Style\",\"value\":\"Watercolor Leaves\"}],\"num_reviews\":0,\"weight\":{\"formatted\":\"4.00 Ounces\",\"value\":4},\"demo\":false,\"out_of_stock_message\":\"Temporarily Out of stock\",\"add_to_wishlist_url\":\"https://cardsandpockets.com/wishlist.php?action=add&product_id=24582\",\"price\":{\"without_tax\":{\"formatted\":\"$5.68\",\"value\":5.68,\"currency\":\"USD\"},\"tax_label\":\"Tax\"}},{\"id\":24615,\"sku\":\"NSP-CC-PATTERN-PAPER-6x6-MAPLE_LEAVES\",\"name\":\"Maple Leaves - 6x6 Panel Card Custom Pattern Paper (25 Pack)\",\"url\":\"https://cardsandpockets.com/paper/pattern-paper/maple-leaves-6x6-panel-card-custom-pattern-paper-25-pack/\",\"availability\":\"\",\"rating\":0,\"brand\":{\"name\":null},\"category\":[\"Printing/Customizable Templates\"],\"summary\":\"\",\"image\":{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24615/26280/6x6pcmapleleavespattern__50733.1704990661.jpg?c=2\",\"alt\":\"Maple Leaves - 6x6 Panel Card Custom Pattern Paper (25 Pack)\"},\"images\":[{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24615/26280/6x6pcmapleleavespattern__50733.1704990661.jpg?c=2\",\"alt\":\"Maple Leaves - 6x6 Panel Card Custom Pattern Paper (25 Pack)\"}],\"date_added\":\"11th Jan 2024\",\"pre_order\":false,\"show_cart_action\":true,\"has_options\":false,\"stock_level\":0,\"low_stock_level\":300,\"qty_in_cart\":0,\"custom_fields\":[{\"id\":592718,\"name\":\"Category\",\"value\":\"Pattern Card\"},{\"id\":606278,\"name\":\"custom_view_template\",\"value\":\"has-proof\"},{\"id\":638387,\"name\":\"Style\",\"value\":\"Maple Leaves\"}],\"num_reviews\":0,\"weight\":{\"formatted\":\"4.00 Ounces\",\"value\":4},\"demo\":false,\"out_of_stock_message\":\"Temporarily Out of stock\",\"add_to_wishlist_url\":\"https://cardsandpockets.com/wishlist.php?action=add&product_id=24615\",\"price\":{\"without_tax\":{\"formatted\":\"$5.68\",\"value\":5.68,\"currency\":\"USD\"},\"tax_label\":\"Tax\"}},{\"id\":24583,\"sku\":\"NSP-CC-PATTERN-PAPER-5x7-MAPLE_LEAVES\",\"name\":\"Maple Leaves - 5x7 Custom Pattern Belly Bands (25 Pack)\",\"url\":\"https://cardsandpockets.com/c-p-wedding/embellishments/belly-bands/maple-leaves-5x7-custom-pattern-belly-bands-25-pack/\",\"availability\":\"\",\"rating\":0,\"brand\":{\"name\":null},\"category\":[\"Printing/Customizable Templates\"],\"summary\":\"\",\"image\":{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24583/26277/5x7bbmapleleavespattern__86060.1704990660.jpg?c=2\",\"alt\":\"Maple Leaves - 5x7 Custom Pattern Belly Bands (25 Pack)\"},\"images\":[{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24583/26277/5x7bbmapleleavespattern__86060.1704990660.jpg?c=2\",\"alt\":\"Maple Leaves - 5x7 Custom Pattern Belly Bands (25 Pack)\"}],\"date_added\":\"11th Jan 2024\",\"pre_order\":false,\"show_cart_action\":true,\"has_options\":false,\"stock_level\":0,\"low_stock_level\":300,\"qty_in_cart\":0,\"custom_fields\":[{\"id\":592712,\"name\":\"Size\",\"value\":\"5x7\"},{\"id\":592713,\"name\":\"Category\",\"value\":\"Pattern Card\"},{\"id\":606246,\"name\":\"custom_view_template\",\"value\":\"has-proof\"},{\"id\":638384,\"name\":\"Style\",\"value\":\"Maple Leaves\"}],\"num_reviews\":0,\"weight\":{\"formatted\":\"2.10 Ounces\",\"value\":2.1},\"demo\":false,\"out_of_stock_message\":\"Temporarily Out of stock\",\"add_to_wishlist_url\":\"https://cardsandpockets.com/wishlist.php?action=add&product_id=24583\",\"price\":{\"without_tax\":{\"formatted\":\"$6.81\",\"value\":6.81,\"currency\":\"USD\"},\"tax_label\":\"Tax\"}},{\"id\":24584,\"sku\":\"NSP-CC-PATTERN-PAPER-5x7-VINTAGE_FLOWERS\",\"name\":\"Vintage Flowers - 5x7 Panel Card - Custom Pattern Paper (25 Pack)\",\"url\":\"https://cardsandpockets.com/paper/pattern-paper/vintage-flowers-5x7-panel-card-custom-pattern-paper-25-pack/\",\"availability\":\"\",\"rating\":0,\"brand\":{\"name\":null},\"category\":[\"Printing/Customizable Templates\"],\"summary\":\"\",\"image\":{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24584/26278/5x7pcVintageFlowersPattern__31610.1704990661.jpg?c=2\",\"alt\":\"Vintage Flowers - 5x7 Panel Card - Custom Pattern Paper (25 Pack)\"},\"images\":[{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24584/26278/5x7pcVintageFlowersPattern__31610.1704990661.jpg?c=2\",\"alt\":\"Vintage Flowers - 5x7 Panel Card - Custom Pattern Paper (25 Pack)\"}],\"date_added\":\"11th Jan 2024\",\"pre_order\":false,\"show_cart_action\":true,\"has_options\":false,\"stock_level\":0,\"low_stock_level\":300,\"qty_in_cart\":0,\"custom_fields\":[{\"id\":592714,\"name\":\"Size\",\"value\":\"5x7\"},{\"id\":592715,\"name\":\"Category\",\"value\":\"Pattern Card\"},{\"id\":606247,\"name\":\"custom_view_template\",\"value\":\"has-proof\"},{\"id\":638385,\"name\":\"Style\",\"value\":\"Vintage Flowers\"}],\"num_reviews\":0,\"weight\":{\"formatted\":\"4.00 Ounces\",\"value\":4},\"demo\":false,\"out_of_stock_message\":\"Temporarily Out of stock\",\"add_to_wishlist_url\":\"https://cardsandpockets.com/wishlist.php?action=add&product_id=24584\",\"price\":{\"without_tax\":{\"formatted\":\"$5.68\",\"value\":5.68,\"currency\":\"USD\"},\"tax_label\":\"Tax\"}}],\"shipping_messages\":[],\"rating\":0,\"reviews\":{\"messages\":[],\"captcha\":\"6LdWf8gSAAAAAI83aRectJhbwidegZKk8PzWBltH\",\"recaptcha\":{\"enabled\":1,\"public_key\":\"6LdWf8gSAAAAAI83aRectJhbwidegZKk8PzWBltH\",\"markup\":\" \"},\"total\":0},\"bulk_discount_rates\":[],\"meta_keywords\":\"\",\"show_quantity_input\":1,\"title\":\"Maple Leaves - 5x7 Panel Card Custom Pattern Paper (25 Pack)\",\"gift_wrapping_available\":false,\"min_purchase_quantity\":1,\"customizations\":[],\"images\":[{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24911/26890/5x7pcmapleleavespattern__45652.1706715420.jpg?c=2\",\"alt\":\"Maple Leaves - 5x7 Panel Card Custom Pattern Paper (25 Pack)\"}]},\"themeImageSizes\":{\"amp-product-image\":{\"width\":500,\"height\":500},\"core-product-picklist\":{\"width\":100,\"height\":100},\"thumb\":{\"width\":200,\"height\":200},\"featured\":{\"width\":1280,\"height\":1280},\"product-list\":{\"width\":500,\"height\":500},\"account-product-thumbnail\":{\"width\":600,\"height\":600},\"banner\":{\"width\":2048,\"height\":2048},\"core-swatch\":{\"width\":400,\"height\":400},\"large\":{\"width\":1024,\"height\":1024},\"account-logo\":{\"width\":250,\"height\":100}},\"storefront_api\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL2NhcmRzYW5kcG9ja2V0cy5jb20iXSwiZWF0IjoxNzgyMDQzNDc3LCJpYXQiOjE3ODE4NzA2NzcsImlzcyI6IkJDIiwic2lkIjoxMDAwNTYwNjYwLCJzdWIiOiJCQyIsInN1Yl90eXBlIjowLCJ0b2tlbl90eXBlIjoxfQ.2qjDsEPPGFp8F4Gia3S0Hl8qD_raSmF0H81P7L2z9FuC3XpkZF-hi2B8nxO2ZxGWNwnW0NUK2nejoVaeYtQGoA\",\"validationRequired\":\"This field is required.\",\"validationEmail\":\"Your E-mail address appears to be invalid.\",\"validationNumber\":\"You can enter only numbers in this field.\",\"validationNumMax\":\"Please enter a number less than undefined.\",\"validationNumMin\":\"Please enter a number greater than undefined.\",\"validationNumRange\":\"Please enter a number greater than undefined and less than undefined.\",\"validationMaxLength\":\"Maximum undefined characters allowed.\",\"validationMinLength\":\"Minimum undefined characters allowed.\",\"validationMaxChecked\":\"Maximum undefined options allowed.\",\"validationMinChecked\":\"Please select minimum undefined options.\",\"validationMaxSelected\":\"Maximum undefined selection allowed.\",\"validationMinSelected\":\"Minimum undefined selection allowed.\",\"validationNotEqual\":\"Fields do not match.\",\"validationDifferent\":\"Fields cannot be the same as each other.\",\"addSuccess\":\"*product* has been added to your cart. *cart_link* or *checkout_link*.\",\"addToCart\":\"product.add_to_cart\",\"cartLink\":\"View cart\",\"checkoutLink\":\"check out\",\"errorMessageGeneral\":\"product.error_message_general\",\"outOfStock\":\"product.error_message_stock\",\"preOrder\":\"Pre Order\",\"soldOut\":\"Sold out\",\"compare_oneItem\":\"common.compare.one_item\",\"compare_items\":\"common.compare.items\",\"compareRemove\":\"Remove\",\"homeLink\":\"product.home_link\",\"messagesWishlistAddError\":\"*product* could not be added to wishlist.\",\"messagesWishlistAddSuccess\":\"*product* successfully added to wishlist.\",\"productSale\":\"On Sale\",\"productExcludingTax\":\"exc. tax\",\"productIncludingTax\":\"inc. tax\",\"productYouSave\":\"You save\",\"urlsCart\":\"https://cardsandpockets.com/cart.php\",\"urlsCheckout\":\"https://cardsandpockets.com/checkout\",\"salePriceLabel\":\"Now:\",\"nonSalePriceLabel\":\"Was:\",\"retailPriceLabel\":\"MSRP:\",\"priceLabel\":\"\",\"themeSettings\":{\"home_section_1_item_type\":\"categories\",\"optimizedCheckout-contentSecondary-font\":\"Google_Karla_400\",\"optimizedCheckout-buttonSecondary-color\":\"#4f4f4f\",\"color_headings\":\"#889EA9\",\"store_copyright\":true,\"paymentbuttons-paypal-size\":\"small\",\"sale-price-label\":\"Now:\",\"additional_link_label_4\":\"Samples\",\"style_apple_pay_button\":\"white-border\",\"home_section_3_item_type\":\"featured\",\"default_image\":\"/assets/img/no-image.svg\",\"optimizedCheckout-buttonPrimary-colorHover\":\"#ffffff\",\"optimizedCheckout-logo-position\":\"left\",\"optimizedCheckout-discountBanner-backgroundColor\":\"#f5f5f5\",\"home_section_2_style\":\"carousel\",\"additional_link_url_2\":\"/brands/\",\"additional_link_label_1\":\"Product Tour\",\"optimizedCheckout-headingPrimary-font\":\"Google_Montserrat_400\",\"optimizedCheckout-formField-backgroundColor\":\"white\",\"paymentbuttons-paypal-label\":\"checkout\",\"paymentbuttons-paypal-shape\":\"pill\",\"optimizedCheckout-discountBanner-textColor\":\"#333333\",\"optimizedCheckout-backgroundImage-size\":\"1000x400\",\"optimizedCheckout-buttonPrimary-font\":\"Google_Karla_400\",\"header_logo_alignment\":\"left\",\"payment_apple_pay\":true,\"color_highlight\":\"#DAE3E7\",\"product_grid_image_cropping\":\"image-cover\",\"paymentbuttons-paypal-layout\":\"horizontal\",\"price_range_display\":\"both\",\"lazyload_mode\":\"lazyload+lqip\",\"footer_section_4\":\"disable\",\"optimizedCheckout-link-font\":\"Google_Karla_400\",\"payment_visa\":true,\"home_show_blog\":true,\"_images\":{\"amp-product-image\":{\"width\":500,\"height\":500},\"core-product-picklist\":{\"width\":100,\"height\":100},\"thumb\":{\"width\":200,\"height\":200},\"featured\":{\"width\":1280,\"height\":1280},\"product-list\":{\"width\":500,\"height\":500},\"account-product-thumbnail\":{\"width\":600,\"height\":600},\"banner\":{\"width\":2048,\"height\":2048},\"core-swatch\":{\"width\":400,\"height\":400},\"large\":{\"width\":1024,\"height\":1024},\"account-logo\":{\"width\":250,\"height\":100}},\"optimizedCheckout-step-textColor\":\"#ffffff\",\"optimizedCheckout-formField-borderColor\":\"#989898\",\"optimizedCheckout-link-color\":\"#4496f6\",\"optimizedCheckout-headingSecondary-font\":\"Google_Montserrat_400\",\"product_catalog_limit\":30,\"additional_link_url_5\":\"/customer-service/\",\"product_catalog_banner_image_ratio\":\"ratio-10-4\",\"optimizedCheckout-headingSecondary-color\":\"#2d2d2d\",\"home_section_3_style\":\"grid\",\"optimizedCheckout-logo-size\":\"250x100\",\"footer_section_1\":\"newsletter\",\"show_stock_levels\":true,\"paymentbuttons-paypal-color\":\"gold\",\"optimizedCheckout-body-backgroundColor\":\"#ffffff\",\"home_section_2_limit\":0,\"paymentbuttons-paypal-tagline\":true,\"additional_link_label_3\":\"About Us\",\"optimizedCheckout-discountBanner-iconColor\":\"#333333\",\"carousel_style\":\"light\",\"default_image_gift_certificate\":\"/assets/img/giftcertificate-image.svg\",\"optimizedCheckout-buttonSecondary-borderColor\":\"#dfdfdf\",\"color_error\":\"#D98C78\",\"additional_link_url_1\":\"/info/product-info/product-tour/\",\"home_section_1_style\":\"grid-featured\",\"payment_paypal\":true,\"optimizedCheckout-orderSummary-backgroundColor\":\"#ffffff\",\"show_sitemap\":false,\"additional_link_url_6\":\"/giftcertificates.php\",\"optimizedCheckout-show-logo\":\"none\",\"price-label\":\"\",\"optimizedCheckout-step-backgroundColor\":\"#4f4f4f\",\"home_section_1_limit\":0,\"optimizedCheckout-headingPrimary-color\":\"#2d2d2d\",\"shop_by_price\":true,\"optimizedCheckout-contentPrimary-color\":\"#4f4f4f\",\"optimizedCheckout-buttonSecondary-font\":\"Google_Karla_400\",\"optimizedCheckout-backgroundImage\":\"\",\"additional_link_label_2\":\"Color Chart\",\"home_section_3_limit\":0,\"optimizedCheckout-header-backgroundColor\":\"#f7f7f7\",\"color_background\":\"#FFFFFF\",\"sidebar_link_list\":\"social\",\"paymentbuttons-paypal-fundingicons\":false,\"color_info\":\"#4F4F4F\",\"carousel_aspect_ratio\":\"ratio-any\",\"optimizedCheckout-buttonPrimary-color\":\"#ffffff\",\"footer_section_2\":\"pages\",\"sale-badges\":true,\"product_description_excerpt_length\":\"280\",\"color_text\":\"#5A5A5A\",\"optimizedCheckout-logo\":\"\",\"color_secondary\":\"#D2ADA9\",\"payment_mastercard\":true,\"payment_american_express\":true,\"home_section_4_style\":\"carousel\",\"optimizedCheckout-buttonPrimary-borderColorHover\":\"#666666\",\"primary-font\":\"Google_Playfair+Display_400,700\",\"show_product_quantity_box\":true,\"shop_by_brand\":true,\"product_grid_image_ratio\":\"ratio-3-4\",\"color_primary\":\"#889EA9\",\"color_success\":\"#A8B8B1\",\"theme_credits\":false,\"additional_link_url_4\":\"/info/samples/\",\"optimizedCheckout-buttonSecondary-backgroundColor\":\"#ffffff\",\"product_catalog_quickshop\":false,\"show_product_count\":true,\"home_section_4_limit\":0,\"optimizedCheckout-buttonPrimary-backgroundColor\":\"#454545\",\"color_borders\":\"#cccccc\",\"footer_style\":\"light\",\"product_catalog_infinite_scroll\":false,\"optimizedCheckout-contentPrimary-font\":\"Google_Karla_400\",\"supported_card_type_icons\":[\"american_express\",\"diners_club\",\"discover\",\"mastercard\",\"visa\"],\"related-products\":\"4\",\"payment_discover\":true,\"non-sale-price-label\":\"Was:\",\"hide_info\":false,\"product_catalog_parallax\":false,\"optimizedCheckout-contentSecondary-color\":\"#989898\",\"retail-price-label\":\"MSRP:\",\"additional_link_url_3\":\"/about-us/\",\"additional_link_label_6\":\"Gift Certificates\",\"optimizedCheckout-buttonPrimary-borderColor\":\"#454545\",\"product_grid_as_low_as_pricing\":false,\"secondary-font\":\"Google_Lato_400,700\",\"additional_link_label_5\":\"Customer Service\",\"optimizedCheckout-show-backgroundImage\":false,\"home_section_4_item_type\":\"top-sellers\",\"home_section_2_item_type\":\"new\",\"optimizedCheckout-buttonPrimary-backgroundColorHover\":\"#666666\",\"footer_section_3\":\"address\",\"blog_aspect_ratio\":\"ratio-16-9\"},\"homeUrl\":\"https://cardsandpockets.com/\",\"brandsUrl\":\"https://cardsandpockets.com/brands/\",\"zoomClose\":\"Close (Esc)\",\"zoomShare\":\"Share\",\"zoomFullscreen\":\"Toggle fullscreen\",\"zoomAction\":\"Zoom in/out\",\"zoomPrevious\":\"Previous (arrow left)\",\"zoomNext\":\"Next (arrow right)\",\"couponCodeEmptyInput\":\"Please enter your coupon code.\",\"giftCertificateInputEmpty\":\"Please enter your valid certificate code.\"}");
var integrationInfo;
var userInfo;
var storefront;
async function loadEditor(context, formData, restoreData) {
await editorInitialization(context, formData, restoreData);
updateDriverParams(formData);
}
function updateDriverParams(formData) {
let driver = window.auWizard.scope.driver;
driver.cart.lineItems[0].quantity = getQuantity(formData);
}
function getQuantity(formData) {
let quantity = 1;
const quantityParam = formData.find(x => { return x['name'] === 'qty[]' });
if (quantityParam) {
quantity = quantityParam['value'];
}
return quantity;
}
function getFormData(form) {
let button = form.querySelector('#personalize-button');
if (!button) {
button = form.querySelector('button[name=\"add-to-cart\"]');
}
if (!button) {
console.error('Submit button was not found.');
return;
}
console.log(form);
let formData = jQuery(form).serializeArray()
return formData;
}
function showEditor() {
// hideLockShroud();
if (window.auWizard && window.auWizard.scope.driver) {
window.auWizard.showEditorPopup();
} else {
document.getElementById('customers-canvas-editor-parent').addEventListener('load', function () {
window.auWizard.showEditorPopup();
});
}
}
async function editorInitialization(context, formData, restoreState) {
const queryParams = getQueryParameters();
const config = JSON.parse(this.integrationInfo.config);
config.displayInPopup = true;
this.integrationInfo.config = JSON.stringify(config);
this.integrationInfo.ecommerceSystemType = 7;
if(this.integrationInfo.optionBasedProductInfo) {
this.integrationInfo.optionBasedProductInfo.selectedVariantSku = document.querySelector('[data-product-sku]') ?? ""
}
const container = document.querySelector("#customers-canvas-editor-parent");
const productModel = context.product;
setOptionsToModel(formData, productModel);
const orderRestoreData = restoreState ? restoreOrderData() : null;
if(orderRestoreData && queryParams['sku']) {
this.integrationInfo.optionBasedProductInfo.selectedVariantSku = queryParams['sku'];
}
const driver = await this.storefront.loadEditor(container, this.integrationInfo, this.userInfo, productModel, orderRestoreData);
const personalizeButton = document.querySelector('#personalize-button');
personalizeButton.disabled = false;
this.storefront.onFinish.subscribe(async (bo, project) => {
for (let x of project.line_items) {
let i = project.line_items.indexOf(x);
let data = {
items: [
{
key: x.key || '',
externalId: auWizard.scope.driver.cart.lineItems[i]._cartItemId || '',
quantity: x.quantity || 1,
userId: x.userId || '',
designIds: x.stateId || [],
fields: x.fields || {},
hidden: JSON.stringify(x.hidden) || '',
resources: x.properties?.resources || []
},
]
}
console.log("data: ", JSON.stringify(data));
try {
const response = await fetch(`https://bigcommerce-adapter.azurewebsites.net/api/bigcommerce-adapter/v1/raw-projects?tenantId=1261&storefrontId=1267`,
{
method: 'POST',
body: JSON.stringify(data),
headers: {
'Content-type': 'application/json',
},
});
if (response.ok) {
const data = await response.json();
if (data.status == 'success') {
console.log(data);
} else {
console.error('error: ' + data.message);
}
} else {
let errorText = await response.text();
console.error("failed to load " + response.url, response.status, response.statusText, errorText);
}
}
catch (ex) {
console.log('caught it!', ex);
}
if (bo._apps.driver.cart._lineItems[0].props === undefined) {
let editorLinkOption = bo._apps.driver.products.current._options.find(x => x.title === 'BackOffice project link');
let valuesArray = [
data.items[0].key,
];
await bo._apps.driver._cart._lineItems.current.choices.update(editorLinkOption, valuesArray);
} else {
bo._apps.driver.cart.lineItems.forEach((item, i) => {
item.data.projectId = data.items[i].key
});
}
}
hideEditor();
});
}
function setOptionsToModel(formData, productModel) {
console.log(formData);
const formOptions = formData.filter(x => { return x['name'].startsWith('attribute['); });
formOptions.forEach(formOption => {
try {
const optionId = formOption['name'].match(/\d+/)[0];
const optionValue = formOption['value'];
const option = productModel.options.find(x => x.id === parseInt(optionId));
if(option.type == 'Configurable_Entry_Text') {
option.values.push({id:optionValue, selected: true })
return;
}
option.values.forEach(value => {
if (value.id === parseInt(optionValue)) {
value.selected = true;
} else {
value.selected = false;
}
});
} catch (ex) {
console.error('Unable to preselect option', ex);
}
});
}
async function restoreEditionOnce(context) {
let formData = new FormData();
const restoredFormData = restoreFormData();
Object.keys(restoredFormData).forEach(key => {
formData.set(key, restoredFormData[key]);
})
const formDataArray = formDataToDictionary(formData);
await loadEditor(context, formDataArray, true);
showEditor();
}
function isReturned() {
const params = getQueryParameters();
return params['page'] == 'design';
}
function getQueryParameters(url) {
const params = {};
if (!url) url = window.location.href;
const queryIndex = url.lastIndexOf('?');
const query = url.substring(queryIndex === -1 ? url.length : queryIndex + 1);
const vars = query.split('&');
for (let i = 0; i < vars.length; i++) {
const pair = vars[i].split('=');
params[pair[0]] = decodeURIComponent(pair[1]);
}
delete params[""];
console.log(params);
return params;
}
function restoreOrderData() {
const orderRestoreData = getExistingOrder();
return orderRestoreData;
}
function getExistingOrder () {
var queryParams = this.getQueryParameters();
let project = {};
// order already exist
if (queryParams) {
if (queryParams['projectId']) {
project = this.getProjectFromLocalStorageByKey(queryParams['projectId']);
return {
snapshot: project['snapshot'],
key: queryParams['cartItemId']
};
}
if (queryParams['snapshot']) {
return {
snapshot: queryParams['snapshot'],
key: queryParams['key']
};
}
}
return null;
}
function getProjectFromLocalStorageByKey (key) {
if (localStorage[`aurigma_project_${key}`] === undefined) {
return {};
}
var project = JSON.parse(localStorage[`aurigma_project_${key}`]);
if (project.items[0].hasOwnProperty('hidden')) {
let result = {
snapshot: project.items[0]['hidden']['snapshot'],
};
return result;
}
return {};
}
function restoreFormData() {
const formRestoreData = {};
const params = getQueryParameters();
var options = Object.keys(params).reduce(function (options, key) {
if (key.startsWith('option_')) {
let optionId = key.match(/\d+/)[0]
options[`attribute[${optionId}]`] = params[key];
}
return options;
}, {});
for (let key of Object.keys(options)) {
formRestoreData[key] = options[key];
}
formRestoreData['quantity'] = params['quantity']
return formRestoreData;
}
function formDataToDictionary(formData) {
const result = [];
for (var pair of formData) {
result.push({
'name': pair[0],
'value': pair[1],
});
}
return result;
}
async function preload() {
const shopDomain = window.location.host;
const shopDomainForUserId = shopDomain.split('.')[0];
this.userInfo = {
id: context.customer ? shopDomainForUserId + '_' + context.customer.id : getAnonymousUser(), // ?
data: {
...(context.customer) && { name: context.customer.name },
...(context.customer) && { email: context.customer.email }
}
};
const bigCommerceUrl = window.location.origin // ?
const pluginSettings = {
bigcommerceAdapterUrl: "https://bigcommerce-adapter.azurewebsites.net/",
customersCanvasBaseUrl: "https://customerscanvashub.com",
bigCommerceBaseUrl: bigCommerceUrl,
locale: 'en', // hardcode
currency: context.product.price.without_tax.currency,
cartUrl: `cart.php`,
redirectToCartAfterAdd: false, // ?
addToCartUrl: `remote/v1/cart/add`,
addToCartUpdateUrl: 'cart.php',
updatePriceUrl: '???', // ?
ecommerceSystemType: 7,
};
this.storefront = new Aurigma.BackOffice({
tenantId: 1261,
ecommerceSystemId: 1267,
backOfficeUrl: 'https://customerscanvashub.com',
pluginSettings: pluginSettings
});
this.integrationInfo = await storefront.templates.findByProduct(context.product.id);
const result = await storefront.preload(this.integrationInfo, this.userInfo);
}
function getAnonymousUser() {
let userId = "guest";
const cookie = document.cookie;
const cookieArray = cookie.split(";");
const cookieObj = {};
cookieArray.forEach(function(equal) {
var arr = equal.split("=");
var key = arr[0];
var value = arr[1];
cookieObj[key.trim()] = value;
});
function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
};
userId = cookieObj["fornax_anonymousId"] || guid();
return userId;
}
function hideEditor() {
auWizard.closeEditorPopup(true);
}
function validateProductForm(form, formData) {
const formOptions = formData.filter(x => { return x['name'].startsWith('attribute['); });
const productModel = this.context.product;
formOptions.forEach(formOption => {
const hasOptionValue = !!formOption['value'];
const optionId = formOption['name'].match(/\d+/)[0];
const option = productModel.options.find(x => x.id === parseInt(optionId));
if(!hasOptionValue && option.required) {
const personalizeButton = document.querySelector('#personalize-button');
personalizeButton.disabled = true;
form.requestSubmit();
throw new Error('Unable to preselect option');
}
});
}
function addPersonalizeButton(context) {
const personalizeButton = document.querySelector('#personalize-button');
personalizeButton && personalizeButton.addEventListener('click', onPersonalize);
personalizeButton.disabled = false;
function onPersonalize() {
let forms = document.querySelectorAll('form[data-cart-item-add]')
if (!forms || forms.length === 0) {
console.error('Product options form was not found.');
return;
}
let form = forms[0];
let formData = getFormData(form);
validateProductForm(form, formData);
loadEditor(context, formData, false)
showEditor()
}
}
document.addEventListener("DOMContentLoaded", async () => {
await preload();
this.addPersonalizeButton(this.context);
const isRestored = isReturned();
if (isRestored) {
await restoreEditionOnce(this.context);
}
});
Maple Leaves - 5x7 Panel Card Custom Pattern Paper (25 Pack)
$12.38
Select Options
Product Description Design your own paper by choosing one of our patterns to be printed on any of our ink colors onto White, Cream, Opal or Quartz Cardstock! Size: 5" x 7" Helpful Links View Pattern Chart Additional InformationProcessing time for Patterned Papers…
Processing time for Patterned Papers is 3 business days.
Each paper that we carry has unique properties, and as such will take ink slightly differently. Please note that cardstock and textweight in the same stock color will have slightly different print color results.
We cannot print metallized inks, therefore any paper color you choose whether metallic or non-metallic will be printed in the closest representation of a matte(non-metallic) ink.
Custom Patterned Paper is considered a customized product and is therefore non-returnable. Please order a sample before placing a bulk order.
\\t\",\"tags\":[],\"warranty\":\"\",\"price\":{\"without_tax\":{\"formatted\":\"$12.38\",\"value\":12.38,\"currency\":\"USD\"},\"tax_label\":\"Tax\"},\"detail_messages\":\"\",\"availability\":\"\",\"page_title\":\"\",\"cart_url\":\"https://cardsandpockets.com/cart.php\",\"max_purchase_quantity\":0,\"mpn\":null,\"out_of_stock\":true,\"upc\":null,\"options\":[],\"related_products\":[{\"id\":24582,\"sku\":\"NSP-CC-PATTERN-PAPER-5x7-WATERCOLOR_LEAVES\",\"name\":\"Watercolor Leaves - 5x7 Panel Card Custom Pattern Paper (25 Pack)\",\"url\":\"https://cardsandpockets.com/paper/pattern-paper/watercolor-leaves-5x7-panel-card-custom-pattern-paper-25-pack/\",\"availability\":\"\",\"rating\":0,\"brand\":{\"name\":null},\"category\":[\"Printing/Customizable Templates\"],\"summary\":\"\",\"image\":{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24582/26279/PC_57watercolor_leaves__25578.1704990661.jpg?c=2\",\"alt\":\"Watercolor Leaves - 5x7 Panel Card Custom Pattern Paper (25 Pack)\"},\"images\":[{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24582/26279/PC_57watercolor_leaves__25578.1704990661.jpg?c=2\",\"alt\":\"Watercolor Leaves - 5x7 Panel Card Custom Pattern Paper (25 Pack)\"}],\"date_added\":\"11th Jan 2024\",\"pre_order\":false,\"show_cart_action\":true,\"has_options\":false,\"stock_level\":0,\"low_stock_level\":300,\"qty_in_cart\":0,\"custom_fields\":[{\"id\":592716,\"name\":\"Size\",\"value\":\"5x7\"},{\"id\":592717,\"name\":\"Category\",\"value\":\"Pattern Card\"},{\"id\":606245,\"name\":\"custom_view_template\",\"value\":\"has-proof\"},{\"id\":638386,\"name\":\"Style\",\"value\":\"Watercolor Leaves\"}],\"num_reviews\":0,\"weight\":{\"formatted\":\"4.00 Ounces\",\"value\":4},\"demo\":false,\"out_of_stock_message\":\"Temporarily Out of stock\",\"add_to_wishlist_url\":\"https://cardsandpockets.com/wishlist.php?action=add&product_id=24582\",\"price\":{\"without_tax\":{\"formatted\":\"$5.68\",\"value\":5.68,\"currency\":\"USD\"},\"tax_label\":\"Tax\"}},{\"id\":24615,\"sku\":\"NSP-CC-PATTERN-PAPER-6x6-MAPLE_LEAVES\",\"name\":\"Maple Leaves - 6x6 Panel Card Custom Pattern Paper (25 Pack)\",\"url\":\"https://cardsandpockets.com/paper/pattern-paper/maple-leaves-6x6-panel-card-custom-pattern-paper-25-pack/\",\"availability\":\"\",\"rating\":0,\"brand\":{\"name\":null},\"category\":[\"Printing/Customizable Templates\"],\"summary\":\"\",\"image\":{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24615/26280/6x6pcmapleleavespattern__50733.1704990661.jpg?c=2\",\"alt\":\"Maple Leaves - 6x6 Panel Card Custom Pattern Paper (25 Pack)\"},\"images\":[{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24615/26280/6x6pcmapleleavespattern__50733.1704990661.jpg?c=2\",\"alt\":\"Maple Leaves - 6x6 Panel Card Custom Pattern Paper (25 Pack)\"}],\"date_added\":\"11th Jan 2024\",\"pre_order\":false,\"show_cart_action\":true,\"has_options\":false,\"stock_level\":0,\"low_stock_level\":300,\"qty_in_cart\":0,\"custom_fields\":[{\"id\":592718,\"name\":\"Category\",\"value\":\"Pattern Card\"},{\"id\":606278,\"name\":\"custom_view_template\",\"value\":\"has-proof\"},{\"id\":638387,\"name\":\"Style\",\"value\":\"Maple Leaves\"}],\"num_reviews\":0,\"weight\":{\"formatted\":\"4.00 Ounces\",\"value\":4},\"demo\":false,\"out_of_stock_message\":\"Temporarily Out of stock\",\"add_to_wishlist_url\":\"https://cardsandpockets.com/wishlist.php?action=add&product_id=24615\",\"price\":{\"without_tax\":{\"formatted\":\"$5.68\",\"value\":5.68,\"currency\":\"USD\"},\"tax_label\":\"Tax\"}},{\"id\":24583,\"sku\":\"NSP-CC-PATTERN-PAPER-5x7-MAPLE_LEAVES\",\"name\":\"Maple Leaves - 5x7 Custom Pattern Belly Bands (25 Pack)\",\"url\":\"https://cardsandpockets.com/c-p-wedding/embellishments/belly-bands/maple-leaves-5x7-custom-pattern-belly-bands-25-pack/\",\"availability\":\"\",\"rating\":0,\"brand\":{\"name\":null},\"category\":[\"Printing/Customizable Templates\"],\"summary\":\"\",\"image\":{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24583/26277/5x7bbmapleleavespattern__86060.1704990660.jpg?c=2\",\"alt\":\"Maple Leaves - 5x7 Custom Pattern Belly Bands (25 Pack)\"},\"images\":[{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24583/26277/5x7bbmapleleavespattern__86060.1704990660.jpg?c=2\",\"alt\":\"Maple Leaves - 5x7 Custom Pattern Belly Bands (25 Pack)\"}],\"date_added\":\"11th Jan 2024\",\"pre_order\":false,\"show_cart_action\":true,\"has_options\":false,\"stock_level\":0,\"low_stock_level\":300,\"qty_in_cart\":0,\"custom_fields\":[{\"id\":592712,\"name\":\"Size\",\"value\":\"5x7\"},{\"id\":592713,\"name\":\"Category\",\"value\":\"Pattern Card\"},{\"id\":606246,\"name\":\"custom_view_template\",\"value\":\"has-proof\"},{\"id\":638384,\"name\":\"Style\",\"value\":\"Maple Leaves\"}],\"num_reviews\":0,\"weight\":{\"formatted\":\"2.10 Ounces\",\"value\":2.1},\"demo\":false,\"out_of_stock_message\":\"Temporarily Out of stock\",\"add_to_wishlist_url\":\"https://cardsandpockets.com/wishlist.php?action=add&product_id=24583\",\"price\":{\"without_tax\":{\"formatted\":\"$6.81\",\"value\":6.81,\"currency\":\"USD\"},\"tax_label\":\"Tax\"}},{\"id\":24584,\"sku\":\"NSP-CC-PATTERN-PAPER-5x7-VINTAGE_FLOWERS\",\"name\":\"Vintage Flowers - 5x7 Panel Card - Custom Pattern Paper (25 Pack)\",\"url\":\"https://cardsandpockets.com/paper/pattern-paper/vintage-flowers-5x7-panel-card-custom-pattern-paper-25-pack/\",\"availability\":\"\",\"rating\":0,\"brand\":{\"name\":null},\"category\":[\"Printing/Customizable Templates\"],\"summary\":\"\",\"image\":{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24584/26278/5x7pcVintageFlowersPattern__31610.1704990661.jpg?c=2\",\"alt\":\"Vintage Flowers - 5x7 Panel Card - Custom Pattern Paper (25 Pack)\"},\"images\":[{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24584/26278/5x7pcVintageFlowersPattern__31610.1704990661.jpg?c=2\",\"alt\":\"Vintage Flowers - 5x7 Panel Card - Custom Pattern Paper (25 Pack)\"}],\"date_added\":\"11th Jan 2024\",\"pre_order\":false,\"show_cart_action\":true,\"has_options\":false,\"stock_level\":0,\"low_stock_level\":300,\"qty_in_cart\":0,\"custom_fields\":[{\"id\":592714,\"name\":\"Size\",\"value\":\"5x7\"},{\"id\":592715,\"name\":\"Category\",\"value\":\"Pattern Card\"},{\"id\":606247,\"name\":\"custom_view_template\",\"value\":\"has-proof\"},{\"id\":638385,\"name\":\"Style\",\"value\":\"Vintage Flowers\"}],\"num_reviews\":0,\"weight\":{\"formatted\":\"4.00 Ounces\",\"value\":4},\"demo\":false,\"out_of_stock_message\":\"Temporarily Out of stock\",\"add_to_wishlist_url\":\"https://cardsandpockets.com/wishlist.php?action=add&product_id=24584\",\"price\":{\"without_tax\":{\"formatted\":\"$5.68\",\"value\":5.68,\"currency\":\"USD\"},\"tax_label\":\"Tax\"}}],\"shipping_messages\":[],\"rating\":0,\"reviews\":{\"messages\":[],\"captcha\":\"6LdWf8gSAAAAAI83aRectJhbwidegZKk8PzWBltH\",\"recaptcha\":{\"enabled\":1,\"public_key\":\"6LdWf8gSAAAAAI83aRectJhbwidegZKk8PzWBltH\",\"markup\":\" \"},\"total\":0},\"bulk_discount_rates\":[],\"meta_keywords\":\"\",\"show_quantity_input\":1,\"title\":\"Maple Leaves - 5x7 Panel Card Custom Pattern Paper (25 Pack)\",\"gift_wrapping_available\":false,\"min_purchase_quantity\":1,\"customizations\":[],\"images\":[{\"data\":\"https://cdn11.bigcommerce.com/s-vh3xppvhlh/images/stencil/{:size}/products/24911/26890/5x7pcmapleleavespattern__45652.1706715420.jpg?c=2\",\"alt\":\"Maple Leaves - 5x7 Panel Card Custom Pattern Paper (25 Pack)\"}]},\"themeImageSizes\":{\"amp-product-image\":{\"width\":500,\"height\":500},\"core-product-picklist\":{\"width\":100,\"height\":100},\"thumb\":{\"width\":200,\"height\":200},\"featured\":{\"width\":1280,\"height\":1280},\"product-list\":{\"width\":500,\"height\":500},\"account-product-thumbnail\":{\"width\":600,\"height\":600},\"banner\":{\"width\":2048,\"height\":2048},\"core-swatch\":{\"width\":400,\"height\":400},\"large\":{\"width\":1024,\"height\":1024},\"account-logo\":{\"width\":250,\"height\":100}},\"storefront_api\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL2NhcmRzYW5kcG9ja2V0cy5jb20iXSwiZWF0IjoxNzgyMDQzNDc3LCJpYXQiOjE3ODE4NzA2NzcsImlzcyI6IkJDIiwic2lkIjoxMDAwNTYwNjYwLCJzdWIiOiJCQyIsInN1Yl90eXBlIjowLCJ0b2tlbl90eXBlIjoxfQ.2qjDsEPPGFp8F4Gia3S0Hl8qD_raSmF0H81P7L2z9FuC3XpkZF-hi2B8nxO2ZxGWNwnW0NUK2nejoVaeYtQGoA\",\"validationRequired\":\"This field is required.\",\"validationEmail\":\"Your E-mail address appears to be invalid.\",\"validationNumber\":\"You can enter only numbers in this field.\",\"validationNumMax\":\"Please enter a number less than undefined.\",\"validationNumMin\":\"Please enter a number greater than undefined.\",\"validationNumRange\":\"Please enter a number greater than undefined and less than undefined.\",\"validationMaxLength\":\"Maximum undefined characters allowed.\",\"validationMinLength\":\"Minimum undefined characters allowed.\",\"validationMaxChecked\":\"Maximum undefined options allowed.\",\"validationMinChecked\":\"Please select minimum undefined options.\",\"validationMaxSelected\":\"Maximum undefined selection allowed.\",\"validationMinSelected\":\"Minimum undefined selection allowed.\",\"validationNotEqual\":\"Fields do not match.\",\"validationDifferent\":\"Fields cannot be the same as each other.\",\"addSuccess\":\"*product* has been added to your cart. *cart_link* or *checkout_link*.\",\"addToCart\":\"product.add_to_cart\",\"cartLink\":\"View cart\",\"checkoutLink\":\"check out\",\"errorMessageGeneral\":\"product.error_message_general\",\"outOfStock\":\"product.error_message_stock\",\"preOrder\":\"Pre Order\",\"soldOut\":\"Sold out\",\"compare_oneItem\":\"common.compare.one_item\",\"compare_items\":\"common.compare.items\",\"compareRemove\":\"Remove\",\"homeLink\":\"product.home_link\",\"messagesWishlistAddError\":\"*product* could not be added to wishlist.\",\"messagesWishlistAddSuccess\":\"*product* successfully added to wishlist.\",\"productSale\":\"On Sale\",\"productExcludingTax\":\"exc. tax\",\"productIncludingTax\":\"inc. tax\",\"productYouSave\":\"You save\",\"urlsCart\":\"https://cardsandpockets.com/cart.php\",\"urlsCheckout\":\"https://cardsandpockets.com/checkout\",\"salePriceLabel\":\"Now:\",\"nonSalePriceLabel\":\"Was:\",\"retailPriceLabel\":\"MSRP:\",\"priceLabel\":\"\",\"themeSettings\":{\"home_section_1_item_type\":\"categories\",\"optimizedCheckout-contentSecondary-font\":\"Google_Karla_400\",\"optimizedCheckout-buttonSecondary-color\":\"#4f4f4f\",\"color_headings\":\"#889EA9\",\"store_copyright\":true,\"paymentbuttons-paypal-size\":\"small\",\"sale-price-label\":\"Now:\",\"additional_link_label_4\":\"Samples\",\"style_apple_pay_button\":\"white-border\",\"home_section_3_item_type\":\"featured\",\"default_image\":\"/assets/img/no-image.svg\",\"optimizedCheckout-buttonPrimary-colorHover\":\"#ffffff\",\"optimizedCheckout-logo-position\":\"left\",\"optimizedCheckout-discountBanner-backgroundColor\":\"#f5f5f5\",\"home_section_2_style\":\"carousel\",\"additional_link_url_2\":\"/brands/\",\"additional_link_label_1\":\"Product Tour\",\"optimizedCheckout-headingPrimary-font\":\"Google_Montserrat_400\",\"optimizedCheckout-formField-backgroundColor\":\"white\",\"paymentbuttons-paypal-label\":\"checkout\",\"paymentbuttons-paypal-shape\":\"pill\",\"optimizedCheckout-discountBanner-textColor\":\"#333333\",\"optimizedCheckout-backgroundImage-size\":\"1000x400\",\"optimizedCheckout-buttonPrimary-font\":\"Google_Karla_400\",\"header_logo_alignment\":\"left\",\"payment_apple_pay\":true,\"color_highlight\":\"#DAE3E7\",\"product_grid_image_cropping\":\"image-cover\",\"paymentbuttons-paypal-layout\":\"horizontal\",\"price_range_display\":\"both\",\"lazyload_mode\":\"lazyload+lqip\",\"footer_section_4\":\"disable\",\"optimizedCheckout-link-font\":\"Google_Karla_400\",\"payment_visa\":true,\"home_show_blog\":true,\"_images\":{\"amp-product-image\":{\"width\":500,\"height\":500},\"core-product-picklist\":{\"width\":100,\"height\":100},\"thumb\":{\"width\":200,\"height\":200},\"featured\":{\"width\":1280,\"height\":1280},\"product-list\":{\"width\":500,\"height\":500},\"account-product-thumbnail\":{\"width\":600,\"height\":600},\"banner\":{\"width\":2048,\"height\":2048},\"core-swatch\":{\"width\":400,\"height\":400},\"large\":{\"width\":1024,\"height\":1024},\"account-logo\":{\"width\":250,\"height\":100}},\"optimizedCheckout-step-textColor\":\"#ffffff\",\"optimizedCheckout-formField-borderColor\":\"#989898\",\"optimizedCheckout-link-color\":\"#4496f6\",\"optimizedCheckout-headingSecondary-font\":\"Google_Montserrat_400\",\"product_catalog_limit\":30,\"additional_link_url_5\":\"/customer-service/\",\"product_catalog_banner_image_ratio\":\"ratio-10-4\",\"optimizedCheckout-headingSecondary-color\":\"#2d2d2d\",\"home_section_3_style\":\"grid\",\"optimizedCheckout-logo-size\":\"250x100\",\"footer_section_1\":\"newsletter\",\"show_stock_levels\":true,\"paymentbuttons-paypal-color\":\"gold\",\"optimizedCheckout-body-backgroundColor\":\"#ffffff\",\"home_section_2_limit\":0,\"paymentbuttons-paypal-tagline\":true,\"additional_link_label_3\":\"About Us\",\"optimizedCheckout-discountBanner-iconColor\":\"#333333\",\"carousel_style\":\"light\",\"default_image_gift_certificate\":\"/assets/img/giftcertificate-image.svg\",\"optimizedCheckout-buttonSecondary-borderColor\":\"#dfdfdf\",\"color_error\":\"#D98C78\",\"additional_link_url_1\":\"/info/product-info/product-tour/\",\"home_section_1_style\":\"grid-featured\",\"payment_paypal\":true,\"optimizedCheckout-orderSummary-backgroundColor\":\"#ffffff\",\"show_sitemap\":false,\"additional_link_url_6\":\"/giftcertificates.php\",\"optimizedCheckout-show-logo\":\"none\",\"price-label\":\"\",\"optimizedCheckout-step-backgroundColor\":\"#4f4f4f\",\"home_section_1_limit\":0,\"optimizedCheckout-headingPrimary-color\":\"#2d2d2d\",\"shop_by_price\":true,\"optimizedCheckout-contentPrimary-color\":\"#4f4f4f\",\"optimizedCheckout-buttonSecondary-font\":\"Google_Karla_400\",\"optimizedCheckout-backgroundImage\":\"\",\"additional_link_label_2\":\"Color Chart\",\"home_section_3_limit\":0,\"optimizedCheckout-header-backgroundColor\":\"#f7f7f7\",\"color_background\":\"#FFFFFF\",\"sidebar_link_list\":\"social\",\"paymentbuttons-paypal-fundingicons\":false,\"color_info\":\"#4F4F4F\",\"carousel_aspect_ratio\":\"ratio-any\",\"optimizedCheckout-buttonPrimary-color\":\"#ffffff\",\"footer_section_2\":\"pages\",\"sale-badges\":true,\"product_description_excerpt_length\":\"280\",\"color_text\":\"#5A5A5A\",\"optimizedCheckout-logo\":\"\",\"color_secondary\":\"#D2ADA9\",\"payment_mastercard\":true,\"payment_american_express\":true,\"home_section_4_style\":\"carousel\",\"optimizedCheckout-buttonPrimary-borderColorHover\":\"#666666\",\"primary-font\":\"Google_Playfair+Display_400,700\",\"show_product_quantity_box\":true,\"shop_by_brand\":true,\"product_grid_image_ratio\":\"ratio-3-4\",\"color_primary\":\"#889EA9\",\"color_success\":\"#A8B8B1\",\"theme_credits\":false,\"additional_link_url_4\":\"/info/samples/\",\"optimizedCheckout-buttonSecondary-backgroundColor\":\"#ffffff\",\"product_catalog_quickshop\":false,\"show_product_count\":true,\"home_section_4_limit\":0,\"optimizedCheckout-buttonPrimary-backgroundColor\":\"#454545\",\"color_borders\":\"#cccccc\",\"footer_style\":\"light\",\"product_catalog_infinite_scroll\":false,\"optimizedCheckout-contentPrimary-font\":\"Google_Karla_400\",\"supported_card_type_icons\":[\"american_express\",\"diners_club\",\"discover\",\"mastercard\",\"visa\"],\"related-products\":\"4\",\"payment_discover\":true,\"non-sale-price-label\":\"Was:\",\"hide_info\":false,\"product_catalog_parallax\":false,\"optimizedCheckout-contentSecondary-color\":\"#989898\",\"retail-price-label\":\"MSRP:\",\"additional_link_url_3\":\"/about-us/\",\"additional_link_label_6\":\"Gift Certificates\",\"optimizedCheckout-buttonPrimary-borderColor\":\"#454545\",\"product_grid_as_low_as_pricing\":false,\"secondary-font\":\"Google_Lato_400,700\",\"additional_link_label_5\":\"Customer Service\",\"optimizedCheckout-show-backgroundImage\":false,\"home_section_4_item_type\":\"top-sellers\",\"home_section_2_item_type\":\"new\",\"optimizedCheckout-buttonPrimary-backgroundColorHover\":\"#666666\",\"footer_section_3\":\"address\",\"blog_aspect_ratio\":\"ratio-16-9\"},\"homeUrl\":\"https://cardsandpockets.com/\",\"brandsUrl\":\"https://cardsandpockets.com/brands/\",\"zoomClose\":\"Close (Esc)\",\"zoomShare\":\"Share\",\"zoomFullscreen\":\"Toggle fullscreen\",\"zoomAction\":\"Zoom in/out\",\"zoomPrevious\":\"Previous (arrow left)\",\"zoomNext\":\"Next (arrow right)\",\"couponCodeEmptyInput\":\"Please enter your coupon code.\",\"giftCertificateInputEmpty\":\"Please enter your valid certificate code.\"}").load();