<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:media="http://search.yahoo.com/mrss/"
	
	>

<channel>
	<title>Morgan Saint</title>
	<link>https://morgansaint.com</link>
	<description>Morgan Saint</description>
	<pubDate>Mon, 14 Aug 2023 16:22:18 +0000</pubDate>
	<generator>https://morgansaint.com</generator>
	<language>en</language>
	
		
	<item>
		<title>Front page</title>
				
		<link>https://morgansaint.com/Front-page</link>

		<pubDate>Thu, 06 Jul 2023 00:12:41 +0000</pubDate>

		<dc:creator>Morgan Saint</dc:creator>

		<guid isPermaLink="true">https://morgansaint.com/Front-page</guid>

		<description>&#60;img width="3923" height="1730" width_o="3923" height_o="1730" data-src="https://freight.cargo.site/t/original/i/e5deacce5be7ca66d8648943b9c37574f192562c0997f6ab0fd01159ef2e13f3/morgan-new-logo-white.png" data-mid="222058418" border="0" data-scale="65" src="https://freight.cargo.site/w/1000/i/e5deacce5be7ca66d8648943b9c37574f192562c0997f6ab0fd01159ef2e13f3/morgan-new-logo-white.png" /&#62;</description>
		
	</item>
		
		
	<item>
		<title>Store</title>
				
		<link>https://morgansaint.com/Store</link>

		<pubDate>Mon, 14 Aug 2023 16:22:18 +0000</pubDate>

		<dc:creator>Morgan Saint</dc:creator>

		<guid isPermaLink="true">https://morgansaint.com/Store</guid>

		<description>
	
	
	
	
	
	





(function () {
  var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';

  // Check if the Shopify Buy Button SDK is loaded, otherwise load it
  if (window.ShopifyBuy) {
    if (window.ShopifyBuy.UI) {
      ShopifyBuyInit();
    } else {
      loadScript();
    }
  } else {
    loadScript();
  }

  function loadScript() {
    var script = document.createElement('script');
    script.async = true;
    script.src = scriptURL;
    (document.getElementsByTagName('head')[0] &#124;&#124; document.getElementsByTagName('body')[0]).appendChild(script);
    script.onload = ShopifyBuyInit;
  }

  function ShopifyBuyInit() {
    // Build Shopify Client
    var client = ShopifyBuy.buildClient({
      domain: '2c0925-56.myshopify.com',
      storefrontAccessToken: '9fd4cf6a0776132f1dd3deaee5298812',
    });

    // Initialize Shopify Buy Button UI
    ShopifyBuy.UI.onReady(client).then(function (ui) {
      // Define common options for product buttons
      var commonOptions = {
        moneyFormat: '%24%7B%7Bamount%7D%7D',
        options: {
          product: {
            layout: "horizontal",
            buttonDestination: "cart", // Ensure same cart for all products
            contents: {
              imgWithCarousel: true, // Enable image carousel for higher quality images
              description: true
            },
            text: { button: "Add to Cart" },
            styles: {
              product: { "text-align": "left" },
              button: {
                "background-color": "#7e7171",
                ":hover": { "background-color": "#716666" },
                ":focus": { "background-color": "#716666" },
                "border-radius": "0px"
              }
            }
          },
          cart: {
            startOpen: false,
            styles: {
              button: {
                "background-color": "#7e7171",
                ":hover": { "background-color": "#716666" },
                ":focus": { "background-color": "#716666" }
              }
            },
            text: {
              title: "Your Cart",
              total: "Subtotal",
              button: "Checkout"
            }
          },
          toggle: {
            styles: {
              toggle: {
                "background-color": "#7e7171",
                ":hover": { "background-color": "#716666" },
                ":focus": { "background-color": "#716666" }
              }
            }
          }
        }
      };

      // Create first product button
      ui.createComponent('product', {
        id: '9967732326714', // Product ID 1
        node: document.getElementById('product-component-1754333645184'),
        options: {
          ...commonOptions.options,
          product: {
            ...commonOptions.options.product,
            contents: {
              ...commonOptions.options.product.contents,
              imgWithCarousel: true, // Carousel for better quality
              img: false, // Ensure the single image doesn't show outside of the carousel
            },
            image: {
              maxWidth: '1000px', // Request a larger image (1000px width)
              src: function(image) {
                // Force higher resolution images for the product
                return image.src.replace('400x400', '1000x1000'); // Change '400x400' to '1000x1000'
              }
            }
          }
        }
      });

      // Create second product button
      ui.createComponent('product', {
        id: '9967742189882', // Product ID 2
        node: document.getElementById('product-component-1754333690701'),
        options: {
          ...commonOptions.options,
          product: {
            ...commonOptions.options.product,
            contents: {
              ...commonOptions.options.product.contents,
              imgWithCarousel: true, // Carousel for better quality
              img: false, // Ensure the single image doesn't show outside of the carousel
            },
            image: {
              maxWidth: '1000px', // Request a larger image (1000px width)
              src: function(image) {
                // Force higher resolution images for the product
                return image.src.replace('400x400', '1000x1000'); // Change '400x400' to '1000x1000'
              }
            }
          }
        }
      });
    });
  }
})();
</description>
		
	</item>
		
	</channel>
</rss>