Replies: 1
Hi,
I found a bug concerning the wp_options values not being updated after I create a duplicate and change the connected product under Calculators > Edit Calculator > Settings > Woo Products: Show calculator by product.
In the code I’ve made the the lines bold that are subject to this bug. The value of the second product_id needs to be the same as the first product_id.
I think this is something that needs your attention. Hope my input helps.
This is the code:
Array
(
[general] => Array
(
[tour_title] => Summary block
[tour_description] => Edit the default view of the Total summary.
[header_title] => Total Summary
[descriptions] => 1
[hide_empty] => 1
[hide_empty_for_orders_pdf_emails] => 1
[sticky] =>
[show_option_unit] => 1
[in_pro] =>
[icons] => ccb-icon-new-calculator
[slug] => total-summary
[styles] => Array
(
[radio] =>
[checkbox] =>
[toggle] =>
[radio_with_img] =>
[checkbox_with_img] =>
)
[show_details_accordion] => 1
)
[currency] => Array
(
[tour_title] => Currency
[tour_description] => Set the currency sign and edit its default appearance.
[currency] => €
[num_after_integer] => 2
[decimal_separator] => ,
[thousands_separator] => .
[currencyPosition] => left_with_space
[in_pro] =>
[icons] => ccb-icon-Union-23
[slug] => currency
)
[texts] => Array
(
[tour_title] => Warning texts
[tour_description] => Manage notifications of Calculator forms.
[title] => Your service request has been completed!
[description] => We have sent your request information to your email.
[issued_on] => Issued on
[reset_btn] => Create new calculation
[invoice_btn] => Get invoice
[required_msg] => This field is required
[in_pro] =>
[icons] => ccb-icon-Path-3601
[slug] => texts
[form_fields] => Array
(
[email_format] => Invalid email
[email_field] => Email is required
[name_field] => Name is required
[phone_field] => Phone number is required
[terms_and_conditions_field] => Please, check out our terms and click on the checkbox
)
)
[thankYouPage] => Array
(
[enable] => 1
[type] => same_page
[page_id] =>
[custom_page_link] =>
[title] => Thank you for your order!
[description] => We have sent order details to your email.
[order_title] => Order ID
[back_button_text] => Back to calculator
[download_button] =>
[download_button_text] => Download PDF
[share_button] =>
[share_button_text] => Send PDF to
[custom_button] =>
[custom_button_text] => Go to website
[custom_button_link] => https://website.com
[complete_msg] => Your order has been placed
)
[formFields] => Array
(
[tour_title] => Order Form
[tour_description] => Choose contact form type and fill out settings.
[fields] => Array
(
)
[formulas] => Array
(
[0] => Array
(
[idx] => 0
[title] =>
[alias] => total_field_id_0
)
)
[emailSubject] =>
[contactFormId] =>
[accessEmail] =>
[adminEmailAddress] =>
[customEmailAddresses] => Array
(
)
[submitBtnText] => Bestelling verzenden
[openModalBtnText] => Maak bestelling
[allowContactForm] =>
[body] => Dear sir/madam
We would be very grateful to you if you could provide us the quotation of the following=>
Total Summary
[ccb-subtotal]
Total: [ccb-total-0]
Looking forward to hearing back from you.
Thanks in advance
[payment] =>
[paymentMethod] =>
[paymentMethods] => Array
(
)
[in_pro] => 1
[icons] => ccb-icon-XMLID_426
[slug] => send-form
[terms_and_conditions] => Array
(
[checkbox] =>
[text] => By clicking this box, I agree to your
[page_id] =>
[link] =>
[link_text] =>
)
[accessTermsEmail] =>
)
[sendFormFields] => Array
(
[0] => Array
(
[name] => name
[required] => 1
[value] =>
)
[1] => Array
(
[name] => email
[required] => 1
[value] =>
)
[2] => Array
(
[name] => phone
[required] => 1
[value] =>
)
[3] => Array
(
[name] => message
[required] =>
[value] =>
)
)
[sendFormRequires] => Array
(
[0] => Array
(
[required] =>
)
[1] => Array
(
[required] =>
)
[2] => Array
(
[required] =>
)
[3] => Array
(
[required] =>
)
)
[woo_products] => Array
(
[tour_title] => Woo Products
[tour_description] => Enables Calculator on the product page.
[enable] => 1
[category_id] =>
[category_ids] => Array
(
)
[product_ids] => Array
(
[0] => 1626
)
[by_category] =>
[by_product] => 1
[hook_to_show] => woocommerce_after_single_product_summary
[hide_woo_cart] => 1
[meta_links] => Array
(
[0] => Array
(
[woo_meta] => price
[action] => set_value_disable
[calc_field] => quantity_field_id_1
)
)
[in_pro] => 1
[icons] => ccb-icon-Union-17
[slug] => woo-products
)
[woo_checkout] => Array
(
[tour_title] => Woo Checkout
[tour_description] => Enables WooCommerce Checkout.
[enable] => 1
[product_id] => 1625
[redirect_to] => stay
[description] => [ccb-total-0]
[formulas] => Array
(
[0] => Array
(
[idx] => 0
[title] =>
[alias] => total_field_id_0
)
)
[in_pro] => 1
[icons] => ccb-icon-Path-3498
[slug] => woo-checkout
[replace_product] => 1
)
[payment_gateway] => Array
(
[slug] => payment-gateway
[icons] => ccb-icon-Path-3500
[tour_title] => Payment Gateways
[tour_description] => Set-up your payments
[in_pro] => 1
[cards] => Array
(
[enable] =>
[card_payments] => Array
(
[stripe] => Array
(
[enable] =>
[secretKey] =>
[publishKey] =>
[currency] => USD
[mode] => test_mode
[payment_type] => same_page
[logo] => https://website.com/wp-content/plugins/cost-calculator-builder/frontend/dist/img/stripe.svg
[label] => Stripe
[slug] => stripe
[payment_logo_width] => 68px
)
[razorpay] => Array
(
[enable] =>
[keyId] =>
[secretKey] =>
[currency] => USD
[payment_type] => same_page
[logo] => https://website.com/wp-content/plugins/cost-calculator-builder/frontend/dist/img/razorpay.png
[label] => Razorpay
[slug] => razorpay
[payment_logo_width] => 88px
)
)
)
[paypal] => Array
(
[enable] =>
[paypal_email] =>
[currency_code] =>
[paypal_mode] =>
)
[cash_payment] => Array
(
[enable] =>
[label] => Cash Payment
[type] =>
)
[formulas] => Array
(
[0] => Array
(
[idx] => 0
[title] =>
[alias] => total_field_id_0
)
)
)
[webhooks] => Array
(
[tour_title] => Webhooks
[tour_description] => Enables custom webhooks for different events.
[enableSendForms] =>
[enablePaymentBtn] =>
[enableEmailQuote] =>
[send_form_url] =>
[payment_btn_url] =>
[email_quote_url] =>
[secret_key_send_form] =>
[secret_key_payment_btn] =>
[secret_key_email_quote] =>
[in_pro] => 1
[icons] => ccb-icon-Webhooks
[slug] => webhooks
)
[recaptcha] => Array
(
[enable] =>
[type] => v2
[v2] => Array
(
[siteKey] =>
[secretKey] =>
)
[v3] => Array
(
[siteKey] =>
[secretKey] =>
)
[options] => Array
(
[v2] => Google reCAPTCHA v2
[v3] => Google reCAPTCHA v3
)
[use_in_all] =>
)
[notice] => Array
(
[requiredField] => This field is required
)
[icon] => fas fa-cogs
[type] => Cost Calculator Settings
)