Please fill in your order details first. Then you will reach the file upload.
Company & contact person
👋 We know this email address
There is already an account for this address. Please sign in – then your data is pre-filled, orders go directly into your account and you see the processing status.
🚚 Delivery is unlocked for your company. Delivery is made to your stored company address (a different delivery address is not possible here).
For your security, please confirm your email address: we will send you a code.
✅ Email confirmed – delivery unlocked.
Note for new customers:
New customers can by default only order for pickup. Delivery/parcel shipping may only be possible after advance payment – alternatively we will contact you to clarify/call back.
Note on shipping:
Since you are not signed in, shipping will only be carried out after payment is received.
It is best to order via your customer dashboard – then we know you directly and unlock more functions for you.
The delivery costs are calculated separately and depend on the selected speed.
Delivery address
Billing address
An diese Adresse senden wir die Rechnung; der Auftraggeber erhält sie in Kopie.
Project
What would you like to order?
Please select at least one product type. Only then can you switch to the file upload.
Options: CAD plots / posters
Options: small format / brochures up to DIN A3
You can select both and add more products to your order.
Customer type
Please choose whether you are ordering as a company or as a consumer. This determines the earliest start of processing.
Or choose directly:
Set: private customer – processing only after the 14-day withdrawal period has expired.
Acceptance
Please confirm before submitting your order:
Without immediate start: a window opens in which, as a business customer, you confirm that processing may begin with the data transmission.
If you do not check this box, the processing of your order begins only after the statutory 14-day withdrawal period has expired.
If you checked "Remember data": an account will be created for you. Please choose a password (at least 8 characters).
Please select at least one product type above to reach the upload.
File upload
You have completed the order details. Now upload your files. The order is automatically attached as a PDF to your request.
Drag your files here or select them.
Note on delivery:
Without a registered account, only pickup and parcel shipping are available (internal delivery by courier is reserved for registered customers). For parcel shipping you can specify a different delivery address; shipping takes place after payment is received.
Business customer – start of processing
You have not checked the binding immediate start. As a commercial client, you can confirm that processing may begin upon transmission of your data.
Are you not providing details here as a business customer?
');
return;
}
var html = '';
for (var i = 0; i < prevDeliveryCache.length; i++) {
var it = prevDeliveryCache[i] || {};
var d = it.data || {};
var sourceTag = it.source === 'delivery' ? 'Delivery' : 'Vor-Ort';
var line2 = [d.address || '', ((d.postcode || '') + ' ' + (d.city || '')).trim()].filter(Boolean).join(', ');
var sub = [d.contact || '', d.phone || ''].filter(Boolean).join(' · ');
html += '';
}
$results.html(html);
$results.find('.fus-order-prev-delivery-item').on('click', function() {
var idx = parseInt($(this).attr('data-idx') || '-1', 10);
if (idx >= 0 && prevDeliveryCache[idx] && prevDeliveryCache[idx].data) {
fusFillDifferentDeliveryAddress(prevDeliveryCache[idx].data);
}
});
}
function fusLoadPreviousDeliveryAddresses(query) {
var $container = $('.fus-upload-with-order-container');
var dmId = parseInt($container.attr('data-customer-dm-id') || '0', 10);
var nonce = $container.attr('data-delivery-history-nonce') || '';
var ajaxUrl = $container.attr('data-delivery-history-ajax') || '';
var $hint = $('#fus_order_prev_delivery_hint');
var q = (query || '').trim();
if (dmId <= 0 || !nonce || !ajaxUrl) {
prevDeliveryCache = [];
fusRenderPreviousDeliveryResults();
if ($hint.length) {
$hint.text("Your account is not yet assigned to a customer record. No previous external addresses can be loaded at the moment.");
}
return;
}
if ($hint.length) {
$hint.text("Loading external addresses ...");
}
$.ajax({
url: ajaxUrl,
type: 'POST',
dataType: 'json',
data: {
action: 'fus_vorort_get_customer_delivery_addresses',
nonce: nonce,
dm_customer_id: dmId,
q: q
}
}).done(function(res) {
var rows = [];
try {
if (res && typeof res === 'object' && res.success && res.data != null &&
Object.prototype.hasOwnProperty.call(res.data, 'addresses') &&
Array.isArray(res.data.addresses)) {
rows = res.data.addresses;
}
} catch (ignoreRowsParse) {}
prevDeliveryCache = rows;
if ($hint.length) {
if (q) {
$hint.text(rows.length
? "Search results - clicking applies the external address." : "No results found for the search.");
} else {
$hint.text(rows.length
? "Recently used external addresses. For more, please use the search field." : "No previous external addresses found yet.");
}
}
fusRenderPreviousDeliveryResults();
}).fail(function() {
prevDeliveryCache = [];
fusRenderPreviousDeliveryResults();
if ($hint.length) {
$hint.text("External addresses could not be loaded.");
}
});
}
function fusUpdatePreviousDeliveryUi() {
var $box = $('#fus-order-prev-delivery-wrap');
if (!$box.length) return;
var shouldShow = fusAllowsDifferentDeliveryAddress($('#fus_delivery_method').val()) && $('#fus_different_delivery').is(':checked');
$box.toggle(shouldShow);
if (!shouldShow) return;
if (!$box.data('loaded')) {
$box.data('loaded', 1);
fusLoadPreviousDeliveryAddresses($('#fus_order_prev_delivery_search').val() || '');
}
}
function fusApplyOrderDefaults(d) {
if (!d || typeof d !== 'object') return;
$('.fus-order-field').each(function() {
var $el = $(this);
var name = $el.attr('name');
if (!name || name.indexOf('fus_order[') !== 0) return;
var key = name.replace('fus_order[', '').replace(']', '');
if (d[key] === undefined || d[key] === null) return;
var val = d[key];
if ($el.is(':checkbox')) {
$el.prop('checked', val === '1' || val === true);
} else if ($el.is(':radio')) {
if ($el.val() === val) $el.prop('checked', true);
} else {
$el.val(val);
}
});
// Panels anhand gespeicherter Produktauswahl ein-/ausblenden
if (d.want_cad_poster === '1') {
$('#fus-cad-poster-options').show();
if (d.want_plotten === '1') $('#fus-plotten-options').show();
if (d.want_poster === '1') $('#fus-poster-options').show();
if (d.cad_nachbearbeitung === 'Gefaltet') $('#fus-cad-folding-options').show();
if (d.cad_laminating === '1') $('#fus-cad-laminating-options').show();
}
if (d.want_small_format === '1') $('#fus-small-format-options').show();
fusUpdateDifferentDeliveryOption();
if (d.different_billing === '1') $('#fus-billing-address-panel').show();
}
$(document).ready(function() {
// Gäste: Passwort-Bereich initial ausblenden, bei „Daten merken“ einblenden
var $guestFields = $('#fus-guest-account-fields');
if ($guestFields.length) {
$guestFields.addClass('fus-guest-account-fields-hidden');
$('#fus_save_as_defaults').on('change', function() {
if ($(this).is(':checked')) $guestFields.removeClass('fus-guest-account-fields-hidden');
else { $guestFields.addClass('fus-guest-account-fields-hidden'); $('#fus_account_password, #fus_account_password_confirm').val(''); $('#fus-account-message').hide(); }
});
}
// Standardeinstellungen für eingeloggte Nutzer vorausfüllen
if (typeof fusAjax !== 'undefined' && fusAjax.orderDefaults && Object.keys(fusAjax.orderDefaults).length > 0) {
fusApplyOrderDefaults(fusAjax.orderDefaults);
} else {
fusUpdateDifferentDeliveryOption();
}
// Abweichende Lieferanschrift / Rechnungsanschrift ein- und ausblenden
$('#fus_different_delivery').on('change', function() {
$('#fus-delivery-address-panel').toggle($(this).is(':checked'));
fusUpdatePreviousDeliveryUi();
});
$('#fus_different_billing').on('change', function() {
$('#fus-billing-address-panel').toggle($(this).is(':checked'));
});
// Hinweis zu Lieferkosten bei Versand ein-/ausblenden
function fusUpdateDeliveryCostHint() {
var $container = $('.fus-upload-with-order-container');
var $sel = $container.find('#fus_delivery_method');
var val = ($sel.val() || '').toString().trim().toLowerCase();
var isVersand = (val === 'versand' || val === 'lieferung' || val === 'paketversand');
var $hint = $container.find('#fus-delivery-cost-hint');
$hint.toggleClass('is-visible', isVersand);
$container.find('#fus-guest-shipping-hint').toggle(isVersand); // Gast-Hinweis: Versand erst nach Zahlung + Dashboard-Empfehlung
}
$('.fus-upload-with-order-container').on('change', '#fus_delivery_method', function() {
fusUpdateDeliveryCostHint();
fusUpdateDifferentDeliveryOption();
});
fusUpdateDeliveryCostHint();
fusUpdateDifferentDeliveryOption();
setTimeout(function() {
fusUpdateDeliveryCostHint();
fusUpdateDifferentDeliveryOption();
}, 100);
$('#fus_order_prev_delivery_search').on('input', function() {
clearTimeout(prevDeliveryDebounce);
var q = $(this).val() || '';
prevDeliveryDebounce = setTimeout(function() {
fusLoadPreviousDeliveryAddresses(q);
}, 220);
});
// Produktauswahl: CAD/Poster bzw. Kleinformat ein- und ausblenden
$('#fus_want_cad_poster').on('change', function() {
$('#fus-cad-poster-options').toggle($(this).is(':checked'));
fusUpdateUploadButtonState();
});
$('#fus_want_small_format').on('change', function() {
$('#fus-small-format-options').toggle($(this).is(':checked'));
fusUpdateUploadButtonState();
});
// CAD-Unterauswahl (Plotten/Poster) + Nachbearbeitung „Gefaltet“ → Heftstreifen
$('#fus_want_plotten').on('change', function() {
$('#fus-plotten-options').toggle($(this).is(':checked'));
});
$('#fus_want_poster').on('change', function() {
$('#fus-poster-options').toggle($(this).is(':checked'));
});
$('.fus-cad-nb-toggle').on('change', function() {
var folded = $('input[name="fus_order[cad_nachbearbeitung]"]:checked').val() === 'Gefaltet';
$('#fus-cad-folding-options').toggle(folded);
});
$('#fus_cad_laminating').on('change', function() {
$('#fus-cad-laminating-options').toggle($(this).is(':checked'));
});
function fusUpdateUploadButtonState() {
var $container = $('.fus-upload-with-order-container');
var wantCad = $container.find('#fus_want_cad_poster').is(':checked');
var wantSmall = $container.find('#fus_want_small_format').is(':checked');
var hasProduct = wantCad || wantSmall;
$container.find('#fus-go-to-upload').prop('disabled', !hasProduct);
$container.find('#fus-upload-hint').toggle(!hasProduct);
// Upload-Zone ausgrauen, solange keine Produktart gewählt ist
var $dropzone = $container.find('#fus-guest-dropzone');
if ($dropzone.length) {
if (hasProduct) {
$dropzone.removeClass('fus-dropzone-disabled');
$dropzone.find('.fus-file-input').prop('disabled', false);
} else {
$dropzone.addClass('fus-dropzone-disabled');
$dropzone.find('.fus-file-input').prop('disabled', true);
}
var $textEl = $dropzone.find('.fus-dropzone-disabled-text');
var hint = $dropzone.data('disabled-hint');
if (hint && $textEl.length) $textEl.text(hint);
}
}
fusUpdateUploadButtonState(); // einmalig nach Laden (und ggf. nach Anwenden der Standardeinstellungen)
var fusSkipB2bModalOnce = false;
// Bekannter Gewerbekunde → Privatkunden-Frage/Modal entfällt (Kundenart ist am Konto hinterlegt).
var fusKnownB2b = false;
// „Kundentyp ändern": blendet die Abfrage doch ein (Sicherheitsventil, falls die Einstufung falsch ist).
$('#fus-segment-change').on('click', function() {
fusKnownB2b = false;
$('#fus_b2b_processing_ack').val('0');
$('#fus-customer-segment-section').show();
$('#fus-segment-known-note').hide();
var el = $('#fus-customer-segment-section').get(0);
if (el) { try { el.scrollIntoView({ behavior: 'smooth', block: 'center' }); } catch (e) {} }
});
function fusUpdateSegmentWaiverCopy() {
var seg = $('input[name="fus_order[customer_segment]"]:checked').val() || 'b2b';
var isConsumer = (seg === 'consumer');
$('.fus-waiver-text-consumer').toggle(isConsumer);
$('.fus-waiver-text-b2b').toggle(!isConsumer);
$('.fus-waiver-hint-consumer').toggle(isConsumer);
$('.fus-waiver-hint-b2b').toggle(!isConsumer);
}
$('input[name="fus_order[customer_segment]"]').on('change', function() {
$('#fus_b2b_processing_ack').val('0');
fusUpdateSegmentWaiverCopy();
});
$('#fus_accept_immediate_start_waiver').on('change', function() {
if ($(this).is(':checked')) {
$('#fus_b2b_processing_ack').val('0');
}
});
fusUpdateSegmentWaiverCopy();
function fusApplyPrivateConsumer14Wait() {
$('input[name="fus_order[customer_segment]"][value="consumer"]').prop('checked', true);
$('#fus_accept_immediate_start_waiver').prop('checked', false);
$('#fus_b2b_processing_ack').val('0');
$('#fus-b2b-modal').hide();
$('#fus-b2b-modal-confirm-cb').prop('checked', false);
$('#fus-b2b-modal-ok').prop('disabled', true);
fusUpdateSegmentWaiverCopy();
$('#fus-consumer-wait-feedback').stop(true, true).show();
window.clearTimeout(window._fusConsumerWaitFbTimer);
window._fusConsumerWaitFbTimer = window.setTimeout(function() {
$('#fus-consumer-wait-feedback').fadeOut(300);
}, 8000);
var $seg = $('.fus-customer-segment-section');
if ($seg.length) {
$seg.get(0).scrollIntoView({ behavior: 'smooth', block: 'center' });
}
}
$('#fus-btn-consumer-14-wait').on('click', fusApplyPrivateConsumer14Wait);
$('#fus-b2b-modal-choose-private').on('click', function() {
fusApplyPrivateConsumer14Wait();
$('#fus-go-to-upload').trigger('click');
});
function fusNeedsB2bModal() {
// Bekannter Gewerbekunde: keine Privatkunden-Rückfrage mehr.
if (fusKnownB2b) {
return false;
}
if (fusSkipB2bModalOnce) {
fusSkipB2bModalOnce = false;
return false;
}
var seg = $('input[name="fus_order[customer_segment]"]:checked').val() || 'b2b';
if (seg !== 'b2b') {
return false;
}
if ($('#fus_accept_immediate_start_waiver').is(':checked')) {
return false;
}
return $('#fus_b2b_processing_ack').val() !== '1';
}
$('#fus-b2b-modal-ok').on('click', function() {
if (!$('#fus-b2b-modal-confirm-cb').is(':checked')) {
return;
}
$('#fus_b2b_processing_ack').val('1');
$('#fus-b2b-modal').hide();
fusSkipB2bModalOnce = true;
$('#fus-go-to-upload').trigger('click');
});
$('#fus-b2b-modal-cancel, #fus-b2b-modal-backdrop').on('click', function() {
$('#fus-b2b-modal').hide();
});
$('#fus-b2b-modal-confirm-cb').on('change', function() {
var ok = $(this).is(':checked');
$('#fus-b2b-modal-ok').prop('disabled', !ok);
});
// Copy order data into step 2 guest form (email, name, phone from step 1)
$('#fus-go-to-upload').on('click', function() {
var $step1 = $('#fus-step-1');
var required = $step1.find('.fus-order-field[required]');
var valid = true;
var $firstInvalid = null;
required.each(function() {
// Checkboxen (AGB/Datenschutz) liefern .val() immer "1" → hier nicht prüfen, das macht die Akzeptanz-Logik separat.
if ($(this).is(':checkbox')) { return; }
if (!$(this).val() || $(this).val().trim() === '') {
valid = false;
$(this).css('border-color', '#dc2626');
if (!$firstInvalid) { $firstInvalid = $(this); }
} else {
$(this).css('border-color', '');
}
});
if (!valid) {
$('#fus-step1-message').html('' + "Please fill in all required fields." + '').show();
// Direkt zum ersten fehlenden Pflichtfeld springen: eingeklappte Bereiche aufklappen,
// hinscrollen und fokussieren (sonst „passiert scheinbar nichts").
if ($firstInvalid && $firstInvalid.length) {
$firstInvalid.parents('details').prop('open', true);
$firstInvalid.parents('[hidden]').removeAttr('hidden');
var fiEl = $firstInvalid.get(0);
try { fiEl.scrollIntoView({ behavior: 'smooth', block: 'center' }); } catch (e) {}
try { $firstInvalid.trigger('focus'); } catch (e) {}
}
return;
}
// Button ist nur aktiv wenn mindestens eine Produktart gewählt ist (Fallback-Validierung)
var wantCad = $('#fus_want_cad_poster').is(':checked');
var wantSmall = $('#fus_want_small_format').is(':checked');
if (!wantCad && !wantSmall) {
$('#fus-product-choice-message').html('' + "Please select at least one product type (CAD plots\/posters or small format\/brochures)." + '').show();
$('.fus-product-choice-section').get(0).scrollIntoView({ behavior: 'smooth' });
return;
}
// AGB und Datenschutz müssen akzeptiert sein
if (!$('#fus_accept_agb').is(':checked') || !$('#fus_accept_privacy').is(':checked')) {
$('#fus-acceptance-message').html('' + "Please accept the terms and conditions and the privacy policy." + '').show();
$('.fus-acceptance-section').get(0).scrollIntoView({ behavior: 'smooth' });
return;
}
// B2B: ohne Sofortbeginn → Pflicht-Dialog (Gewerbe-Bestätigung) oder erneuter Klick nach Bestätigung
if (fusNeedsB2bModal()) {
$('#fus-b2b-modal-confirm-cb').prop('checked', false);
$('#fus-b2b-modal-ok').prop('disabled', true);
$('#fus-b2b-modal').css('display', 'flex');
$('.fus-acceptance-section').get(0).scrollIntoView({ behavior: 'smooth' });
return;
}
// Neukunden: Lieferung/Paketversand nur mit Vorabzahlungs-Bestätigung – AUSSER es greift das
// Lieferungs-Gate (berechtigter Firmenkunde mit E-Mail-Code-Bestätigung), dann entfällt das.
var isNewCustomer = true;
if (isNewCustomer && !(window.fusDeliveryGate && window.fusDeliveryGate.active)) {
var method = ($('#fus_delivery_method').val() || '').toString().trim().toLowerCase();
if (method !== 'abholung') {
if (!$('#fus_prepayment_ack').is(':checked')) {
$('#fus-newcustomer-delivery-message').html('' + "New customers: please confirm the advance payment if you select delivery\/parcel shipping. Alternatively, select pickup." + '').show();
$('#fus_delivery_method').get(0).scrollIntoView({ behavior: 'smooth' });
return;
}
}
}
// Gast mit „Daten merken“: Passwort prüfen und Konto anlegen
var isGuest = $('#fus-guest-account-fields').length > 0;
var saveDefaults = $('#fus_save_as_defaults').is(':checked');
if (isGuest && saveDefaults) {
var pwd = $('#fus_account_password').val() || '';
var pwd2 = $('#fus_account_password_confirm').val() || '';
if (pwd.length < 8) {
$('#fus-account-message').html('' + "Please choose a password with at least 8 characters." + '').show();
$('.fus-defaults-section').get(0).scrollIntoView({ behavior: 'smooth' });
return;
}
if (pwd !== pwd2) {
$('#fus-account-message').html('' + "The passwords do not match." + '').show();
$('.fus-defaults-section').get(0).scrollIntoView({ behavior: 'smooth' });
return;
}
if (!fusAjax.createAccountNonce) {
$('#fus-account-message').html('' + "Action not available. Please reload the page." + '').show();
return;
}
$('#fus-step1-message').hide();
$('#fus-product-choice-message').hide();
$('#fus-acceptance-message').hide();
// Erst Bestelldaten sammeln (für Account + Defaults)
fusOrderData = {};
$('.fus-order-field').each(function() {
var $el = $(this);
var name = $el.attr('name');
if (!name || name.indexOf('fus_order[') !== 0) return;
var key = name.replace('fus_order[', '').replace(']', '');
if ($el.is(':checkbox')) fusOrderData[key] = $el.is(':checked') ? '1' : '0';
else if ($el.is(':radio')) { if ($el.is(':checked')) fusOrderData[key] = $el.val(); }
else fusOrderData[key] = $el.val() || '';
});
if ($('input[name="fus_order[cad_color_option]"]:checked').length) fusOrderData.cad_color_option = $('input[name="fus_order[cad_color_option]"]:checked').val();
if ($('input[name="fus_order[cad_nachbearbeitung]"]:checked').length) fusOrderData.cad_nachbearbeitung = $('input[name="fus_order[cad_nachbearbeitung]"]:checked').val();
if ($('input[name="fus_order[cad_heftstreifen]"]:checked').length) fusOrderData.cad_heftstreifen = $('input[name="fus_order[cad_heftstreifen]"]:checked').val();
if ($('input[name="fus_order[color_option]"]:checked').length) fusOrderData.color_option = $('input[name="fus_order[color_option]"]:checked').val();
$('#fus-account-message').hide();
var $btn = $('#fus-go-to-upload');
$btn.prop('disabled', true);
$.ajax({
url: fusAjax.ajaxurl,
type: 'POST',
dataType: 'json',
data: {
action: 'fus_create_account_from_order',
nonce: fusAjax.createAccountNonce,
fus_return_url: (function() { try { return window.location.href.split('#')[0]; } catch (e) { return ''; } })(),
email: $('#fus_email').val(),
first_name: ($('#fus_customer_name').val() || '').trim().split(/\s+/)[0] || '',
last_name: ($('#fus_customer_name').val() || '').trim().split(/\s+/).slice(1).join(' ') || ($('#fus_customer_name').val() || '').trim().split(/\s+/)[0] || '',
phone: $('#fus_phone').val(),
password: pwd,
password_confirm: pwd2,
fus_order_data: JSON.stringify(fusOrderData)
},
success: function(res) {
$btn.prop('disabled', false);
if (typeof res === 'string') {
try {
res = JSON.parse(res);
} catch (e2) {
res = null;
}
}
if (res && res.success) {
var dm = (res.data && typeof res.data === 'object') ? res.data : {};
var redirectUrl = (typeof dm.redirect_url === 'string') ? dm.redirect_url.trim() : '';
if (redirectUrl) {
window.location.href = redirectUrl;
return;
}
var verifyReq = !!(dm.verify_required);
var thankBase = (typeof fusAjax !== 'undefined' && fusAjax.registrationThankYouUrl) ? String(fusAjax.registrationThankYouUrl).trim() : '';
if (thankBase) {
var regType = verifyReq ? 'order_verify' : 'order_welcome';
var sep = thankBase.indexOf('?') >= 0 ? '&' : '?';
try {
var ret = encodeURIComponent(window.location.href.split('#')[0]);
} catch (eRet) {
ret = '';
}
var q = sep + 'fus_reg=1&fus_reg_type=' + encodeURIComponent(regType);
if (ret) q += '&fus_return=' + ret;
window.location.href = thankBase + q;
return;
}
var rawMsg = dm.message !== undefined && dm.message !== null ? String(dm.message) : '';
var accMsg = rawMsg.trim();
if (!accMsg) {
accMsg = verifyReq
? "Thank you for registering. We have sent you an email with a confirmation link. Please check your inbox and, if necessary, your spam folder – then you can sign in." : "Thank you, your account has been created.";
}
var $banner = $('#fus-registration-email-banner');
if ($banner.length) {
$banner.removeClass('fus-registration-email-banner--verify fus-registration-email-banner--welcome')
.addClass(verifyReq ? 'fus-registration-email-banner--verify' : 'fus-registration-email-banner--welcome')
.text(accMsg).show();
}
var $guestMsg = $('#fus-guest-message');
if ($guestMsg.length) {
$guestMsg.removeClass('error info fus-message-persist').addClass('success show').text(accMsg);
}
if (!$banner.length) {
$('#fus-account-message').removeClass('fus-error').empty().append($('').text(accMsg)).show();
}
fusDoProceedToStep2();
var scrollEl = ($banner.length && $banner[0]) ? $banner[0] : ($guestMsg.length ? $guestMsg[0] : null);
if (scrollEl && typeof scrollEl.scrollIntoView === 'function') {
window.requestAnimationFrame(function() {
scrollEl.scrollIntoView({ behavior: 'smooth', block: 'start' });
});
}
} else {
$('#fus-account-message').html('' + (res.data && res.data.message ? res.data.message : "Error while creating the account.") + '').show();
}
},
error: function(xhr) {
$btn.prop('disabled', false);
var msg = "Error while creating the account.";
if (xhr.responseJSON && xhr.responseJSON.data && xhr.responseJSON.data.message) msg = xhr.responseJSON.data.message;
else if (xhr.responseText) { try { var r = JSON.parse(xhr.responseText); if (r.data && r.data.message) msg = r.data.message; } catch(e) {} }
$('#fus-account-message').html('' + msg + '').show();
}
});
return;
}
$('#fus-step1-message').hide();
$('#fus-product-choice-message').hide();
$('#fus-acceptance-message').hide();
// Collect all order data
fusOrderData = {};
$('.fus-order-field').each(function() {
var $el = $(this);
var name = $el.attr('name');
if (!name || name.indexOf('fus_order[') !== 0) return;
var key = name.replace('fus_order[', '').replace(']', '');
if ($el.is(':checkbox')) {
fusOrderData[key] = $el.is(':checked') ? '1' : '0';
} else if ($el.is(':radio')) {
if ($el.is(':checked')) fusOrderData[key] = $el.val();
} else {
fusOrderData[key] = $el.val() || '';
}
});
// Produktarten und optionale Radio-Werte
if ($('input[name="fus_order[cad_color_option]"]:checked').length) fusOrderData.cad_color_option = $('input[name="fus_order[cad_color_option]"]:checked').val();
if ($('input[name="fus_order[cad_nachbearbeitung]"]:checked').length) fusOrderData.cad_nachbearbeitung = $('input[name="fus_order[cad_nachbearbeitung]"]:checked').val();
if ($('input[name="fus_order[cad_heftstreifen]"]:checked').length) fusOrderData.cad_heftstreifen = $('input[name="fus_order[cad_heftstreifen]"]:checked').val();
if ($('input[name="fus_order[color_option]"]:checked').length) fusOrderData.color_option = $('input[name="fus_order[color_option]"]:checked').val();
fusDoProceedToStep2();
});
function fusDoProceedToStep2() {
$('#fus_order_data_json').val(JSON.stringify(fusOrderData));
$('#guest_email').val($('#fus_email').val());
var nameParts = ($('#fus_customer_name').val() || '').trim().split(/\s+/);
$('#guest_first_name').val(nameParts[0] || '');
$('#guest_last_name').val(nameParts.slice(1).join(' ') || nameParts[0] || '');
$('#guest_phone').val($('#fus_phone').val());
if ($('#fus_save_as_defaults').length && $('#fus_save_as_defaults').is(':checked') && typeof fusAjax !== 'undefined' && fusAjax.saveOrderDefaultsNonce) {
$.post(fusAjax.ajaxurl, {
action: 'fus_save_order_defaults',
nonce: fusAjax.saveOrderDefaultsNonce,
fus_order_data: JSON.stringify(fusOrderData)
});
}
fusUpdateUploadButtonState();
$('.fus-step').removeClass('active');
$('.fus-step[data-step="2"]').addClass('active');
$('.fus-step-panel').removeClass('active');
$('#fus-step-2').addClass('active');
}
$('#fus-back-to-order').on('click', function() {
fusUpdateUploadButtonState(); // Dropzone-Zustand wieder an Produktauswahl koppeln
$('.fus-step').removeClass('active');
$('.fus-step[data-step="1"]').addClass('active');
$('.fus-step-panel').removeClass('active');
$('#fus-step-1').addClass('active');
});
// On submit: prevent normal submit, set order data (main.js übernimmt den AJAX-Upload)
$('#fus-guest-upload-form').on('submit', function(e) {
e.preventDefault();
$('#fus_order_data_json').val(JSON.stringify(fusOrderData));
});
});
})(jQuery);
}
fusOrderFormInit();
try { window.fusOrderFormInlineReady = true; } catch (e) {}
})();
👋 Hallo, ich bin Fritz, ihr digitaler Assistent! Haben Sie eine Frage? Schreiben Sie mir.