Buy me a coffee

#soldout

<script>
window.addEventListener('load', function() {
  const soldOutButtons = document.querySelectorAll('body.view-item .sold-out .sqs-add-to-cart-button-wrapper');
  
  soldOutButtons.forEach(function(button) {
    const galleryLink = document.createElement('a'); 
    galleryLink.href = 'https://squarespace.com/about';
    galleryLink.className = 'custom-link';
    galleryLink.textContent = 'View my gallery';
    
    button.insertAdjacentElement('afterend', galleryLink);
  });
});
</script>
<style>
.custom-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.custom-link:hover {
  background: rgba(0,0,0,0.1);
}
.sold-out .sqs-add-to-cart-button-wrapper {
    display: none !important;
}
</style>