-
AuthorPosts
-
June 26, 2018 at 11:29 am #977862
Dear support,
I have a conflict with the woocommerce plugin measurements and price calculator.
If I use the cart, it shows this notice: Bitte halten Sie sich an das vorgegebene Format: Menge.
I ´ve switched off other plugIns, but the issue persists.Have you got any idea?
Thanks in advance
June 26, 2018 at 5:44 pm #978044Hey elsengold,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaJune 27, 2018 at 12:59 pm #978388Thanks for your reply. Here is the access.
June 29, 2018 at 11:00 am #979257Hi Victoria,
have you any idea for that issue. Otherwise, I have to give back the plugin or change the theme, I´ve just bought a new enfold liscence.
Thanks and best regards.July 2, 2018 at 9:14 pm #980280Hi,
Unfortunately not a lot we can do with the plugin – but if the plugin author can give us some ideas, we will be more than happy to go for them.
Best regards,
BasilisJuly 2, 2018 at 9:22 pm #980291Okay, thank you, the author of the plugIn wrotes:
Hi there,
If the issue is specific to the Enfold theme, I would recommend reaching out to their team. I have not heard other reports of this issue as of yet, but it sounds like their theme may add additional input validation on the product page fields. This could interfere with the validation Measurement Price Calculator adds.
Can you try reaching out to the Enfold team and let me know if they’re able to assist?
Cheers,
Ian
July 4, 2018 at 2:58 pm #981242Hi Ian,
Here are some threads to consider:
https://kriesi.at/support/topic/conflict-between-woocommerce-measurement-price-calculator-and-enfold/If you need further assistance please let us know.
Best regards,
VictoriaMarch 23, 2019 at 11:39 pm #1082194Add these in your Child-Theme funktions.php:
/**
* Filter the quantity input’s pattern attribute to fix the “Please match
* the requested format” HTML validation error that occurs when using
* WooCommerce Measurement Price Calculator with the Enfold theme
*
* @props to mensmaximus {@link https://github.com/mensmaximus} for the
* proposed solution
*
* @param string $pattern the value of the input element’s pattern attribute
* @return string the updated pattern to allow floats
*/
function sv_wc_mpc_quantity_input_pattern_enfold_theme( $pattern ) {
if ( has_filter( ‘woocommerce_stock_amount’, ‘floatval’ ) ) {
$pattern = ‘^\d*(\.\d*)?$’;
}
return $pattern;
}
add_filter( ‘woocommerce_quantity_input_pattern’, ‘sv_wc_mpc_quantity_input_pattern_enfold_theme’ );March 27, 2019 at 9:55 am #1083487Hi mzgn,
Thanks for helping out and posting the solution.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.