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

Refund Policy

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 a Refund Policy. 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 refund policies that you wish to establish between your business and your customers. We recommend that you seek legal advice to help you understand and to assist you in the creation of your own Refund Policy.

REFUND POLICY - THE BASICS 

Having said that, a Refund Policy is a legally binding document that is meant to establish the legal relations between you and your customers regarding how and if you will provide them with a refund. Online businesses selling products are sometimes required (depending on local laws and regulations) to present their product return policy and refund policy. In some jurisdictions, this is needed in order to comply with consumer protection laws. It may also help you avoid legal claims from customers that are not satisfied with the products they purchased.

WHAT TO INCLUDE IN THE REFUND POLICY

Generally speaking, a Refund Policy often addresses these types of issues: the timeframe for asking for a refund; will the refund be full or partial; under which conditions will the customer receive a refund; and much much more.

bottom of page