Kostenloser Standartversand (ab 59€)
Kaufen Sie 1, erhalten Sie 50% Rabatt für andere Rahmen
${
function(){
const id = "447946825199007735";
const coupons_data = data[0].data;
if(coupons_data.length > 0 ) {
let current_coupon = coupons_data[0];
let has_current_coupon = false;
for(let i =0 ;i < coupons_data.length;i++) {
if(coupons_data[i].id == id){
has_current_coupon = true;
current_coupon = coupons_data[i];
let custom_coupon_value = current_coupon.value;
const custom_coupon_value_type = current_coupon.value_type;
const title = current_coupon.title;
const starts_at = new Date(current_coupon.starts_at * 1000);
const ends_at = current_coupon.ends_at;
const ends_at_str = new Date(current_coupon.ends_at * 1000);
const only_valid_first_order_customer = current_coupon.only_valid_first_order_customer;
const show_new_customer_exclusive_tag = true;
const life_cycle_type = current_coupon.life_cycle_type;
const survival_time = current_coupon.survival_time / 86400;
const prerequisite = current_coupon.prerequisite;
const coupon_custom_link = "\/";
const once_per_customer =current_coupon.once_per_customer;
const usage_limit =current_coupon.usage_limit;
const stock =current_coupon.stock;
const progress =current_coupon.progress;
const prerequisite_subtotal_range =current_coupon.prerequisite_subtotal_range;
let greater_than_or_equal_to = 0;
const prerequisite_quantity_range =current_coupon.prerequisite_quantity_range;
if(prerequisite == 1 && prerequisite_subtotal_range && prerequisite_subtotal_range.length > 0 ){
custom_coupon_value = prerequisite_subtotal_range[0].value;
greater_than_or_equal_to = prerequisite_subtotal_range[0].greater_than_or_equal_to;
}
if(prerequisite == 1 && prerequisite_quantity_range && prerequisite_quantity_range.length > 0 ){
custom_coupon_value = prerequisite_quantity_range[0].value;
greater_than_or_equal_to = prerequisite_quantity_range[0].greater_than_or_equal_to
}
const discount_type =current_coupon.discount_type;
if(null){
let couponLists = data[1];
let coupon_is_received = false;
let couponListKeys = Object.keys(couponLists);
for( let i = 0; i < couponListKeys.length; i++ ){
const key = couponListKeys[i];
if(id == key ){
coupon_is_received = true;
var coupon_can_get = true;
var coupon_count = couponLists[key];
if(( progress == 'finished' || (stock == 0 && usage_limit != -1) ) || (once_per_customer != 0 && once_per_customer <= coupon_count)){
coupon_can_get = false;
}
if( coupon_can_get ){
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`
}else{
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Bestellen
Nur für die erste Bestellung
`
}
}
}
if(!coupon_is_received){
var cannot_css = "";
var cannot_bg_css = "";
if(progress == 'finished' || (stock == 0 && usage_limit != -1)){
cannot_css = "VoucherCard-module_card_cannot_get";
cannot_bg_css = "VoucherCard-module_bg_cannot_get";
}
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`;
}
}else{
var VoucherCard_module_card_not_login_css = "";
if( progress == 'finished' || (stock == 0 && usage_limit != -1) ) {
VoucherCard_module_card_not_login_css = "VoucherCard-module_card_cannot_get";
}
return `
€
${custom_coupon_value}
% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`
}
return `
`
break;
}
}
if(!has_current_coupon){
return ``;
}
}else{
return ``;
}
}()
}
${
function(){
const id = "447947327156533239";
const coupons_data = data[0].data;
if(coupons_data.length > 0 ) {
let current_coupon = coupons_data[0];
let has_current_coupon = false;
for(let i =0 ;i < coupons_data.length;i++) {
if(coupons_data[i].id == id){
has_current_coupon = true;
current_coupon = coupons_data[i];
let custom_coupon_value = current_coupon.value;
const custom_coupon_value_type = current_coupon.value_type;
const title = current_coupon.title;
const starts_at = new Date(current_coupon.starts_at * 1000);
const ends_at = current_coupon.ends_at;
const ends_at_str = new Date(current_coupon.ends_at * 1000);
const only_valid_first_order_customer = current_coupon.only_valid_first_order_customer;
const show_new_customer_exclusive_tag = true;
const life_cycle_type = current_coupon.life_cycle_type;
const survival_time = current_coupon.survival_time / 86400;
const prerequisite = current_coupon.prerequisite;
const coupon_custom_link = "\/";
const once_per_customer =current_coupon.once_per_customer;
const usage_limit =current_coupon.usage_limit;
const stock =current_coupon.stock;
const progress =current_coupon.progress;
const prerequisite_subtotal_range =current_coupon.prerequisite_subtotal_range;
let greater_than_or_equal_to = 0;
const prerequisite_quantity_range =current_coupon.prerequisite_quantity_range;
if(prerequisite == 1 && prerequisite_subtotal_range && prerequisite_subtotal_range.length > 0 ){
custom_coupon_value = prerequisite_subtotal_range[0].value;
greater_than_or_equal_to = prerequisite_subtotal_range[0].greater_than_or_equal_to;
}
if(prerequisite == 1 && prerequisite_quantity_range && prerequisite_quantity_range.length > 0 ){
custom_coupon_value = prerequisite_quantity_range[0].value;
greater_than_or_equal_to = prerequisite_quantity_range[0].greater_than_or_equal_to
}
const discount_type =current_coupon.discount_type;
if(null){
let couponLists = data[1];
let coupon_is_received = false;
let couponListKeys = Object.keys(couponLists);
for( let i = 0; i < couponListKeys.length; i++ ){
const key = couponListKeys[i];
if(id == key ){
coupon_is_received = true;
var coupon_can_get = true;
var coupon_count = couponLists[key];
if(( progress == 'finished' || (stock == 0 && usage_limit != -1) ) || (once_per_customer != 0 && once_per_customer <= coupon_count)){
coupon_can_get = false;
}
if( coupon_can_get ){
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`
}else{
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Bestellen
Nur für die erste Bestellung
`
}
}
}
if(!coupon_is_received){
var cannot_css = "";
var cannot_bg_css = "";
if(progress == 'finished' || (stock == 0 && usage_limit != -1)){
cannot_css = "VoucherCard-module_card_cannot_get";
cannot_bg_css = "VoucherCard-module_bg_cannot_get";
}
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`;
}
}else{
var VoucherCard_module_card_not_login_css = "";
if( progress == 'finished' || (stock == 0 && usage_limit != -1) ) {
VoucherCard_module_card_not_login_css = "VoucherCard-module_card_cannot_get";
}
return `
€
${custom_coupon_value}
% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`
}
return `
`
break;
}
}
if(!has_current_coupon){
return ``;
}
}else{
return ``;
}
}()
}
${
function(){
const id = "447947917089575056";
const coupons_data = data[0].data;
if(coupons_data.length > 0 ) {
let current_coupon = coupons_data[0];
let has_current_coupon = false;
for(let i =0 ;i < coupons_data.length;i++) {
if(coupons_data[i].id == id){
has_current_coupon = true;
current_coupon = coupons_data[i];
let custom_coupon_value = current_coupon.value;
const custom_coupon_value_type = current_coupon.value_type;
const title = current_coupon.title;
const starts_at = new Date(current_coupon.starts_at * 1000);
const ends_at = current_coupon.ends_at;
const ends_at_str = new Date(current_coupon.ends_at * 1000);
const only_valid_first_order_customer = current_coupon.only_valid_first_order_customer;
const show_new_customer_exclusive_tag = true;
const life_cycle_type = current_coupon.life_cycle_type;
const survival_time = current_coupon.survival_time / 86400;
const prerequisite = current_coupon.prerequisite;
const coupon_custom_link = "\/";
const once_per_customer =current_coupon.once_per_customer;
const usage_limit =current_coupon.usage_limit;
const stock =current_coupon.stock;
const progress =current_coupon.progress;
const prerequisite_subtotal_range =current_coupon.prerequisite_subtotal_range;
let greater_than_or_equal_to = 0;
const prerequisite_quantity_range =current_coupon.prerequisite_quantity_range;
if(prerequisite == 1 && prerequisite_subtotal_range && prerequisite_subtotal_range.length > 0 ){
custom_coupon_value = prerequisite_subtotal_range[0].value;
greater_than_or_equal_to = prerequisite_subtotal_range[0].greater_than_or_equal_to;
}
if(prerequisite == 1 && prerequisite_quantity_range && prerequisite_quantity_range.length > 0 ){
custom_coupon_value = prerequisite_quantity_range[0].value;
greater_than_or_equal_to = prerequisite_quantity_range[0].greater_than_or_equal_to
}
const discount_type =current_coupon.discount_type;
if(null){
let couponLists = data[1];
let coupon_is_received = false;
let couponListKeys = Object.keys(couponLists);
for( let i = 0; i < couponListKeys.length; i++ ){
const key = couponListKeys[i];
if(id == key ){
coupon_is_received = true;
var coupon_can_get = true;
var coupon_count = couponLists[key];
if(( progress == 'finished' || (stock == 0 && usage_limit != -1) ) || (once_per_customer != 0 && once_per_customer <= coupon_count)){
coupon_can_get = false;
}
if( coupon_can_get ){
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`
}else{
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Bestellen
Nur für die erste Bestellung
`
}
}
}
if(!coupon_is_received){
var cannot_css = "";
var cannot_bg_css = "";
if(progress == 'finished' || (stock == 0 && usage_limit != -1)){
cannot_css = "VoucherCard-module_card_cannot_get";
cannot_bg_css = "VoucherCard-module_bg_cannot_get";
}
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`;
}
}else{
var VoucherCard_module_card_not_login_css = "";
if( progress == 'finished' || (stock == 0 && usage_limit != -1) ) {
VoucherCard_module_card_not_login_css = "VoucherCard-module_card_cannot_get";
}
return `
€
${custom_coupon_value}
% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`
}
return `
`
break;
}
}
if(!has_current_coupon){
return ``;
}
}else{
return ``;
}
}()
}
${
function(){
const id = "447948471635284112";
const coupons_data = data[0].data;
if(coupons_data.length > 0 ) {
let current_coupon = coupons_data[0];
let has_current_coupon = false;
for(let i =0 ;i < coupons_data.length;i++) {
if(coupons_data[i].id == id){
has_current_coupon = true;
current_coupon = coupons_data[i];
let custom_coupon_value = current_coupon.value;
const custom_coupon_value_type = current_coupon.value_type;
const title = current_coupon.title;
const starts_at = new Date(current_coupon.starts_at * 1000);
const ends_at = current_coupon.ends_at;
const ends_at_str = new Date(current_coupon.ends_at * 1000);
const only_valid_first_order_customer = current_coupon.only_valid_first_order_customer;
const show_new_customer_exclusive_tag = true;
const life_cycle_type = current_coupon.life_cycle_type;
const survival_time = current_coupon.survival_time / 86400;
const prerequisite = current_coupon.prerequisite;
const coupon_custom_link = "\/";
const once_per_customer =current_coupon.once_per_customer;
const usage_limit =current_coupon.usage_limit;
const stock =current_coupon.stock;
const progress =current_coupon.progress;
const prerequisite_subtotal_range =current_coupon.prerequisite_subtotal_range;
let greater_than_or_equal_to = 0;
const prerequisite_quantity_range =current_coupon.prerequisite_quantity_range;
if(prerequisite == 1 && prerequisite_subtotal_range && prerequisite_subtotal_range.length > 0 ){
custom_coupon_value = prerequisite_subtotal_range[0].value;
greater_than_or_equal_to = prerequisite_subtotal_range[0].greater_than_or_equal_to;
}
if(prerequisite == 1 && prerequisite_quantity_range && prerequisite_quantity_range.length > 0 ){
custom_coupon_value = prerequisite_quantity_range[0].value;
greater_than_or_equal_to = prerequisite_quantity_range[0].greater_than_or_equal_to
}
const discount_type =current_coupon.discount_type;
if(null){
let couponLists = data[1];
let coupon_is_received = false;
let couponListKeys = Object.keys(couponLists);
for( let i = 0; i < couponListKeys.length; i++ ){
const key = couponListKeys[i];
if(id == key ){
coupon_is_received = true;
var coupon_can_get = true;
var coupon_count = couponLists[key];
if(( progress == 'finished' || (stock == 0 && usage_limit != -1) ) || (once_per_customer != 0 && once_per_customer <= coupon_count)){
coupon_can_get = false;
}
if( coupon_can_get ){
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`
}else{
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Bestellen
Nur für die erste Bestellung
`
}
}
}
if(!coupon_is_received){
var cannot_css = "";
var cannot_bg_css = "";
if(progress == 'finished' || (stock == 0 && usage_limit != -1)){
cannot_css = "VoucherCard-module_card_cannot_get";
cannot_bg_css = "VoucherCard-module_bg_cannot_get";
}
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`;
}
}else{
var VoucherCard_module_card_not_login_css = "";
if( progress == 'finished' || (stock == 0 && usage_limit != -1) ) {
VoucherCard_module_card_not_login_css = "VoucherCard-module_card_cannot_get";
}
return `
€
${custom_coupon_value}
% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`
}
return `
`
break;
}
}
if(!has_current_coupon){
return ``;
}
}else{
return ``;
}
}()
}
${
function(){
const id = "447949012826339319";
const coupons_data = data[0].data;
if(coupons_data.length > 0 ) {
let current_coupon = coupons_data[0];
let has_current_coupon = false;
for(let i =0 ;i < coupons_data.length;i++) {
if(coupons_data[i].id == id){
has_current_coupon = true;
current_coupon = coupons_data[i];
let custom_coupon_value = current_coupon.value;
const custom_coupon_value_type = current_coupon.value_type;
const title = current_coupon.title;
const starts_at = new Date(current_coupon.starts_at * 1000);
const ends_at = current_coupon.ends_at;
const ends_at_str = new Date(current_coupon.ends_at * 1000);
const only_valid_first_order_customer = current_coupon.only_valid_first_order_customer;
const show_new_customer_exclusive_tag = true;
const life_cycle_type = current_coupon.life_cycle_type;
const survival_time = current_coupon.survival_time / 86400;
const prerequisite = current_coupon.prerequisite;
const coupon_custom_link = "\/";
const once_per_customer =current_coupon.once_per_customer;
const usage_limit =current_coupon.usage_limit;
const stock =current_coupon.stock;
const progress =current_coupon.progress;
const prerequisite_subtotal_range =current_coupon.prerequisite_subtotal_range;
let greater_than_or_equal_to = 0;
const prerequisite_quantity_range =current_coupon.prerequisite_quantity_range;
if(prerequisite == 1 && prerequisite_subtotal_range && prerequisite_subtotal_range.length > 0 ){
custom_coupon_value = prerequisite_subtotal_range[0].value;
greater_than_or_equal_to = prerequisite_subtotal_range[0].greater_than_or_equal_to;
}
if(prerequisite == 1 && prerequisite_quantity_range && prerequisite_quantity_range.length > 0 ){
custom_coupon_value = prerequisite_quantity_range[0].value;
greater_than_or_equal_to = prerequisite_quantity_range[0].greater_than_or_equal_to
}
const discount_type =current_coupon.discount_type;
if(null){
let couponLists = data[1];
let coupon_is_received = false;
let couponListKeys = Object.keys(couponLists);
for( let i = 0; i < couponListKeys.length; i++ ){
const key = couponListKeys[i];
if(id == key ){
coupon_is_received = true;
var coupon_can_get = true;
var coupon_count = couponLists[key];
if(( progress == 'finished' || (stock == 0 && usage_limit != -1) ) || (once_per_customer != 0 && once_per_customer <= coupon_count)){
coupon_can_get = false;
}
if( coupon_can_get ){
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`
}else{
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Bestellen
Nur für die erste Bestellung
`
}
}
}
if(!coupon_is_received){
var cannot_css = "";
var cannot_bg_css = "";
if(progress == 'finished' || (stock == 0 && usage_limit != -1)){
cannot_css = "VoucherCard-module_card_cannot_get";
cannot_bg_css = "VoucherCard-module_bg_cannot_get";
}
return `
€ ${custom_coupon_value}% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`;
}
}else{
var VoucherCard_module_card_not_login_css = "";
if( progress == 'finished' || (stock == 0 && usage_limit != -1) ) {
VoucherCard_module_card_not_login_css = "VoucherCard-module_card_cannot_get";
}
return `
€
${custom_coupon_value}
% Rabatt
Keine Schwelle
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Verf\u00fcgbar mit {count} St\u00fcck").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${ ("Bestellung ab {count} \u20ac").replace('{count}', greater_than_or_equal_to)}
${title}
${ ("G\u00fcltig f\u00fcr {count} Tage nach der Abholung.").replace('{count}', survival_time)}
-
Unbestimmt
Erhalten
Nur für die erste Bestellung
`
}
return `
`
break;
}
}
if(!has_current_coupon){
return ``;
}
}else{
return ``;
}
}()
}