document.addEventListener('DOMContentLoaded', function () {
var submitButton = document.querySelector('.submit-for-review-btn'); // Adjust this selector as necessary
if (submitButton) {
submitButton.addEventListener('click', function (e) {
console.log('Submit button clicked'); // Check if button click is detected
var cartTotal = 0.00; // Total in dollars
console.log('Cart Total:', cartTotal); // Log the cart total for debugging
var minimumValue = 1000; // Minimum value in dollars ($1000)
if (parseFloat(cartTotal) < minimumValue) { // Ensure to parse as float for comparison
e.preventDefault(); // Prevent form submission
alert('Your order must be at least $1000 to submit for review.'); // Alert message
} else {
console.log('Order submitted successfully'); // Log successful submission
}
});
}
});
×
Please wait...
Make An Offer
Botox 50u KR
Botox 50u KR
SKU: 42885572100303
$178.00
×
Offerly Support
Don't fret! This pop up only shows up in Shopify Editor Mode. Offerly could not find your add to cart button! This can happen for one of the following reasons:
1.
This product is sold out.To solve this please navigate to a different product!
2.
Your Theme is custom or uses different text for the "Add to Cart" button.If this is the case, please contact support and we will add support for your theme!