import wixData from 'wix-data'; import wixLocation from 'wix-location'; $w.onReady(function () { // Lấy slug từ URL let slug = wixLocation.path[0]; // Path đầu tiên trong URL // Truy vấn cơ sở dữ liệu để tìm slug wixData.query("RedirectLinks") .eq("slug", slug) .find() .then((results) => { if (results.items.length > 0) { let linkData = results.items[0]; // Kiểm tra nếu liên kết được kích hoạt if (linkData.isActivate) { // Tăng số lần nhấp chuột wixData.update("RedirectLinks", { "_id": linkData._id, "clickCount": linkData.clickCount + 1 }).then(() => { // Chuyển hướng đến URL đích wixLocation.to(linkData.targetUrl); }).catch((err) => { console.error('Lỗi khi cập nhật click count:', err); }); } else { // Nếu link không kích hoạt, thông báo cho người dùng alert("Liên kết này hiện không hoạt động."); wixLocation.to("/error"); } } else { console.log("Không tìm thấy slug trong cơ sở dữ liệu."); wixLocation.to("/error"); } }).catch((err) => { console.error("Lỗi khi truy vấn cơ sở dữ liệu:", err); }); });
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