J

4,30 €
Rinderkraftbrühe
Gesamt: 4.30
if (typeof accounting === 'undefined') {
(function(p,z){function q(a){return!!(""===a||a&&a.charCodeAt&&a.substr)}function m(a){return u?u(a):"[object Array]"===v.call(a)}function r(a){return"[object Object]"===v.call(a)}function s(a,b){var d,a=a||{},b=b||{};for(d in b)b.hasOwnProperty(d)&&null==a[d]&&(a[d]=b[d]);return a}function j(a,b,d){var c=[],e,h;if(!a)return c;if(w&&a.map===w)return a.map(b,d);for(e=0,h=a.length;ea?"-":"",g=parseInt(y(Math.abs(a||0),h),10)+"",l=3<g.length?g.length%3:0;return f+(l?g.substr(0,l)+e.thousand:"")+g.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+e.thousand)+(h?e.decimal+y(Math.abs(a),h).split(".")[1]:"")},A=c.formatMoney=function(a,b,d,i,e,h){if(m(a))return j(a,function(a){return A(a,b,d,i,e,h)});var a=o(a),f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format);return(0a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal))};c.formatColumn=function(a,b,d,i,e,h){if(!a)return[];var f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format),l=g.pos.indexOf("%s")<g.pos.indexOf("%v")?!0:!1,k=0,a=j(a,function(a){if(m(a))return c.formatColumn(a,f);a=o(a);a=(0a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal));if(a.length>k)k=a.length;return a});return j(a,function(a){return q(a)&&a.length 1 ? '.' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + ',' + '$2');
}
return x1 + x2;
}
var currency = currency = ' €';
function priceformat() {
//if(jQuery('.ex_modal.exfd-modal-active').length){ return;}
var product_total ='';
if($('form.variations_form').length){
if($('form > .single_variation_wrap .single_variation .price ins .amount').length){
product_total = jQuery('form > .single_variation_wrap .single_variation .price ins .amount').text();
}
if(product_total==''){
product_total = jQuery('form > .single_variation_wrap .single_variation .price .amount').text();
}
if(!$('form > .single_variation_wrap .single_variation .price').length){
product_total = '4.30';
}
}else{
product_total = '4.30';
}
if(!$.isNumeric(product_total)){
product_total = product_total.replace( currency, '' );
product_total = product_total.replace( /\./g, '' );
product_total = product_total.replace( ',', '.' );
product_total = product_total.replace(/[^0-9\.]/g, '' );
}
var _t_price = product_total;
var $qty = 1;
if($('.quantity .qty').length){
if(jQuery('.ex_modal.exfd-modal-active').length){
$qty = $('.ex_modal.exfd-modal-active .quantity .qty').val();
}else{
$qty = $('.quantity .qty').val();
}
if(jQuery.isNumeric( $qty )){
product_total = product_total*$qty;
}
}
// Custom option
$('.exwo-product-options .exrow-group:not(.exwf-offrq)').each(function(){
var $this_sl = $(this);
if($this_sl.hasClass('ex-radio') || $this_sl.hasClass('ex-checkbox')){
$this_sl.find('.ex-options').each(function(){
var $this_op = $(this);
if($this_op.is(":checked")){
var $price_op = $this_op.data('price');
if($.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op*1;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
}else if($this_sl.hasClass('ex-select')){
$this_sl.find('.ex-options option').each(function(){
var $this_op = $(this);
if($this_op.is(":selected")){
var $price_op = $this_op.data('price');
if($.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op*1;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
}else{
var $this_op = $this_sl.find('.ex-options');
var $price_op = $this_op.data('price');
if($this_sl.hasClass('ex-quantity')){
$price_op = $price_op*$this_sl.find('input.ex-options').val();
}
if($this_op.val() != '' && $.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
// support product addon
if($('#product-addons-total').length){
var addon_pr = 0;
addon_pr = jQuery('#product-addons-total .price .amount').text();
if(addon_pr !=''){
addon_pr = addon_pr.replace( currency, '' );
addon_pr = addon_pr.replace( /\./g, '' );
addon_pr = addon_pr.replace( ',', '.' );
addon_pr = addon_pr.replace(/[^0-9\.]/g, '' );
if(adult < 1){
_t_price = 0;
}
product_total = product_total + (adult*(addon_pr - _t_price));
$(".wc-pao-addon-field.wc-pao-addon-checkbox").each(function(){
if($(this).data('price-type') =='flat_fee' && $(this).is(':checked')){
product_total = product_total - ($(this).data('price') * (adult -1))
}
});
}
}
$total_cr = accounting.formatMoney( product_total,{
symbol : currency,
decimal : ',',
thousand : '.',
precision : '2',
format : '%v %s'
});
jQuery('#exlive-total .price').html( $total_cr);
}
if($('#product-addons-total').length){
$("body").on('DOMSubtreeModified', "#product-addons-total", function() {
priceformat();
});
}
jQuery('body').on('keyup mouseup change paste', '.quantity .qty', function(){ priceformat();});
jQuery('body').on('change','.variations select',function(){ priceformat(); });
jQuery('body').on('click', '#exadd_ticket', function(e) {
priceformat();
});
jQuery('body').on('click', '#exminus_ticket', function(e) {
priceformat();
});
jQuery('body').on('change keyup mouseup change paste', '.ex-options', function(e) {
priceformat();
});
priceformat();
setTimeout(function(){
priceformat();
}, 200);
});
8,90 €
Ziegenfrischkäse
Gesamt: 8.90
if (typeof accounting === 'undefined') {
(function(p,z){function q(a){return!!(""===a||a&&a.charCodeAt&&a.substr)}function m(a){return u?u(a):"[object Array]"===v.call(a)}function r(a){return"[object Object]"===v.call(a)}function s(a,b){var d,a=a||{},b=b||{};for(d in b)b.hasOwnProperty(d)&&null==a[d]&&(a[d]=b[d]);return a}function j(a,b,d){var c=[],e,h;if(!a)return c;if(w&&a.map===w)return a.map(b,d);for(e=0,h=a.length;ea?"-":"",g=parseInt(y(Math.abs(a||0),h),10)+"",l=3<g.length?g.length%3:0;return f+(l?g.substr(0,l)+e.thousand:"")+g.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+e.thousand)+(h?e.decimal+y(Math.abs(a),h).split(".")[1]:"")},A=c.formatMoney=function(a,b,d,i,e,h){if(m(a))return j(a,function(a){return A(a,b,d,i,e,h)});var a=o(a),f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format);return(0a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal))};c.formatColumn=function(a,b,d,i,e,h){if(!a)return[];var f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format),l=g.pos.indexOf("%s")<g.pos.indexOf("%v")?!0:!1,k=0,a=j(a,function(a){if(m(a))return c.formatColumn(a,f);a=o(a);a=(0a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal));if(a.length>k)k=a.length;return a});return j(a,function(a){return q(a)&&a.length 1 ? '.' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + ',' + '$2');
}
return x1 + x2;
}
var currency = currency = ' €';
function priceformat() {
//if(jQuery('.ex_modal.exfd-modal-active').length){ return;}
var product_total ='';
if($('form.variations_form').length){
if($('form > .single_variation_wrap .single_variation .price ins .amount').length){
product_total = jQuery('form > .single_variation_wrap .single_variation .price ins .amount').text();
}
if(product_total==''){
product_total = jQuery('form > .single_variation_wrap .single_variation .price .amount').text();
}
if(!$('form > .single_variation_wrap .single_variation .price').length){
product_total = '8.90';
}
}else{
product_total = '8.90';
}
if(!$.isNumeric(product_total)){
product_total = product_total.replace( currency, '' );
product_total = product_total.replace( /\./g, '' );
product_total = product_total.replace( ',', '.' );
product_total = product_total.replace(/[^0-9\.]/g, '' );
}
var _t_price = product_total;
var $qty = 1;
if($('.quantity .qty').length){
if(jQuery('.ex_modal.exfd-modal-active').length){
$qty = $('.ex_modal.exfd-modal-active .quantity .qty').val();
}else{
$qty = $('.quantity .qty').val();
}
if(jQuery.isNumeric( $qty )){
product_total = product_total*$qty;
}
}
// Custom option
$('.exwo-product-options .exrow-group:not(.exwf-offrq)').each(function(){
var $this_sl = $(this);
if($this_sl.hasClass('ex-radio') || $this_sl.hasClass('ex-checkbox')){
$this_sl.find('.ex-options').each(function(){
var $this_op = $(this);
if($this_op.is(":checked")){
var $price_op = $this_op.data('price');
if($.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op*1;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
}else if($this_sl.hasClass('ex-select')){
$this_sl.find('.ex-options option').each(function(){
var $this_op = $(this);
if($this_op.is(":selected")){
var $price_op = $this_op.data('price');
if($.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op*1;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
}else{
var $this_op = $this_sl.find('.ex-options');
var $price_op = $this_op.data('price');
if($this_sl.hasClass('ex-quantity')){
$price_op = $price_op*$this_sl.find('input.ex-options').val();
}
if($this_op.val() != '' && $.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
// support product addon
if($('#product-addons-total').length){
var addon_pr = 0;
addon_pr = jQuery('#product-addons-total .price .amount').text();
if(addon_pr !=''){
addon_pr = addon_pr.replace( currency, '' );
addon_pr = addon_pr.replace( /\./g, '' );
addon_pr = addon_pr.replace( ',', '.' );
addon_pr = addon_pr.replace(/[^0-9\.]/g, '' );
if(adult < 1){
_t_price = 0;
}
product_total = product_total + (adult*(addon_pr - _t_price));
$(".wc-pao-addon-field.wc-pao-addon-checkbox").each(function(){
if($(this).data('price-type') =='flat_fee' && $(this).is(':checked')){
product_total = product_total - ($(this).data('price') * (adult -1))
}
});
}
}
$total_cr = accounting.formatMoney( product_total,{
symbol : currency,
decimal : ',',
thousand : '.',
precision : '2',
format : '%v %s'
});
jQuery('#exlive-total .price').html( $total_cr);
}
if($('#product-addons-total').length){
$("body").on('DOMSubtreeModified', "#product-addons-total", function() {
priceformat();
});
}
jQuery('body').on('keyup mouseup change paste', '.quantity .qty', function(){ priceformat();});
jQuery('body').on('change','.variations select',function(){ priceformat(); });
jQuery('body').on('click', '#exadd_ticket', function(e) {
priceformat();
});
jQuery('body').on('click', '#exminus_ticket', function(e) {
priceformat();
});
jQuery('body').on('change keyup mouseup change paste', '.ex-options', function(e) {
priceformat();
});
priceformat();
setTimeout(function(){
priceformat();
}, 200);
});
9,90 €
Tomaten mit Büffelmozzarella
Gesamt: 9.90
if (typeof accounting === 'undefined') {
(function(p,z){function q(a){return!!(""===a||a&&a.charCodeAt&&a.substr)}function m(a){return u?u(a):"[object Array]"===v.call(a)}function r(a){return"[object Object]"===v.call(a)}function s(a,b){var d,a=a||{},b=b||{};for(d in b)b.hasOwnProperty(d)&&null==a[d]&&(a[d]=b[d]);return a}function j(a,b,d){var c=[],e,h;if(!a)return c;if(w&&a.map===w)return a.map(b,d);for(e=0,h=a.length;ea?"-":"",g=parseInt(y(Math.abs(a||0),h),10)+"",l=3<g.length?g.length%3:0;return f+(l?g.substr(0,l)+e.thousand:"")+g.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+e.thousand)+(h?e.decimal+y(Math.abs(a),h).split(".")[1]:"")},A=c.formatMoney=function(a,b,d,i,e,h){if(m(a))return j(a,function(a){return A(a,b,d,i,e,h)});var a=o(a),f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format);return(0a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal))};c.formatColumn=function(a,b,d,i,e,h){if(!a)return[];var f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format),l=g.pos.indexOf("%s")<g.pos.indexOf("%v")?!0:!1,k=0,a=j(a,function(a){if(m(a))return c.formatColumn(a,f);a=o(a);a=(0a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal));if(a.length>k)k=a.length;return a});return j(a,function(a){return q(a)&&a.length 1 ? '.' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + ',' + '$2');
}
return x1 + x2;
}
var currency = currency = ' €';
function priceformat() {
//if(jQuery('.ex_modal.exfd-modal-active').length){ return;}
var product_total ='';
if($('form.variations_form').length){
if($('form > .single_variation_wrap .single_variation .price ins .amount').length){
product_total = jQuery('form > .single_variation_wrap .single_variation .price ins .amount').text();
}
if(product_total==''){
product_total = jQuery('form > .single_variation_wrap .single_variation .price .amount').text();
}
if(!$('form > .single_variation_wrap .single_variation .price').length){
product_total = '9.90';
}
}else{
product_total = '9.90';
}
if(!$.isNumeric(product_total)){
product_total = product_total.replace( currency, '' );
product_total = product_total.replace( /\./g, '' );
product_total = product_total.replace( ',', '.' );
product_total = product_total.replace(/[^0-9\.]/g, '' );
}
var _t_price = product_total;
var $qty = 1;
if($('.quantity .qty').length){
if(jQuery('.ex_modal.exfd-modal-active').length){
$qty = $('.ex_modal.exfd-modal-active .quantity .qty').val();
}else{
$qty = $('.quantity .qty').val();
}
if(jQuery.isNumeric( $qty )){
product_total = product_total*$qty;
}
}
// Custom option
$('.exwo-product-options .exrow-group:not(.exwf-offrq)').each(function(){
var $this_sl = $(this);
if($this_sl.hasClass('ex-radio') || $this_sl.hasClass('ex-checkbox')){
$this_sl.find('.ex-options').each(function(){
var $this_op = $(this);
if($this_op.is(":checked")){
var $price_op = $this_op.data('price');
if($.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op*1;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
}else if($this_sl.hasClass('ex-select')){
$this_sl.find('.ex-options option').each(function(){
var $this_op = $(this);
if($this_op.is(":selected")){
var $price_op = $this_op.data('price');
if($.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op*1;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
}else{
var $this_op = $this_sl.find('.ex-options');
var $price_op = $this_op.data('price');
if($this_sl.hasClass('ex-quantity')){
$price_op = $price_op*$this_sl.find('input.ex-options').val();
}
if($this_op.val() != '' && $.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
// support product addon
if($('#product-addons-total').length){
var addon_pr = 0;
addon_pr = jQuery('#product-addons-total .price .amount').text();
if(addon_pr !=''){
addon_pr = addon_pr.replace( currency, '' );
addon_pr = addon_pr.replace( /\./g, '' );
addon_pr = addon_pr.replace( ',', '.' );
addon_pr = addon_pr.replace(/[^0-9\.]/g, '' );
if(adult < 1){
_t_price = 0;
}
product_total = product_total + (adult*(addon_pr - _t_price));
$(".wc-pao-addon-field.wc-pao-addon-checkbox").each(function(){
if($(this).data('price-type') =='flat_fee' && $(this).is(':checked')){
product_total = product_total - ($(this).data('price') * (adult -1))
}
});
}
}
$total_cr = accounting.formatMoney( product_total,{
symbol : currency,
decimal : ',',
thousand : '.',
precision : '2',
format : '%v %s'
});
jQuery('#exlive-total .price').html( $total_cr);
}
if($('#product-addons-total').length){
$("body").on('DOMSubtreeModified', "#product-addons-total", function() {
priceformat();
});
}
jQuery('body').on('keyup mouseup change paste', '.quantity .qty', function(){ priceformat();});
jQuery('body').on('change','.variations select',function(){ priceformat(); });
jQuery('body').on('click', '#exadd_ticket', function(e) {
priceformat();
});
jQuery('body').on('click', '#exminus_ticket', function(e) {
priceformat();
});
jQuery('body').on('change keyup mouseup change paste', '.ex-options', function(e) {
priceformat();
});
priceformat();
setTimeout(function(){
priceformat();
}, 200);
});
6,30 €
Gebackener Camembert
Gesamt: 6.30
if (typeof accounting === 'undefined') {
(function(p,z){function q(a){return!!(""===a||a&&a.charCodeAt&&a.substr)}function m(a){return u?u(a):"[object Array]"===v.call(a)}function r(a){return"[object Object]"===v.call(a)}function s(a,b){var d,a=a||{},b=b||{};for(d in b)b.hasOwnProperty(d)&&null==a[d]&&(a[d]=b[d]);return a}function j(a,b,d){var c=[],e,h;if(!a)return c;if(w&&a.map===w)return a.map(b,d);for(e=0,h=a.length;ea?"-":"",g=parseInt(y(Math.abs(a||0),h),10)+"",l=3<g.length?g.length%3:0;return f+(l?g.substr(0,l)+e.thousand:"")+g.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+e.thousand)+(h?e.decimal+y(Math.abs(a),h).split(".")[1]:"")},A=c.formatMoney=function(a,b,d,i,e,h){if(m(a))return j(a,function(a){return A(a,b,d,i,e,h)});var a=o(a),f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format);return(0a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal))};c.formatColumn=function(a,b,d,i,e,h){if(!a)return[];var f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format),l=g.pos.indexOf("%s")<g.pos.indexOf("%v")?!0:!1,k=0,a=j(a,function(a){if(m(a))return c.formatColumn(a,f);a=o(a);a=(0a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal));if(a.length>k)k=a.length;return a});return j(a,function(a){return q(a)&&a.length 1 ? '.' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + ',' + '$2');
}
return x1 + x2;
}
var currency = currency = ' €';
function priceformat() {
//if(jQuery('.ex_modal.exfd-modal-active').length){ return;}
var product_total ='';
if($('form.variations_form').length){
if($('form > .single_variation_wrap .single_variation .price ins .amount').length){
product_total = jQuery('form > .single_variation_wrap .single_variation .price ins .amount').text();
}
if(product_total==''){
product_total = jQuery('form > .single_variation_wrap .single_variation .price .amount').text();
}
if(!$('form > .single_variation_wrap .single_variation .price').length){
product_total = '6.30';
}
}else{
product_total = '6.30';
}
if(!$.isNumeric(product_total)){
product_total = product_total.replace( currency, '' );
product_total = product_total.replace( /\./g, '' );
product_total = product_total.replace( ',', '.' );
product_total = product_total.replace(/[^0-9\.]/g, '' );
}
var _t_price = product_total;
var $qty = 1;
if($('.quantity .qty').length){
if(jQuery('.ex_modal.exfd-modal-active').length){
$qty = $('.ex_modal.exfd-modal-active .quantity .qty').val();
}else{
$qty = $('.quantity .qty').val();
}
if(jQuery.isNumeric( $qty )){
product_total = product_total*$qty;
}
}
// Custom option
$('.exwo-product-options .exrow-group:not(.exwf-offrq)').each(function(){
var $this_sl = $(this);
if($this_sl.hasClass('ex-radio') || $this_sl.hasClass('ex-checkbox')){
$this_sl.find('.ex-options').each(function(){
var $this_op = $(this);
if($this_op.is(":checked")){
var $price_op = $this_op.data('price');
if($.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op*1;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
}else if($this_sl.hasClass('ex-select')){
$this_sl.find('.ex-options option').each(function(){
var $this_op = $(this);
if($this_op.is(":selected")){
var $price_op = $this_op.data('price');
if($.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op*1;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
}else{
var $this_op = $this_sl.find('.ex-options');
var $price_op = $this_op.data('price');
if($this_sl.hasClass('ex-quantity')){
$price_op = $price_op*$this_sl.find('input.ex-options').val();
}
if($this_op.val() != '' && $.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
// support product addon
if($('#product-addons-total').length){
var addon_pr = 0;
addon_pr = jQuery('#product-addons-total .price .amount').text();
if(addon_pr !=''){
addon_pr = addon_pr.replace( currency, '' );
addon_pr = addon_pr.replace( /\./g, '' );
addon_pr = addon_pr.replace( ',', '.' );
addon_pr = addon_pr.replace(/[^0-9\.]/g, '' );
if(adult < 1){
_t_price = 0;
}
product_total = product_total + (adult*(addon_pr - _t_price));
$(".wc-pao-addon-field.wc-pao-addon-checkbox").each(function(){
if($(this).data('price-type') =='flat_fee' && $(this).is(':checked')){
product_total = product_total - ($(this).data('price') * (adult -1))
}
});
}
}
$total_cr = accounting.formatMoney( product_total,{
symbol : currency,
decimal : ',',
thousand : '.',
precision : '2',
format : '%v %s'
});
jQuery('#exlive-total .price').html( $total_cr);
}
if($('#product-addons-total').length){
$("body").on('DOMSubtreeModified', "#product-addons-total", function() {
priceformat();
});
}
jQuery('body').on('keyup mouseup change paste', '.quantity .qty', function(){ priceformat();});
jQuery('body').on('change','.variations select',function(){ priceformat(); });
jQuery('body').on('click', '#exadd_ticket', function(e) {
priceformat();
});
jQuery('body').on('click', '#exminus_ticket', function(e) {
priceformat();
});
jQuery('body').on('change keyup mouseup change paste', '.ex-options', function(e) {
priceformat();
});
priceformat();
setTimeout(function(){
priceformat();
}, 200);
});
6,30 €
Knoblauchbrot
Gesamt: 6.30
if (typeof accounting === 'undefined') {
(function(p,z){function q(a){return!!(""===a||a&&a.charCodeAt&&a.substr)}function m(a){return u?u(a):"[object Array]"===v.call(a)}function r(a){return"[object Object]"===v.call(a)}function s(a,b){var d,a=a||{},b=b||{};for(d in b)b.hasOwnProperty(d)&&null==a[d]&&(a[d]=b[d]);return a}function j(a,b,d){var c=[],e,h;if(!a)return c;if(w&&a.map===w)return a.map(b,d);for(e=0,h=a.length;ea?"-":"",g=parseInt(y(Math.abs(a||0),h),10)+"",l=3<g.length?g.length%3:0;return f+(l?g.substr(0,l)+e.thousand:"")+g.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+e.thousand)+(h?e.decimal+y(Math.abs(a),h).split(".")[1]:"")},A=c.formatMoney=function(a,b,d,i,e,h){if(m(a))return j(a,function(a){return A(a,b,d,i,e,h)});var a=o(a),f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format);return(0a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal))};c.formatColumn=function(a,b,d,i,e,h){if(!a)return[];var f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format),l=g.pos.indexOf("%s")<g.pos.indexOf("%v")?!0:!1,k=0,a=j(a,function(a){if(m(a))return c.formatColumn(a,f);a=o(a);a=(0a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal));if(a.length>k)k=a.length;return a});return j(a,function(a){return q(a)&&a.length 1 ? '.' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + ',' + '$2');
}
return x1 + x2;
}
var currency = currency = ' €';
function priceformat() {
//if(jQuery('.ex_modal.exfd-modal-active').length){ return;}
var product_total ='';
if($('form.variations_form').length){
if($('form > .single_variation_wrap .single_variation .price ins .amount').length){
product_total = jQuery('form > .single_variation_wrap .single_variation .price ins .amount').text();
}
if(product_total==''){
product_total = jQuery('form > .single_variation_wrap .single_variation .price .amount').text();
}
if(!$('form > .single_variation_wrap .single_variation .price').length){
product_total = '6.30';
}
}else{
product_total = '6.30';
}
if(!$.isNumeric(product_total)){
product_total = product_total.replace( currency, '' );
product_total = product_total.replace( /\./g, '' );
product_total = product_total.replace( ',', '.' );
product_total = product_total.replace(/[^0-9\.]/g, '' );
}
var _t_price = product_total;
var $qty = 1;
if($('.quantity .qty').length){
if(jQuery('.ex_modal.exfd-modal-active').length){
$qty = $('.ex_modal.exfd-modal-active .quantity .qty').val();
}else{
$qty = $('.quantity .qty').val();
}
if(jQuery.isNumeric( $qty )){
product_total = product_total*$qty;
}
}
// Custom option
$('.exwo-product-options .exrow-group:not(.exwf-offrq)').each(function(){
var $this_sl = $(this);
if($this_sl.hasClass('ex-radio') || $this_sl.hasClass('ex-checkbox')){
$this_sl.find('.ex-options').each(function(){
var $this_op = $(this);
if($this_op.is(":checked")){
var $price_op = $this_op.data('price');
if($.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op*1;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
}else if($this_sl.hasClass('ex-select')){
$this_sl.find('.ex-options option').each(function(){
var $this_op = $(this);
if($this_op.is(":selected")){
var $price_op = $this_op.data('price');
if($.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op*1;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
}else{
var $this_op = $this_sl.find('.ex-options');
var $price_op = $this_op.data('price');
if($this_sl.hasClass('ex-quantity')){
$price_op = $price_op*$this_sl.find('input.ex-options').val();
}
if($this_op.val() != '' && $.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
// support product addon
if($('#product-addons-total').length){
var addon_pr = 0;
addon_pr = jQuery('#product-addons-total .price .amount').text();
if(addon_pr !=''){
addon_pr = addon_pr.replace( currency, '' );
addon_pr = addon_pr.replace( /\./g, '' );
addon_pr = addon_pr.replace( ',', '.' );
addon_pr = addon_pr.replace(/[^0-9\.]/g, '' );
if(adult < 1){
_t_price = 0;
}
product_total = product_total + (adult*(addon_pr - _t_price));
$(".wc-pao-addon-field.wc-pao-addon-checkbox").each(function(){
if($(this).data('price-type') =='flat_fee' && $(this).is(':checked')){
product_total = product_total - ($(this).data('price') * (adult -1))
}
});
}
}
$total_cr = accounting.formatMoney( product_total,{
symbol : currency,
decimal : ',',
thousand : '.',
precision : '2',
format : '%v %s'
});
jQuery('#exlive-total .price').html( $total_cr);
}
if($('#product-addons-total').length){
$("body").on('DOMSubtreeModified', "#product-addons-total", function() {
priceformat();
});
}
jQuery('body').on('keyup mouseup change paste', '.quantity .qty', function(){ priceformat();});
jQuery('body').on('change','.variations select',function(){ priceformat(); });
jQuery('body').on('click', '#exadd_ticket', function(e) {
priceformat();
});
jQuery('body').on('click', '#exminus_ticket', function(e) {
priceformat();
});
jQuery('body').on('change keyup mouseup change paste', '.ex-options', function(e) {
priceformat();
});
priceformat();
setTimeout(function(){
priceformat();
}, 200);
});
5,40 €
Meerrettichsüppchen
Gesamt: 5.40
if (typeof accounting === 'undefined') {
(function(p,z){function q(a){return!!(""===a||a&&a.charCodeAt&&a.substr)}function m(a){return u?u(a):"[object Array]"===v.call(a)}function r(a){return"[object Object]"===v.call(a)}function s(a,b){var d,a=a||{},b=b||{};for(d in b)b.hasOwnProperty(d)&&null==a[d]&&(a[d]=b[d]);return a}function j(a,b,d){var c=[],e,h;if(!a)return c;if(w&&a.map===w)return a.map(b,d);for(e=0,h=a.length;ea?"-":"",g=parseInt(y(Math.abs(a||0),h),10)+"",l=3<g.length?g.length%3:0;return f+(l?g.substr(0,l)+e.thousand:"")+g.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+e.thousand)+(h?e.decimal+y(Math.abs(a),h).split(".")[1]:"")},A=c.formatMoney=function(a,b,d,i,e,h){if(m(a))return j(a,function(a){return A(a,b,d,i,e,h)});var a=o(a),f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format);return(0a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal))};c.formatColumn=function(a,b,d,i,e,h){if(!a)return[];var f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format),l=g.pos.indexOf("%s")<g.pos.indexOf("%v")?!0:!1,k=0,a=j(a,function(a){if(m(a))return c.formatColumn(a,f);a=o(a);a=(0a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal));if(a.length>k)k=a.length;return a});return j(a,function(a){return q(a)&&a.length 1 ? '.' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + ',' + '$2');
}
return x1 + x2;
}
var currency = currency = ' €';
function priceformat() {
//if(jQuery('.ex_modal.exfd-modal-active').length){ return;}
var product_total ='';
if($('form.variations_form').length){
if($('form > .single_variation_wrap .single_variation .price ins .amount').length){
product_total = jQuery('form > .single_variation_wrap .single_variation .price ins .amount').text();
}
if(product_total==''){
product_total = jQuery('form > .single_variation_wrap .single_variation .price .amount').text();
}
if(!$('form > .single_variation_wrap .single_variation .price').length){
product_total = '5.40';
}
}else{
product_total = '5.40';
}
if(!$.isNumeric(product_total)){
product_total = product_total.replace( currency, '' );
product_total = product_total.replace( /\./g, '' );
product_total = product_total.replace( ',', '.' );
product_total = product_total.replace(/[^0-9\.]/g, '' );
}
var _t_price = product_total;
var $qty = 1;
if($('.quantity .qty').length){
if(jQuery('.ex_modal.exfd-modal-active').length){
$qty = $('.ex_modal.exfd-modal-active .quantity .qty').val();
}else{
$qty = $('.quantity .qty').val();
}
if(jQuery.isNumeric( $qty )){
product_total = product_total*$qty;
}
}
// Custom option
$('.exwo-product-options .exrow-group:not(.exwf-offrq)').each(function(){
var $this_sl = $(this);
if($this_sl.hasClass('ex-radio') || $this_sl.hasClass('ex-checkbox')){
$this_sl.find('.ex-options').each(function(){
var $this_op = $(this);
if($this_op.is(":checked")){
var $price_op = $this_op.data('price');
if($.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op*1;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
}else if($this_sl.hasClass('ex-select')){
$this_sl.find('.ex-options option').each(function(){
var $this_op = $(this);
if($this_op.is(":selected")){
var $price_op = $this_op.data('price');
if($.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op*1;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
}else{
var $this_op = $this_sl.find('.ex-options');
var $price_op = $this_op.data('price');
if($this_sl.hasClass('ex-quantity')){
$price_op = $price_op*$this_sl.find('input.ex-options').val();
}
if($this_op.val() != '' && $.isNumeric($price_op)){
if($this_op.data('type')=='fixed'){
product_total = product_total + $price_op;
}else{
product_total = product_total + ($price_op*$qty);
}
}
}
});
// support product addon
if($('#product-addons-total').length){
var addon_pr = 0;
addon_pr = jQuery('#product-addons-total .price .amount').text();
if(addon_pr !=''){
addon_pr = addon_pr.replace( currency, '' );
addon_pr = addon_pr.replace( /\./g, '' );
addon_pr = addon_pr.replace( ',', '.' );
addon_pr = addon_pr.replace(/[^0-9\.]/g, '' );
if(adult < 1){
_t_price = 0;
}
product_total = product_total + (adult*(addon_pr - _t_price));
$(".wc-pao-addon-field.wc-pao-addon-checkbox").each(function(){
if($(this).data('price-type') =='flat_fee' && $(this).is(':checked')){
product_total = product_total - ($(this).data('price') * (adult -1))
}
});
}
}
$total_cr = accounting.formatMoney( product_total,{
symbol : currency,
decimal : ',',
thousand : '.',
precision : '2',
format : '%v %s'
});
jQuery('#exlive-total .price').html( $total_cr);
}
if($('#product-addons-total').length){
$("body").on('DOMSubtreeModified', "#product-addons-total", function() {
priceformat();
});
}
jQuery('body').on('keyup mouseup change paste', '.quantity .qty', function(){ priceformat();});
jQuery('body').on('change','.variations select',function(){ priceformat(); });
jQuery('body').on('click', '#exadd_ticket', function(e) {
priceformat();
});
jQuery('body').on('click', '#exminus_ticket', function(e) {
priceformat();
});
jQuery('body').on('change keyup mouseup change paste', '.ex-options', function(e) {
priceformat();
});
priceformat();
setTimeout(function(){
priceformat();
}, 200);
});