For Printing Badges And Adding Custom Information.
If there are armbands that need to be printed, you can send pictures to customer service for customization.
${data.discount_code}
${function(){
switch(data.status || data) {
case 'COUPON_RECEIVE_INSUFFICIENT_POINTS_ERROR': return `
Insufficient
`;
case 'BIRTHDAY_NOT_COME': return `
Your birthday time has not yet come
`;
case 'SHOW_LOGIN_TIP':
case 'UNAUTHORIZED':
return `You have not yet joined as a member or logged into your account`;
case 'COUPON_RECEIVE_NOT_IN_TIME_ERROR':
case 'COUPON_NOT_FOUND_ERROR':
case 'CAMPAIGN_NOT_FOUND_ERROR': return `Points benefit does not exist. Please refresh the page`;
case 'COUPON_RECEIVE_NOT_ELIGIBLE_ERROR':
case 'COUPON_RECEIVE_UPPER_LIMIT_ERROR':
case 'COUPON_RECEIVE_FAILED_ERROR': return `redemption failed. Please refresh the page and try again.`;
case 'COUPON_RECEIVE_NO_STOCK_ERROR': return `The coupon has been redeemed!`;
case 'LOYALTY_SERVER_UNAUTHORIZED': return `Please log in to your account!`;
case 'LOYALTY_SERVER_CUSTOMER_NOT_FOUND_ERROR': return `User error detected. Please refresh the page and try again~`;
case 'INVALID_PHONE_NUMBER_ERROR': return `Please enter a valid phone`;
case 'BENEFIT_UNSUBSCRIBE_FAILED_ERROR': return `Network error. Please try again!`;
case 'INVITE_REFERRAL_COPY_TIP': return `Link copied`;
case 'CAMPAIGN_ALREADY_RECEIVED_ERROR': return `Received the activity`;
case 'CAMPAIGN_IS_EXPIRE_ERROR': return `Event has expired`;
case 'MEMBER_BIRTHDAY_ALREADY_EXIST_ERROR': return `Your birthday has already been set and cannot be changed.`;
case 'REDEEM_SUCCESS_AND_COPY_CODE': return `Redeemed & code copied`;
case 'CLAIM_SUCCESS': return `Claimed successfully`;
case 'JOIN_SUCCESS': return `Congratulations! You have successfully joined the membership!`;
case 'COPY_SUCCESS': return `Copied successfully`;
case 'BENEFIT_NOT_FOUND_ERROR': return `This benefit does not exist. Please refresh the page and try again.`;
case 'WHEEL_SPIN_ERROR': return `Something went wrong. Please try again.`;
case 'WHEEL_CAMPAIGN_ENDED': return `This campaign has ended.`;
case 'WHEEL_CAMPAIGN_PARTICIPATING': return `Your entry is being processed. Please try again in a moment.`;
case 'WHEEL_CAMPAIGN_PARTICIPATED': return `You've already participated in this campaign. Please refresh the page and try again.`;
case 'WHEEL_CAMPAIGN_QUOTA_EXCEEDED': return `You've used all your spins for now. Check back later.`;
case 'WHEEL_CAMPAIGN_CONFIG_STALE': return `This campaign has been updated. Please spin again.`;
case 'UPGRADE_BENEFIT_HAD_NO_CODE': return `Does not meet the upgrade benefit distribution rules`;
default: return `The network is abnormal or the system is busy, please refresh the page and try again~`;
}
}()}
${function() {
const variantData = data.variant || {"id":"72559176-c274-4a52-9625-e90ff4d73f08","product_id":"0d7a655e-aae7-4c4a-ae12-8e455f11a630","title":"Add name and number","weight_unit":"kg","inventory_quantity":0,"sku":"\u6dfb\u52a0\u59d3\u540d\u548c\u53f7\u7801","barcode":"","position":1,"option1":"Add name and number","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/343cd957769238c973519b2407f1496e.png","path":"343cd957769238c973519b2407f1496e.png","width":251,"height":186,"alt":"","aspect_ratio":1.3494623655913978},"wholesale_price":[{"price":0,"min_quantity":1}],"weight":"0","compare_at_price":"8","price":"0","retail_price":"8","available":true,"url":"\/products\/for-printing-badges-and-adding-custom-information-03sk?variant=72559176-c274-4a52-9625-e90ff4d73f08","available_quantity":999999999,"options":[{"name":"Badges and custom information","value":"Add name and number"}],"off_ratio":"100","flashsale_info":{"variant_id":"72559176-c274-4a52-9625-e90ff4d73f08","product_id":"","quantity":0,"discount_id":"","limit_time":0,"limit_buy":0,"user_limit_buy":0,"discount_sales":0,"discount_sales_rate":"","discount_stock":0,"ends_at":0,"starts_at":0,"allow_oversold":"","allocation_method":"","price":"0","compare_at_price":"","discount_price":"0","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"100","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":132};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function() {
const minInventory = parseInt('5');
const maxInventory = parseInt('20');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + '');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
people are viewing this right now
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.