{"id":3613,"date":"2021-03-24T23:15:12","date_gmt":"2021-03-24T23:15:12","guid":{"rendered":"https:\/\/melanievote.com\/?p=3613"},"modified":"2021-03-24T23:15:12","modified_gmt":"2021-03-24T23:15:12","slug":"the-washhouse-catalog","status":"publish","type":"post","link":"https:\/\/melanievote.com\/index.php\/2021\/03\/24\/the-washhouse-catalog\/","title":{"rendered":"The Washhouse Catalog"},"content":{"rendered":"\n<div class=\"wp-block-media-text alignwide is-stacked-on-mobile\" style=\"grid-template-columns:43% auto\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/melanievote.com\/wp-content\/uploads\/2021\/03\/Washhouse-Catalog-Release-1024x768.jpg\" alt=\"\" class=\"wp-image-3614 size-full\" srcset=\"https:\/\/melanievote.com\/wp-content\/uploads\/2021\/03\/Washhouse-Catalog-Release-1024x768.jpg 1024w, https:\/\/melanievote.com\/wp-content\/uploads\/2021\/03\/Washhouse-Catalog-Release-300x225.jpg 300w, https:\/\/melanievote.com\/wp-content\/uploads\/2021\/03\/Washhouse-Catalog-Release-768x576.jpg 768w, https:\/\/melanievote.com\/wp-content\/uploads\/2021\/03\/Washhouse-Catalog-Release-1536x1152.jpg 1536w, https:\/\/melanievote.com\/wp-content\/uploads\/2021\/03\/Washhouse-Catalog-Release-2048x1536.jpg 2048w, https:\/\/melanievote.com\/wp-content\/uploads\/2021\/03\/Washhouse-Catalog-Release-1200x900.jpg 1200w, https:\/\/melanievote.com\/wp-content\/uploads\/2021\/03\/Washhouse-Catalog-Release-1860x1395.jpg 1860w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size wp-block-paragraph\">A fully illustrated 44 page catalog with contributions by authors, Kelly Madigan and David Cohen, and photos by Bill Massey. &nbsp;<\/p>\n\n\n\n<div id=\"smart-button-container\">\n      <div style=\"text-align: center;\">\n        <div style=\"margin-bottom: 1.25rem;\">\n          <p>The Washhouse, Catalog<\/p>\n          <select id=\"item-options\"><option value=\"Pick Up at Gallery\" price=\"15.00\">Pick Up at Gallery &#8211; 15.00 USD<\/option><option value=\"Mailed \" price=\"18.33\">Mailed  &#8211; 18.33 USD<\/option><\/select>\n          <select style=\"visibility: hidden\" id=\"quantitySelect\"><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><option value=\"7\">7<\/option><option value=\"8\">8<\/option><option value=\"9\">9<\/option><option value=\"10\">10<\/option><\/select>\n        <\/div>\n      <div id=\"paypal-button-container\"><\/div>\n      <\/div>\n    <\/div>\n    <script src=\"https:\/\/www.paypal.com\/sdk\/js?client-id=sb&amp;currency=USD\" data-sdk-integration-source=\"button-factory\"><\/script>\n    <script>\n      function initPayPalButton() {\n        var shipping = 2.00;\n        var itemOptions = document.querySelector(\"#smart-button-container #item-options\");\n    var quantity = parseInt(10);\n    var quantitySelect = document.querySelector(\"#smart-button-container #quantitySelect\");\n    if (!isNaN(quantity)) {\n      quantitySelect.style.visibility = \"visible\";\n    }\n    var orderDescription = 'The Washhouse, Catalog';\n    if(orderDescription === '') {\n      orderDescription = 'Item';\n    }\n    paypal.Buttons({\n      style: {\n        shape: 'pill',\n        color: 'white',\n        layout: 'vertical',\n        label: 'paypal',\n        \n      },\n      createOrder: function(data, actions) {\n        var selectedItemDescription = itemOptions.options[itemOptions.selectedIndex].value;\n        var selectedItemPrice = parseFloat(itemOptions.options[itemOptions.selectedIndex].getAttribute(\"price\"));\n        var tax = (8.875 === 0) ? 0 : (selectedItemPrice * (parseFloat(8.875)\/100));\n        if(quantitySelect.options.length > 0) {\n          quantity = parseInt(quantitySelect.options[quantitySelect.selectedIndex].value);\n        } else {\n          quantity = 1;\n        }\n\n        tax *= quantity;\n        tax = Math.round(tax * 100) \/ 100;\n        var priceTotal = quantity * selectedItemPrice + parseFloat(shipping) + tax;\n        priceTotal = Math.round(priceTotal * 100) \/ 100;\n        var itemTotalValue = Math.round((selectedItemPrice * quantity) * 100) \/ 100;\n\n        return actions.order.create({\n          purchase_units: [{\n            description: orderDescription,\n            amount: {\n              currency_code: 'USD',\n              value: priceTotal,\n              breakdown: {\n                item_total: {\n                  currency_code: 'USD',\n                  value: itemTotalValue,\n                },\n                shipping: {\n                  currency_code: 'USD',\n                  value: shipping,\n                },\n                tax_total: {\n                  currency_code: 'USD',\n                  value: tax,\n                }\n              }\n            },\n            items: [{\n              name: selectedItemDescription,\n              unit_amount: {\n                currency_code: 'USD',\n                value: selectedItemPrice,\n              },\n              quantity: quantity\n            }]\n          }]\n        });\n      },\n      onApprove: function(data, actions) {\n        return actions.order.capture().then(function(details) {\n          alert('Transaction completed by ' + details.payer.name.given_name + '!');\n        });\n      },\n      onError: function(err) {\n        console.log(err);\n      },\n    }).render('#paypal-button-container');\n  }\n  initPayPalButton();\n    <\/script>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A fully illustrated 44 page catalog with contributions by authors, Kelly Madigan and David Cohen, and photos by Bill Massey. &nbsp; The Washhouse, Catalog Pick Up at Gallery &#8211; 15.00 USDMailed &#8211; 18.33 USD 12345678910<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-3613","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/melanievote.com\/index.php\/wp-json\/wp\/v2\/posts\/3613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/melanievote.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/melanievote.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/melanievote.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/melanievote.com\/index.php\/wp-json\/wp\/v2\/comments?post=3613"}],"version-history":[{"count":3,"href":"https:\/\/melanievote.com\/index.php\/wp-json\/wp\/v2\/posts\/3613\/revisions"}],"predecessor-version":[{"id":3632,"href":"https:\/\/melanievote.com\/index.php\/wp-json\/wp\/v2\/posts\/3613\/revisions\/3632"}],"wp:attachment":[{"href":"https:\/\/melanievote.com\/index.php\/wp-json\/wp\/v2\/media?parent=3613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/melanievote.com\/index.php\/wp-json\/wp\/v2\/categories?post=3613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/melanievote.com\/index.php\/wp-json\/wp\/v2\/tags?post=3613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}