${viewCount} People are viewing this product right now!
✔ verified by SaumayVeda
`;
// Determine where to put the new element
var $form = document.querySelector('product-form');
var $pickupOptions = document.querySelector('pickup-availability');
if ($pickupOptions) {
// Insert our view count element before the pickup options
$pickupOptions.parentElement.insertBefore($viewCountElement, $pickupOptions);
} else if ($form) {
// If no pickup options, place it at the end of the product form
$form.appendChild($viewCountElement);
}
});