$w.onReady(function () { if (!session.getItem("verified")) { $w("#agePopup").show(); } }); export function yesButton_click(event) { session.setItem("verified", "true"); $w("#agePopup").hide(); } export function noButton_click(event) { wixLocation.to("https://google.com"); } $w.onReady(function () { showAll(); }); function showAll() { $w("#lonsdaleSection").show(); $w("#toroSection").show(); $w("#fivePackSection").show(); $w("#boxesSection").show(); } export function btnAll_click(event) { showAll(); } export function btnLonsdale_click(event) { $w("#lonsdaleSection").show(); $w("#toroSection").hide(); $w("#fivePackSection").hide(); $w("#boxesSection").hide(); } export function btnToro_click(event) { $w("#lonsdaleSection").hide(); $w("#toroSection").show(); $w("#fivePackSection").hide(); $w("#boxesSection").hide(); } export function btn5Pack_click(event) { $w("#lonsdaleSection").hide(); $w("#toroSection").hide(); $w("#fivePackSection").show(); $w("#boxesSection").hide(); } export function btnBoxes_click(event) { $w("#lonsdaleSection").hide(); $w("#toroSection").hide(); $w("#fivePackSection").hide(); $w("#boxesSection").show(); } $w.onReady(function () { showAll(); }); function showAll() { $w("#lonsdaleSection").show(); $w("#toroSection").show(); $w("#fivePackSection").show(); $w("#boxesSection").show(); } export function btnAll_click(event) { showAll(); } export function btnLonsdale_click(event) { $w("#lonsdaleSection").show(); $w("#toroSection").hide(); $w("#fivePackSection").hide(); $w("#boxesSection").hide(); } export function btnToro_click(event) { $w("#lonsdaleSection").hide(); $w("#toroSection").show(); $w("#fivePackSection").hide(); $w("#boxesSection").hide(); } export function btn5Pack_click(event) { $w("#lonsdaleSection").hide(); $w("#toroSection").hide(); $w("#fivePackSection").show(); $w("#boxesSection").hide(); } export function btnBoxes_click(event) { $w("#lonsdaleSection").hide(); $w("#toroSection").hide(); $w("#fivePackSection").hide(); $w("#boxesSection").show(); } import wixWindow from 'wix-window'; import wixLocation from 'wix-location'; import { session } from 'wix-storage'; $w.onReady(function () { // nothing needed here }); export function btnYes_click(event) { session.setItem("verified", "true"); wixWindow.close(); } export function btnNo_click(event) { wixLocation.to("https://google.com"); } export function vanillaExpand_click(event) { toggleSection("#vanillaDesc"); } export function cognacExpand_click(event) { toggleSection("#cognacDesc"); } export function berryExpand_click(event) { toggleSection("#berryDesc"); } export function chocolateExpand_click(event) { toggleSection("#chocolateDesc"); } function toggleSection(sectionId) { if ($w(sectionId).collapsed) { $w(sectionId).expand(); } else { $w(sectionId).collapse(); } } import wixData from 'wix-data'; $w.onReady(function () { // Load all flavors by default when page is ready showAll(); }); function showAll() { $w("#flavorsDataset").setFilter( wixData.filter() .eq("isActive", true) ); } // ALL export function btnAll_click(event) { showAll(); } // LONSDALE ONLY export function btnLonsdale_click(event) { $w("#flavorsDataset").setFilter( wixData.filter() .eq("isActive", true) .eq("size", "Lonsdale") ); } // TORO ONLY export function btnToro_click(event) { $w("#flavorsDataset").setFilter( wixData.filter() .eq("isActive", true) .eq("size", "Toro") ); } // 5-PACKS ONLY export function btn5Pack_click(event) { $w("#flavorsDataset").setFilter( wixData.filter() .eq("isActive", true) .eq("packType", "5-Pack") ); } // BOXES ONLY export function btnBoxes_click(event) { $w("#flavorsDataset").setFilter( wixData.filter() .eq("isActive", true) .eq("packType", "Box") ); } import wixData from 'wix-data'; import wixLocation from 'wix-location'; import { triggeredEmail } from 'wix-crm'; $w.onReady(function () { // Collapse success message on page load $w("#orderSuccessBox").collapse(); }); // SUBMIT BUTTON ACTION export function btnSubmitOrder_click(event) { // Validate required fields if (!$w("#inputBusinessName").value || !$w("#inputContactName").value || !$w("#inputEmail").value || !$w("#dropdownFlavor").value || !$w("#dropdownPackType").value || !$w("#inputQuantity").value) { $w("#orderSuccessBox").expand(); $w("#orderSuccessBox").text = "Please fill out all required fields."; return; } // Build order object const orderData = { businessName: $w("#inputBusinessName").value, contactName: $w("#inputContactName").value, email: $w("#inputEmail").value, phone: $w("#inputPhone").value, flavor: $w("#dropdownFlavor").value, size: $w("#dropdownSize").value, packType: $w("#dropdownPackType").value, quantity: Number($w("#inputQuantity").value), notes: $w("#inputNotes").value, timestamp: new Date() }; // Save to database wixData.insert("WholesaleOrders", orderData) .then(() => { // Send notification email triggeredEmail.emailContact("wholesaleOrderEmail", { businessName: orderData.businessName, contactName: orderData.contactName, email: orderData.email, phone: orderData.phone, flavor: orderData.flavor, size: orderData.size, packType: orderData.packType, quantity: orderData.quantity, notes: orderData.notes }); // Show success message $w("#orderSuccessBox").text = "Your wholesale order was submitted successfully. We'll contact you shortly."; $w("#orderSuccessBox").expand(); // Reset form fields resetForm(); }) .catch((err) => { console.log(err); $w("#orderSuccessBox").text = "Something went wrong. Please try again."; $w("#orderSuccessBox").expand(); }); } // Reset form fields after submission function resetForm() { $w("#inputBusinessName").value = ""; $w("#inputContactName").value = ""; $w("#inputEmail").value = ""; $w("#inputPhone").value = ""; $w("#dropdownFlavor").value = undefined; $w("#dropdownSize").value = undefined; $w("#dropdownPackType").value = undefined; $w("#inputQuantity").value = ""; $w("#inputNotes").value = ""; }
top of page

Terms & Conditions

A legal disclaimer

The explanations and information provided on this page are only general and high-level explanations and information on how to write your own document of Terms & Conditions. You should not rely on this article as legal advice or as recommendations regarding what you should actually do, because we cannot know in advance what are the specific terms you wish to establish between your business and your customers and visitors. We recommend that you seek legal advice to help you understand and to assist you in the creation of your own Terms & Conditions.

Terms & Conditions - the basics

Having said that, Terms and Conditions (“T&C”) are a set of legally binding terms defined by you, as the owner of this website. The T&C set forth the legal boundaries governing the activities of the website visitors, or your customers, while they visit or engage with this website. The T&C are meant to establish the legal relationship between the site visitors and you as the website owner. 

 

T&C should be defined according to the specific needs and nature of each website. For example, a website offering products to customers in e-commerce transactions requires T&C that are different from the T&C of a website only providing information (like a blog, a landing page, and so on).     

 

T&C provide you as the website owner the ability to protect yourself from potential legal exposure, but this may differ from jurisdiction to jurisdiction, so make sure to receive local legal advice if you are trying to protect yourself from legal exposure.

What to include in the T&C document

Generally speaking, T&C often address these types of issues: Who is allowed to use the website; the possible payment methods; a declaration that the website owner may change his or her offering in the future; the types of warranties the website owner gives his or her customers; a reference to issues of intellectual property or copyrights, where relevant; the website owner’s right to suspend or cancel a member’s account; and much, much more. 

 

To learn more about this, check out our article “Creating a Terms and Conditions Policy”.

bottom of page
export function sortDropdown_change(event) { const value = $w("#sortDropdown").value; if (value === "priceAsc") { $w("#flavorsDataset").setSort( wixData.sort() .ascending("wholesalePrice") ); } else if (value === "priceDesc") { $w("#flavorsDataset").setSort( wixData.sort() .descending("wholesalePrice") ); } else if (value === "nameAsc") { $w("#flavorsDataset").setSort( wixData.sort() .ascending("title") ); } else { // Default $w("#flavorsDataset").setSort( wixData.sort() .ascending("_createdDate") ); } } import wixLocation from 'wix-location'; export function btnDownloadMenu_click(event) { const pdfUrl = "YOUR_PDF_URL_HERE"; // paste your Wix static PDF URL here wixLocation.to(pdfUrl); }